IP Forwarding: Att: Mike Burger

Date: 09/15/04

  • Next message: Ryan Golhar: "Error in /etc/cron.daily"
    To: <redhat-list@redhat.com>
    Date: Wed, 15 Sep 2004 11:43:47 -0400


    I did the 'ip addr' command. The result is as follows:

    [root@localhost root]# ip addr
    1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet brd scope host lo

    2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
        link/ether 00:60:97:df:8a:82 brd ff:ff:ff:ff:ff:ff
        inet brd scope global eth0

    3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
        link/ether 00:06:5b:b5:86:a9 brd ff:ff:ff:ff:ff:ff
        inet brd scope global eth1


    Is there a way so that I can forward the packets from the network without having its IP address changed to, which is the so called "external interfce" for me.

    Network set up: (Strictly private)

    The redhat 9 gateway forwards traffic between two private networks. The network topology goes like this: ------------ router ----------- ------- | Redaht 9 | -------

    This is a strictly private network setup for doing some tests.

    I had posted this question earlier:


    I am a fairly new person in Linux networking.

    The issue I got some responses was as follows:
    I have had some good help to enable IP forwarding on my Redhat 9
    gateway with the rule:

    [CODE]iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source[/CODE]

    This rule forwards the traffic from the internal network ( to the
    outside trhough the NIC with IP address


    But I feel that the internal IPs are being forwarded with the IP address of the
    external NIC of the gateway.

    It would be helpful if I could have a way to keep the internal IP address
    ( it is without being substituted with the gateways IP
    address( This is because I want the external users to see the
    internal machines( network) as it is.

    Please advise.

    Thank You.


    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe

  • Next message: Ryan Golhar: "Error in /etc/cron.daily"