LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-27-2007, 10:00 PM   #1
ninjaz
Member
 
Registered: Aug 2003
Location: Michigan
Distribution: RHEL v.4, Debian
Posts: 82

Rep: Reputation: 15
IPv4 forwarding disables itself...


I am creating a gateway with a Red Hat EL 5 box. I have gone in and changed the value from 0 to 1 in the sysctl.conf file and then restarted the machine. When the box restarted it didn't seem to work so I did a "/sbin/service network restart" and it goes through restarting the interfaces however it then goes on to say "disabling ipv4 fowarding = 0". I have checked the file afterwards and it still says 1 but everytime I restart the network devices it disables the forwarding.
Any ideas?
 
Old 06-28-2007, 07:22 AM   #2
mallux
Member
 
Registered: Jun 2007
Location: London, UK
Distribution: Ubuntu, RHEL, Fedora
Posts: 46
Blog Entries: 1

Rep: Reputation: 16
Yes the ipv4 forwarding seems to be explicitly disabled during the "stop" section of the network service script /etc/rc.d/init.d/network. During the "start" section there are calls to sysctl which will re-enable forwarding if it's set in sysctl.conf but there is no corresponding alert message printed.

So it would seem that the message is safe to ignore, and your forwarding will be re-enabled correctly during a restart. If you're concerned about it you could always hack the network script to check that forwarding has been re-enabled and print a message accordingly:

Code:
[ `sysctl -n net.ipv4.ip_forward` eq 1 ] && echo "IPv4 packet forwarding is enabled"
 
Old 06-28-2007, 10:10 AM   #3
ninjaz
Member
 
Registered: Aug 2003
Location: Michigan
Distribution: RHEL v.4, Debian
Posts: 82

Original Poster
Rep: Reputation: 15
I'll have to take a look at the script then since it does not seem to work at all. Thanks for your help.
 
  


Reply



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
disables hibrinate mode linuxtesting2 Solaris / OpenSolaris 1 03-12-2006 09:07 AM
gdm disables mixer adwd3509@yahoo Slackware 9 01-05-2006 08:33 PM
Ethernet Disables Alone jpavak Linux - Networking 2 07-07-2004 07:12 AM
enabling ipsec (frees/wan) disables packet forwarding hakcenter Linux - Networking 1 07-18-2003 09:11 AM
Ctrl S disables S key mweaver40 Linux - Hardware 2 06-05-2003 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:01 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