LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I setup ip masquerade in suse 8 (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-setup-ip-masquerade-in-suse-8-a-35064/)

cmisip 11-10-2002 10:21 AM

How do I setup ip masquerade in suse 8
 
I am using suse firewall 2. Dhcpd is working but my internal network has no access to the internet. I have enabled this on the Yast2 -- > security --> Firewall but it does not seem to work. Also when I boot Suse, I see the line saying ipforwarding disabled. Thanks for any help.

acid_kewpie 11-10-2002 11:00 AM

try reading this one

http://www.linuxquestions.org/questi...829#post166829

turnip 11-10-2002 12:48 PM

the command

echo 1 > /proc/sys/net/ipv4/ip_forward will turn on ip forwarding
then you need something like

iptables -t nat -A POSTROUTING -i <interface> -s <source network/mask> -j MASQUERADE , that will just get you on the net,
you're gonna need some blocking rules too

so maybe

iptables -A INPUT -s <mynetwork/24> -j ACCEPT
then
iptables -P INPUT DROP

cmisip 11-10-2002 09:14 PM

where do I put this? Thanks

cmisip 11-13-2002 03:34 PM

Success !!
I did not have named running. When I enabled it as well as dynamic IP patch and ip forwarding, the SuseFirewall2 allowed IP masquerading. Thanks


All times are GMT -5. The time now is 10:25 AM.