Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-08-2003, 10:31 PM   #1
Registered: May 2003
Location: indonesia
Distribution: linux redhat9
Posts: 31

Rep: Reputation: 15
setting up ipforwarding

people, can anybody help me how and where to write this command, is in the terminal? echo 1 > /proc/sys/net/ipv4/ip_forward, see i'am using redhat9 linux distro, and i wanna make my ip is routable, and secondly how to configure the iptables? i wanna make my redhat as my gateway to the internet as its connected to the net using a modem installed, thanks and appreciates for replying peep!!
Old 05-08-2003, 10:50 PM   #2
Registered: Nov 2002
Location: Vancouver
Distribution: Slackware 9.0
Posts: 43

Rep: Reputation: 15
Just write it down at yours command line and press enter.
After that see whether worked with less /proc/sys/net/ipv4/ip_forward.
If there is 1 that's it...
Old 05-09-2003, 12:05 AM   #3
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
if you want it to be maintained through a reboot yo ould add it to /etc/rc.d/rc.local (this file gets run at start up).

Before you actually do this though it would be a good idea to set up your firewall first. Once you set ip_forward to 1 packets can be sent through your network and if you have no firewall you might get a nasty result.


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
ipforwarding no work, but samba does Zaius Linux - Newbie 4 02-22-2004 06:39 PM
a good ipforwarding guide Zaius Linux - Newbie 1 01-11-2004 06:40 PM
ipforwarding ??? adavila Linux - Networking 1 10-22-2003 08:59 PM
Dual NIC's ipforwarding? TheRealDeal Linux - Networking 2 09-26-2003 01:10 AM
masquerading and ipforwarding (ipchains) magguz Linux - Newbie 1 09-24-2003 01:25 PM

All times are GMT -5. The time now is 02:15 AM.

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