Hi everyone
Along with my root-server I got a bunch of IPs.
More precisely: One primary IP (bound to eth0) and three other ones that are routed to the interface of the primary one (accessed through pseudo-interfaces eth0:0, eth0:1, eth0:2).
ifconfig gives me something like that (ip and mac addresses are not the real ones):
eth0 Link encap:Ethernet Hardware Adresse 1a:2b:3c:4d:5e:6f
inet Adresse: 90.80.70.60 Bcast:90.80.70.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:79121 errors:0 dropped:0 overruns:0 frame:0
TX packets:68715 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:10727214 (10.7 MB) TX bytes:18570446 (18.5 MB)
Interrupt:19 Basisadresse:0x2000
eth0:0 Link encap:Ethernet Hardware Adresse 1a:2b:3c:4d:5e:6f
inet Adresse:90.80.70.50 Bcast:94.255.255.255 Maske:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
Interrupt:19 Basisadresse:0x2000
eth0:1 Link encap:Ethernet Hardware Adresse 1a:2b:3c:4d:5e:6f
inet Adresse:90.80.70.51 Bcast:94.255.255.255 Maske:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
Interrupt:19 Basisadresse:0x2000
eth0:2 Link encap:Ethernet Hardware Adresse 1a:2b:3c:4d:5e:6f
inet Adresse:90.80.70.52 Bcast:94.255.255.255 Maske:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
Interrupt:19 Basisadresse:0x2000
lo ...normal stuff...
Because I don't need all of them for the server, I want to use one of the IPs (let's say the last one: 90.80.70.52) to provide a public and static IP to a machine (let's call it "homebox") which is connected via a normal dynamic-ip dsl connection to the internet.
The Idea was to set up OpenVPN on the server which would capture all incoming IP-Packages for 90.80.70.52 and send them through a VPN-tunnel to "homebox"
Homebox on the other end should get a (virtual) interface with 90.80.70.52 as the assigned IP-address
Can someone give me some pointers how I can do that?
Some questions/restrictions I thought about:
- I don't want to use NAT: The interface at the homebox should have 90.80.70.52 as the address and NOT 10.1.2.3 or something like that
- Can this be done with a routing (tun) interface?
- Or is there a bridging (tap) interface necessary?
- For Reasons of saving bandwith, ONLY packages pointing at 90.80.70.52 should go through the tunnel. Everything else hitting the server is either used by the server itself (meaning: the other three IPs or can be discarded/ dropped)
Thanks a lot in advance,
Martin