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.
|
|
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 |
where do I put this? Thanks
|
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. |