LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to enable IP forwarding? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-enable-ip-forwarding-427605/)

nitaish 03-23-2006 05:36 AM

How to enable IP forwarding?
 
Hello,
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.

Regards

Nitesh N
QualiSpace

doublejoon 03-23-2006 05:57 AM

/etc/sysctl.conf


# Controls IP packet forwarding
net.ipv4.ip_forward = 1

nitaish 03-23-2006 06:42 AM

Hello,
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?

Regards

Nitesh N
QualiSpace

Darin 03-23-2006 11:51 AM

http://www.google.com/linux?q=dnat


All times are GMT -5. The time now is 05:39 AM.