Gentoo Forums
Gentoo Forums
Quick Search: in
Really Basic Iptables Question(s)... [Solved]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Saar
n00b
n00b


Joined: 21 Jul 2007
Posts: 21
Location: Edmonton, Canada

PostPosted: Mon Apr 14, 2008 10:49 am    Post subject: Really Basic Iptables Question(s)... [Solved] Reply with quote

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 12:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Veteran
Veteran


Joined: 17 Jun 2005
Posts: 2117
Location: Berkshire, UK

PostPosted: Mon Apr 14, 2008 11:23 am    Post subject: Re: Really Basic Iptables Question(s)... Reply with quote

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.
_________________
Duo Xeon 3050 running 32 bit
Dual Xeon 2.8 running 32 bit
Back to top
View user's profile Send private message
Saar
n00b
n00b


Joined: 21 Jul 2007
Posts: 21
Location: Edmonton, Canada

PostPosted: Mon Apr 14, 2008 12:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
gentoo_ram
Apprentice
Apprentice


Joined: 25 Oct 2007
Posts: 172
Location: San Diego, California USA

PostPosted: Mon Apr 14, 2008 1:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum