Results 1 to 2 of 2
i've done a few iptables commands to allow me to share my internal and external network.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
i cant figure out how ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-20-2006 #1Just Joined!
- Join Date
- Jun 2006
- Posts
- 6
need help saving iptables with slackware
i've done a few iptables commands to allow me to share my internal and external network.
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
i cant figure out how to save this rule. every distro has a answer for me except slackware. i cant find where the configuration file is, and when i type iptables -L it doesnt even list that there are any rules, but ive typed the above commmand and another. Anyone got a answer??
- 06-20-2006 #2Linux Enthusiast
- Join Date
- Jun 2005
- Posts
- 668
put your script in /etc/rc.d/rc.firewall
just add the commands in there, if you look, /etc/rc.d/rc.S (or rc.M) calls this firewall script (if it exists).
this is what i use and it works fine.


Reply With Quote
