I installed VirtualBox and realized that I need “direct” access to my network in order to be able to connect to my company’s vpn.
I only got NAT to work with VirtualBox.
How do I need to setup my virtual machine’s network settings in order to get a direct IP address from my router? Do I need a bridge? How can I configure such?
There’s a chapter in the Virtualbox user manual that talks about Virtualbox networking and in particular bridging which has to be used instead of NAT if your VPN uses any non-TCP or -UDP protocols. Bridging’s only possible on Windows and Linux/Unix hosts at the moment. The PDF of the manual is at virtualbox.org
For NAT limitations the manual says:
Protocols such as GRE are unsupported: Protocols other than TCP and UDP are
not supported. This means some VPN products (e.g. PPTP from Microsoft) cannot
be used. There are other VPN products which use simply TCP and UDP.
And the VPN i have works via PPTP
Well, I’ve figured out how to make a bridge and i have following now:
Okay, I got quite a bit further but it’s still not working
I know I need to take “Host interface” and i can forget about the bridge i created - but VirtualBox will connect using TAP.
But now I tried to assign the tap to my user with:
linux-c73s:/home/reg # sudo tunctl -t tap0 -u reg
Set 'tap0' persistent and owned by uid 1000
linux-c73s:/home/reg # sudo tunctl -t tap1 -u reg
Set 'tap1' persistent and owned by uid 1000
because I get the error “VERR_HOSTIF_INIT_FAILED” when i try to start my virtual machine with “host interface” networking - may anyone still help me? I’m getting stuck here What do i gotta do?
Not trying to discourage you from posting here, but have you tried posting in the Virtualbox forums? There should be a much larger number of people there who are familiar with the sort of sertup you want to create. Myself, I’m just starting out and finding it interesting.