Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I'd like to know how to load an iptables script. I wrote my rules in a .sh file: I executed this file, and then I did /etc/inid.d/iptables load active ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    38

    iptables - simple hint


    Hello,
    I'd like to know how to load an iptables script.
    I wrote my rules in a .sh file: I executed this file, and then I did /etc/inid.d/iptables load active and /etc/inid.d/iptables save active but I'm not sure the firewall is up.
    iptables -L says my default policies is set to ACCEPT, but in my script is set to DROP.

    How to load this script? How to save it?

    Thank you very much.

    P.S.: my system is a Debian Woody with a 2.6 kernel.

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Just run the script. You may have to chmod it to 750 to make it executeable. Make sure you are root when you do this as only root can institute iptables rules.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

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