Page 1 of 1

hetzner dedicade question bridge second single ip address

Posted: 1. Feb 2020, 16:53
by valantislevas
Hello can someone help me how to make it work?

I have one dedi on hetzner with ubuntu 18.04 with netplan it works..

I setup inside a virtualbox and one windows vps to do some projects/jobs but the problem is that i want a additional other ip address and not the same of host machine..

If i put Nat on virtualbox vps it works but with ip of host.. i want to make it work in Bridge with my new bought ip from hetzner with created virtual mac address..
I see that i must configure the netplans yaml but i dont know if i do it right because i dont want to get out from remote dedicade server..

Can someone help me ?

Re: hetzner dedicade question bridge second single ip address

Posted: 1. Feb 2020, 22:56
by scottgus1
We need a bit more help before we can help you. What is a 'dedi'? And a 'hetzner'?

Please look through Virtualbox Networks: In Pictures and try to find what kind of connection fits your needs.

Hint: Bridged puts your VM in the network along with your PC and the VM should get a separate IP address from the network.

Re: hetzner dedicade question bridge second single ip address

Posted: 2. Feb 2020, 00:41
by valantislevas
hetzner is company they are selling dedicade servers etc..

dedi i mean dedicade server..

thats the guide but i dont underestand how i can make it work on ubuntu 18.04

wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en

Re: hetzner dedicade question bridge second single ip address

Posted: 2. Feb 2020, 16:41
by scottgus1
Thanks for the further information, valantislevas! Here is what I understand so far:

Hetzner appears to rent physical servers. You are running Ubuntu 18.04 in their server that you have rented (we call this the 'host'), and Virtualbox is installed on Ubuntu. You have a Windows VM (we call the VM a 'guest') in Virtualbox.

You have tried Virtualbox NAT, which allows communication to the guest using the host's IP address and custom port numbers. This is correct behavior for NAT, see Virtualbox Networks: In Pictures: NAT

You have a separate IP address you purchased, and you want to access the guest with this IP address instead of using the host's IP address.

If this were a standard host PC on a regular house network with a regular house network router, you could use Bridged as the Virtualbox network type. See Virtualbox Networks: In Pictures: Bridged Adapter. Your guest would then talk directly to the network the host is connected to. You would probably have to set up a route in the router to cause traffic on the special IP address to be sent to the Bridged guest.

However, this rented server probably has special setups that would prevent you simply Bridging to the server host's LAN. They probably don't allow that. The Hetzner wiki link you posted has a section "Use with virtualization per routed method" that shows how to attach virtual machines inside the server host to the network. There is another section "Use with virtualization per bridged method" that they say only applies to VMware ESX, and that Virtualbox guests should use the "routed" method.

The "routed" method appears to show Virtualbox guests being Bridged to a "tap" interface that needs to be generated on the host Ubuntu OS, and a route table (?) that sends your separate IP address' traffic to the Bridged guests. How to make the green 'host' box in the wiki diagram for your guest to Bridge to, or how to set up the route table, is beyond me, and actually beyond the scope of the Virtualbox forum. You may need to ask Hetzner or Ubuntu how to set up the network arrangement in the green 'host' box.

Re: hetzner dedicade question bridge second single ip address

Posted: 2. Feb 2020, 17:07
by valantislevas
Hello yes thats the point.. with nat yes its ok.. but the external ip for vps is the same from host and i cant make the guest vps windows to connect on vpn so i want to have other ip that i bought.. also i find this guide..

https://blog.adamretter.org.uk/bridged- ... at-hetzer/

and i think this guide will do the job.. if someone know what i must care on this guide it will be helpful thanks.

Re: hetzner dedicade question bridge second single ip address

Posted: 2. Feb 2020, 17:41
by scottgus1
KVM != Virtualbox. Follow the "Use with virtualization per routed method" recommended in the Hetzner wiki you posted, and ask them for further help.