LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-03-2010, 02:09 AM   #1
smart_shell
Member
 
Registered: May 2009
Location: NYC
Distribution: Ubuntu 10.04 LTS
Posts: 52

Rep: Reputation: 0
iptables problem


Hi, is there different between iptables-save and /etc/init.d/iptables save ?
and net.ipv4.ip_forward =1 echo 1 > /proc/sys/net/ipv4/ip_forward
thnx.

Last edited by smart_shell; 11-03-2010 at 02:39 AM.
 
Old 11-03-2010, 04:33 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
yes, iptables-save you need to redirect to a file, whereas /etc/init.d/iptables save (if you have one) saves it to a particular place

net.ipv4.ip_forward=1 is typically in a sysctl.conf file and generally restores forwarding after reboots, whereas echo 1> /proc/sys/net/ipv4/ip_forward is just a temporary turn on of forwarding that won't persist across reboots
 
Old 11-03-2010, 04:51 AM   #3
smart_shell
Member
 
Registered: May 2009
Location: NYC
Distribution: Ubuntu 10.04 LTS
Posts: 52

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by estabroo View Post
yes, iptables-save you need to redirect to a file, whereas /etc/init.d/iptables save (if you have one) saves it to a particular place

net.ipv4.ip_forward=1 is typically in a sysctl.conf file and generally restores forwarding after reboots, whereas echo 1> /proc/sys/net/ipv4/ip_forward is just a temporary turn on of forwarding that won't persist across reboots
if i did stop firewall script from /etc/init.d/iptables stop
and launch my own fw.sh after it i will do save from /etc/init.d/iptables save/ it make my start default iptables rules from fw.sh
 
  


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
[SOLVED] Rather huge IPtables chain, iptables: Memory allocation problem. Gangrif Linux - Networking 10 09-11-2009 03:30 PM
Strange IPTables or Perhaps its not IPtables problem? helptonewbie Linux - Security 4 01-28-2009 07:54 AM
problem iptables stomach Linux - Software 2 05-07-2007 03:47 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
iptables problem Shark Linux - Networking 1 12-28-2002 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration