On Wed, 2004-05-12 at 11:39, adrian.wells wrote:
Can anyone help with this please?
I have a internet connection like so...
(www) - (translating router) - (NIC _ Squid Box _ NIC) - (LAN)
This all works fine however, the win2000 server has a mailserver that needs to see the router how can I do this? At the mo I'm still using the old ISDN connection for mail only.
Any ideas please other than a mailserver on the squid box - see Q2
Set up the filewall on your router so that incoming packets on port 25 get sent to your squid box, then... Set destination network address translation (DNAT) in the iptables rules on the squid box, such that connections to port 25 get directed to the Win2K server. An iptables command like this will do that (where I'm imagining that your win2k box has ip 192.168.7.5 and your router is connected to eth0): iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j DNAT --to-destination 192.168.7.5 For this to work, you need ip masquerading modules loaded; there is an ip masq howto around which gives lots of info about this. Note that using this method you have a security vulnerability in the win2k server, which now has a naked port 25 showing to the world. Much more secure would be to set up qmail or exim on the squid box and use this mail server to receive mail and immediately forward it to the Win2K server. If you'd like any help with doing this, then please give us a call. Likewise, with the webmail software. We could install and set up squirrel mail for webmail. best regards, Seb James -- Managing Director, Educational Systems, Hypercube Systems Ltd Providing Open Source ICT solutions for schools. Tel: 0845 458 0277 Web: www.hypercubesystems.co.uk Mob: 07900 958964 Email: seb@hypercubesystems.co.uk