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

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


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

PostPosted: Mon Apr 14, 2008 3:49 pm    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 5:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


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

PostPosted: Mon Apr 14, 2008 4:23 pm    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.
Back to top
View user's profile Send private message
Saar
n00b
n00b


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

PostPosted: Mon Apr 14, 2008 5: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
Guru
Guru


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

PostPosted: Mon Apr 14, 2008 6: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
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