LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-19-2004, 03:54 PM   #1
tarheel92x
Member
 
Registered: Sep 2003
Location: Southeast USA
Distribution: Fedora
Posts: 110

Rep: Reputation: 15
iptables save commands are not working


I have tried to change my default FORWARD rule to DROP and tried several ways to save it:

iptables-save > /etc/sysconfig/iptables
iptables-save -c

My /etc/sysconfig/iptables file looks like this:

:INPUT ACCEPT
:FORWARD ACCEPT
:OUTPUT ACCEPT
COMMIT

and this is what it looks like everytime I reboot even though I have entered the save commands.

Why?



 
Old 01-19-2004, 05:16 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
What distro are you running. If you are using RedHat that should work, but I would use
/etc/init.d/iptables save;
instead. RedHat sometimes moves config files around.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
commands for monitor off / power save tardigrade Linux - General 2 02-13-2005 12:28 AM
Where should I save this iptables? wardialer Linux - Newbie 2 02-12-2005 04:10 AM
Where to save IP Masquerading commands? hnash53 Linux - Networking 4 02-08-2004 01:29 PM
cannot download files in mozilla -save dialog not working, galeon not working cmisip Linux - General 0 08-03-2003 03:25 PM
Iptables-save ??? gruger Linux - Security 3 05-23-2003 06:23 PM


All times are GMT -5. The time now is 11:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration