Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Save netfilter / router settings for reboot?
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
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Mon Oct 27, 2008 2:13 pm    Post subject: Save netfilter / router settings for reboot? Reply with quote

Please tell me how should it be done? I can add something with iptables, but it disappears after reboot..
So I have to make my own script or there is some automation already?
Back to top
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 245

PostPosted: Mon Oct 27, 2008 2:20 pm    Post subject: Reply with quote

This should do it when you have the way you want it configured.
Code:
# /etc/init.d/iptables save


Also don't forget to add it to rc if you haven't already.
Code:
# rc-update add iptables default
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Mon Oct 27, 2008 2:44 pm    Post subject: Reply with quote

Thank you.

But I have another question: how can I edit and review those rules normally? Only by making that script, which was omit at first?
Back to top
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 245

PostPosted: Thu Oct 30, 2008 11:11 pm    Post subject: Reply with quote

I just use the iptables command.
Back to top
View user's profile Send private message
mansniks
Apprentice
Apprentice


Joined: 19 Nov 2007
Posts: 290

PostPosted: Fri Oct 31, 2008 10:45 am    Post subject: Reply with quote

Well, I ended up writing script, that resets all the rules and closes firewall, then adds rules from a fresh. Then I save with /etc/..
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