Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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??

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts