Find the answer to your Linux question:
Results 1 to 3 of 3
Hey guys, i got two ips for one ethernet adapter on a server on the internet. The First IP is directly on eth0 the second IP is on a different ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2

    IP Forwarding - two external IPs to one internal LAN Ip


    Hey guys,
    i got two ips for one ethernet adapter on a server on the internet.
    The First IP is directly on eth0
    the second IP is on a different subnet on a virtual eth0:1

    the third IP is directly on vmnet2 (you got it? )

    i want a ip forward of the second IP to a specific destination on the same subnet of vmnet2.

    How can i do it?


    Detailed Information:

    Server:
    eth0 = 11.22.33.44 / 255.255.255.0
    eth0:1 = 11.22.44.55 / 255.255.255.240 (i know that isnt correct, but you know what i mean)
    vmnet2 = 10.0.0.1 / 255.255.255.0

    Client:
    eth0 = 10.0.0.151 / 255.255.255.0


    I want that all traffic and all ports which wants to go to eth0:1, goes forward to eth0 of the client.

    How can i do it?
    Bridge isnt possible.
    Greetings, Snooops

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,763
    A) No, because iptables does not support virtual interfaces (ethX:Y).

    This is one suggestion.

    B) You have listed vmnetX which is the default naming for a VMWare virtual switch. IF this virtual switch is a "NAT" network, you should modify VMWare's nat.conf file to allow port forwarding. If the virtual switch is "Host-Only", VMWare will not move packets in/out of that VLAN.

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    2
    Isnt it possible to directly forward all traffic which goes to 11.22.44.55 to 10.0.0.151 without defining each port? yes im using VMware with NAT Interfaces, and i got severel external ips
    and i want to have each ip for one vmachine without caring about ports

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •