Slackware 14.1 IP-Masquerading : On startup
Hi,
How configure IP-Masquerading on startup without firewall. Add this stance : Code:
iptables -t nat -A POSTROUTING -o eth* -s *.*.*.*/24 -j MASQUERADE Thanks. |
rc.local is a good place
|
If you add your firewall commands in a (new) file "/etc/rc.d/rc.firewall" and make it executable, then Slackware will run that script on boot and you don't have to change anything - it's automatic.
Code:
cat <<EOF > /etc/rc.d/rc.firewall Eric |
Thank you everybody for your replies ;)
|
Don't forget to activate rc.ip_forward, by the way.
Code:
# chmod +x /etc/rc.d/rc.ip_forward |
It works on boot after have activated rc.ip_fordward and created/activated the rc.firewall file with Alien Bob's data.
But if I want to use the rc.local file only, I must just add the stance of my initial post and active rc.ip_forward file ? |
Quote:
|
Well fine, thank you kikinovak ;)
|
All times are GMT -5. The time now is 05:42 PM. |