Hi Amit,
> I have just installed and configured Squid proxy service on Suse
> Linux 10.0. It is working fine but I also need to configure NAT
> so
> that my users can download their emails in Outlook. To achieve
> that I have added these lines in the "/etc/sysctl.conf"
>
> net.ipv4.ip_forward=1
> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> iptables -I FORWARD -i eth1 -o eth0 -j ACCEPT
The last two lines will not work. /etc/sysctl.conf does not understand this
syntax (only the first of the lines you listed). Put the iptables rules in a
separate script in /etc/init.d/ and create the symbolic links in the
corresponding runlevel directories using insserv. A template for the script
is /etc/init.d/skeleton.
> But still the NAT doesnt work on this server. Please direct me
> and thanks in advance.
Check the settings for the NAT table using
iptables -L -t nat
Just "iptables -L" will not show your NAT settings.
Regards,
Peter
-- Peter Albrecht, Novell Training Services, peter.albrecht@novell.comReceived on Wed Jan 25 2006 - 01:32:02 MST
This archive was generated by hypermail pre-2.1.9 : Wed Feb 01 2006 - 12:00:01 MST