Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables-save
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
ali3n
n00b
n00b


Joined: 18 Sep 2004
Posts: 14

PostPosted: Tue Nov 21, 2006 5:10 am    Post subject: iptables-save Reply with quote

Im tired atm..since its rather early in the morning here...so i might have missed something basic. IM a newb at iptables and was planning to set up a basic fw.
All things that is needed is enabled in kernel, and aplications installed...everything is going as planned...then
*POFF* first trouble apears, iptables-save dosent generate a thing, squat nothing nada...and i got no frigging clue why :> help plx plx.
Back to top
View user's profile Send private message
fangorn
Veteran
Veteran


Joined: 31 Jul 2004
Posts: 1886

PostPosted: Tue Nov 21, 2006 7:18 am    Post subject: Reply with quote

Code:

iptables -L > rules.txt

gives you all active rules in all defined chains.
_________________
Video Encoding scripts collection | Project page
Back to top
View user's profile Send private message
aqu
Apprentice
Apprentice


Joined: 12 Nov 2005
Posts: 249
Location: Kalisz, Poland

PostPosted: Tue Nov 21, 2006 7:51 am    Post subject: Reply with quote

Check is there anything in /var/lib/iptables/rules-save
and always save your rules with
Code:
# /etc/init.d/iptables save

cause gentoo is using file i have mention above to store iptables rules, and it's gettnig them from that file too.
_________________
Security is like Ogres and Onions, they have layers.
Linux - Registered user #415939

adopt an unanswered post
Back to top
View user's profile Send private message
fandar
n00b
n00b


Joined: 22 Oct 2006
Posts: 1

PostPosted: Tue Nov 21, 2006 10:03 am    Post subject: Reply with quote

You can set your iptables save path in
Quote:
/etc/conf.d/iptables
and you can set here save ruels on stop too.
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