Download your favorite Linux distribution at LQ ISO.
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 03-23-2006, 05:36 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 17

Rep: Reputation: 0
How to enable IP forwarding?

I want to enable IP forwarding in a Linux box with Red Hat ES 3.0. I know that we can do it using IPTABLES, but I have no idea as to how to do it. Can anybody help me with the procedure to add IP forwarding so that if anybody sends a request to the IP, it gets
automatically forwarded to another IP which is on a different network?

Awaiting a fast response.


Nitesh N
Old 03-23-2006, 05:57 AM   #2
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
Old 03-23-2006, 06:42 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I think you have not understood what I want. Let me explain you. I have one Server with IP <IP1> which is hosting certain applications. Now the thing is that I will be changing the IP of the server to <IP2> and add the IP <IP1> to another server. Now I want people sending requests to <IP1> to be forwarded to
<IP2>. Now <IP1> and <IP2> are on separate networks.

I hope you have understood the scenario.

Can you help me setting up the above?


Nitesh N
Old 03-23-2006, 11:51 AM   #4
Senior Member
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45


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
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
how to enable port forwarding linetnew Linux - Networking 1 05-26-2005 04:20 AM
How to enable ip forwarding (to make a simple router) prabhatsoni Linux - Networking 9 03-31-2005 12:56 PM
How to enable packet forwarding davidho3 Linux - Networking 2 10-12-2004 10:45 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration