View previous topic :: View next topic |
Author |
Message |
Saar n00b
Joined: 22 Jul 2007 Posts: 21 Location: Edmonton, Canada
|
Posted: Mon Apr 14, 2008 3:49 pm Post subject: Really Basic Iptables Question(s)... [Solved] |
|
|
I've been going over the iptables wikis/howtos recently as I'm planning to re-structure my home network, and I've come across something I couldn't find an answer for: if I'm going to use Gentoo's scripts for starting/stopping iptables, do I put all of the iptables commands/rules into /etc/conf.d/iptables? If so, what format is it in? Are we allowed to script within that file, or is it only meant to be a place to plunk in straight-ahead rules and nothing else?
Thanks in advance for any help given here! _________________ For every action, there is an equal and opposite criticism
Last edited by Saar on Mon Apr 14, 2008 5:43 pm; edited 1 time in total |
|
Back to top |
|
|
magic919 Advocate
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Mon Apr 14, 2008 4:23 pm Post subject: Re: Really Basic Iptables Question(s)... |
|
|
Saar wrote: | do I put all of the iptables commands/rules into /etc/conf.d/iptables? |
No. None of them. Just make them on commandline or chosen method. |
|
Back to top |
|
|
Saar n00b
Joined: 22 Jul 2007 Posts: 21 Location: Edmonton, Canada
|
Posted: Mon Apr 14, 2008 5:43 pm Post subject: |
|
|
Thanks. For some reason I was caught up in the idea that these were just settings I'd need to look after in something like a .conf file. I'm up and running now. _________________ For every action, there is an equal and opposite criticism |
|
Back to top |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 513 Location: San Diego, California USA
|
Posted: Mon Apr 14, 2008 6:01 pm Post subject: |
|
|
Make sure you execute the /etc/init.d/iptables script at your appropriate run-level (probably "default"). It will automatically save your rules when you shut down and restore them when you start up.
Otherwise, you can force it with "/etc/init.d/iptables save" and "/etc/init.d/iptables load". |
|
Back to top |
|
|
|