Find the answer to your Linux question:

View Poll Results: Do we need stereotypes?

Voters
5. You may not vote on this poll
  • yes

    1 20.00%
  • no

    1 20.00%
  • what in the world are you talking about

    3 60.00%
Results 1 to 6 of 6
hello again, ok , im having a bit more luck with my iptables project, but now that i have found something i like, how do i save it so that ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2003
    Location
    US
    Posts
    6

    iptables config?


    hello again,
    ok , im having a bit more luck with my iptables project, but now that i have found something i like, how do i save it so that it initiates when the computer boots up? Where does it saves to? if it starts when i boot up, shouldn't it be in a run level system file? And therefore, i should be able to set up different sets of rules when on different run levels? anyway, background on me... im running red hat 9... 2.4 kernel
    any help would be appreciated.... ive been digging everywhere for this stuff

    Jester

  2. #2
    Linux User
    Join Date
    Jun 2003
    Location
    Calgary, AB CANADA
    Posts
    496
    I'm not experienced with iptables, but don't you just issue an iptables-save?

    P.S. What's the deal with the poll?
    \"Everything should be made as simple as possible, but not simpler.\"
    Albert Einstein

  3. #3
    Just Joined!
    Join Date
    Jun 2003
    Location
    US
    Posts
    6

    found iptables-save

    ive found the iptables-save but i'd like to know how it works. where is the iptables stuff saved at.... and i take you are saying that saves my rules.... i am rather new at this.

    i'll try it out./ thanks. .. you may hear from me again

    the poll is random
    i had some discussions with friends, thought it would be interesting to see the results.

    any more feedback would be helpful

    jester

  4. #4
    Linux User
    Join Date
    Jun 2003
    Location
    Calgary, AB CANADA
    Posts
    496
    I told you I didn't know much about iptables: it seems that iptables-save is used to back up the file so that you can use iptables-restore to bring it back in case you hoop something while testing. Not exactly what you were looking for, so I apologize. But hey, we're both learning something here.

    Second attempt - is there a config file for iptables in your /etc/sysconfig directory? If not, use the iptables-save command to create a file here of your iptables rules (call it iptables), and the system should use it when booting...
    \"Everything should be made as simple as possible, but not simpler.\"
    Albert Einstein

  5. #5
    Just Joined!
    Join Date
    Jun 2003
    Location
    US
    Posts
    6

    cool

    thanks that was helpful

  6. #6
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    I just put my iptables rules in a shell script and execute it from my /etc/conf.d/local.start.
    "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
  •