How do I insert the following iptables configuration into SuseFirewall2?
-A POSTROUTING -s ! 192.168.7.0/255.255.255.0 -d 192.168.0.0/255.255.255.0 -j SNAT --to-source 192.168.7.1
-A POSTROUTING -d ! 192.168.0.0/255.255.255.0 -o eth1 -j MASQUERADE
How do I insert the following iptables configuration into SuseFirewall2?
-A POSTROUTING -s ! 192.168.7.0/255.255.255.0 -d 192.168.0.0/255.255.255.0 -j SNAT --to-source 192.168.7.1
-A POSTROUTING -d ! 192.168.0.0/255.255.255.0 -o eth1 -j MASQUERADE
Have you tried YaST>Security>Firewall?
Thank you for the help, where in the GUI would I add in these rules.
You will need to read the SUSE Reference documentation; the GUI offers about ten different categories that you can change and I don’t know which one your rules relate to.
Just edit /etc/sysconfig/scripts/SuSEfirewall2-custom and insert your iptable statements as bash commands
iptables -A POSTROUTING -s ! 192.168.7.0/255.255.255.0 -d 192.168.0.0/255.255.255.0 -j SNAT --to-source 192.168.7.1