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"

    Relevant Pages

    • Re: [SLE] connection redundancy
      ... which is the router just this side of the ... >>because it's own gateway is still up. ... You'll also need three network cards to put into this Linux box. ... your internal LAN can route packets to the Internet. ...
    • Re: Cant access secure Web pages
      ... and which need to be contacted via the Default Gateway. ... The Default Gateway being the software process that does the network ... Gateway (as set up by your ISP's DHCP packet to the router), ... me so I can send it directly (to the MAC address discovered by ARP). ...
    • Re: Problem with Cable Moden & Router.
      ... gateway is the way in or out. ... a gateway leads to another network. ... Where two routes with different network masks overlap ...
    • Re: [9fans] Do we have a catalog of 9P servers?
      ... experience with plan 9 to comment with any sort of authority. ... redundant resources on the gateway. ... gateway and the host on the internal network. ... "Whoa, here comes a network, we're going to need some more syscalls!" ...
    • RE: [SLE] Two network cards (dual-homed), two gateways? Desparatefor help
      ... > and server, and different for the clients on each of the two networks. ... network set the default gateway to the IP address of the network ... network, but SSH doesn't work. ...