Hey guys,
I bashed my head for the last 12 hours trying to find a solution for the following setup:
I want to setup a server that will route the connection trough 2 VPN providers. I had the setup on the server, but unfortunately, I cannot restore the Vbox. The person that made the config for me the first time is nowhere to be found so I am forced to retrace the steps. Bare with me, as it`s quite complicated to explain...:
On server I have w7 64 bit with:
VPN1 - first openvpn provider
LAN1 - direct internet access
LAN2 - used for sharing, connected to main PC trough a cross cable. Main PC LAN: LAN3
VB1 - host only adapter 1 192.168.56.1
VB2 - host only adapter 2 192.168.140.1
I chose not to use NAT on any, because I don`t want internet sharing if any VPN fails.
-----------------------------------------------------------------------------------------
I used windows XP as install for the guest system. I added a secondary adapter in the guest:
VPN2 - 2nd openvpn provider
IN - (host only adapter 1) - guest system is supposed to get internet trough it (VB1)
OUT - (host only adapter 2) - guest should share VPN 2 and send it trough LAN2 (VB2)
-----------------------------------------------------------------------------------------
What I managed to achieve was:
- share VPN1 to IN adapter.
VB1 - 192.168.56.1
255.255.255.0
IN - 192.168.56.2
255.255.255.0
192.168.56.1
Next, I shared VPN2 trough OUT
OUT - 192.168.140.1
255.255.255.0
Now, I have no idea how to send OUT to LAN2, as I cannot share 2 connections under w7 (under any windows I think..)
I tried setting LAN2 with 192.168.140.xx/255.255.255.0 but with no success. The above configuration should be correct as this is the setup I had. It should work by setting 192.168.140.xx/255.255.255.0/192.168.140.1 on LAN3, but it doesn`t. Bridge won`t work.... It`s quite frustrating mostly because I had it working.. Thanks for your patience and I hope I will get the saving tip from you.
share openvpn from guest to network
-
noteirak
- Site Moderator
- Posts: 5231
- Joined: 13. Jan 2012, 11:14
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Debian, Win 2k8, Win 7
- Contact:
Re: share openvpn from guest to network
I am afraid I have to cut short to this topic : what you are trying to achieve has nothing to do with Virtualbox.
Virtualbox networking modes can be matched to real networking hardware behaviour and are simply network topology to take into account while planning your solution.
In this case, the fact you're using Virtualbox is not relevant at all to your case, and what you're trying to achieve is (very) advanced networking setup and is way out of scope of this forum.
I would strongly recommend seeking help & support on a networking forum.
Virtualbox networking modes can be matched to real networking hardware behaviour and are simply network topology to take into account while planning your solution.
In this case, the fact you're using Virtualbox is not relevant at all to your case, and what you're trying to achieve is (very) advanced networking setup and is way out of scope of this forum.
I would strongly recommend seeking help & support on a networking forum.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!