Re: IP forwarding




Ο/Η manoj έγραψε:

I want traffic on eth1 to be forwarded to eth2.

I'll give you what I do for something similar and you will decide if
this is your case or else it may help you research more, which is good
in any case.

This forwards traffic from eth0:1 to eth0's g/w

1. one physical interface (eth0)
2. g/w set to whatever it is.
3. set secondary IP to eth0 (eth0:1)
4. set IP_FORWARD="yes", in /etc/sysconfig/sysctl file
5. iptables -A POSTROUTING -t nat -j SNAT --to-source [eth0 IP] -s
[eth0:1 net]/24 -o eth0

My guru, Christos Michail, tought me this.

.



Relevant Pages

  • Re: NAT-setup: modification requared
    ... I have F11 machine which shares WEB to small home wired network. ... F11 computer has 3 ethernet adapters - one built in motherboard (eth0, 'main' adapter) and two additional cards. ... It worked perfect while there was only one client in the home network - window$ laptop, connected to eth1 (eth2 was down). ...
    (Fedora)
  • NAT-setup: modification requared
    ... I have F11 machine which shares WEB to small home wired network. ... F11 computer has 3 ethernet adapters - one built in motherboard (eth0, 'main' adapter) and two additional cards. ... It worked perfect while there was only one client in the home network - window$ laptop, connected to eth1 (eth2 was down). ...
    (Fedora)
  • Re: [Fwd: FC9 Network Config]
    ... eth0: negotiated 100baseTx-HD, link ok ... eth1: no link ... eth2 is no link... ... Shutting down interface eth0: ...
    (Fedora)
  • Re: setting-up a dmz
    ... |> eth2: ERROR while getting interface flags: No such device. ... eth2 is used by your card. ... eth1: link up, 10Mbps, half-duplex, lpa 0x0000 ... ADDRCONF: eth0: link is not ready ...
    (Debian-User)
  • Re: setting-up a dmz
    ... |> eth2: ERROR while getting interface flags: No such device. ... eth2 is used by your card. ... eth1: link up, 10Mbps, half-duplex, lpa 0x0000 ... ADDRCONF: eth0: link is not ready ...
    (Debian-User)