share openvpn from guest to network
Posted: 23. Apr 2013, 00:39
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.
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.