Page 1 of 1

Acces the VPN Server through VPN with only one eth-device?

Posted: Sun Feb 08, 2015 10:21 pm
by qupfer
Hi,

I know that I can't reach the local vpn-server-IP through the VPN from a client, if I bridge the vpn-hub directly to eth0.

But I seem to remember, that a workaround was something like create a additionaly tap-device and do some IP/routing commands and stuff like that.

Can somebody give me these informations?

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Sun Feb 08, 2015 11:42 pm
by GreenUser
Good luck, and if you find a way to do this, please let me know.

I've spent three weeks on trying to create a functional tap / tun device based on the limited information that is available on this.

I am running CentOS 6 on a VPS and it simply doesn't work. Reluctantly, I will continue to use NAT as it seems that SoftEther is primarily designed for use with NAT.

The ideal setup would obviously be a clustered configuration with a bridge device to the gateway but again, I've spend three weeks on this and cannot get it to work, and I'm not a novice either.

If you are interested, here are a couple links to look at (I've tried these to no avail):
http://blog.lincoln.hk/blog/2013/03/19/ ... er-on-vps/
http://www.scribd.com/doc/187770965/Loc ... -on-CENTOS

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 09, 2015 8:57 am
by qupfer
GreenUser wrote:
> Good luck, and if you find a way to do this, please let me know.

A "double-bridge" will work, but its ugly.
I mean bridge the vpn-hub to a tap device and then bridge the bridged-tap-device to eth0.

I prefer to bridge the hub directly to eth0, but in this case, you can't reach the vpn-server through the VPN.
And if I remember correctly, a other solution was a quite different "double-bridige". Bridge vpn-hub to etho and also bridge vpn-hub to a tap-device.

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 09, 2015 6:36 pm
by GreenUser
Yes, that does sound messy. I am looking into using IPTables to solve this problem, so I will keep you posted on what I find.

Have you been able to bridge the hub directly to eth0 AND have clients successfully routed to the internet?

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 09, 2015 8:28 pm
by qupfer
GreenUser wrote:

> Have you been able to bridge the hub directly to eth0 AND have clients successfully
> routed to the internet?

Yes.
On Windows with the offical Softetether client and just connect.
On Linux I set a static route to the vpn server to avoid connection loss and then I run dhcpcd (or any other dhcp client) on tap0.
Client got IP, Gatway, DNS etc. from my gateway (home router) and it works.

Or did you try to bridge to eth0 on a hosted (v)server?

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 09, 2015 9:46 pm
by GreenUser
Yes, I tried bridging the hub to eth0 on a VPS (Vserver) and it did not work. I am assuming this is because the bridge would request an additional address from the hosts dhcp server.

I understand you were able to get the bridge working from your home setup. Have you worked with SoftEther on a VPS? If so, were you able to get things running?

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Wed Feb 18, 2015 8:17 am
by thisjun
I think some VPS don't allow promiscuous mode.
So, you should use tap mode localbridge on VPS.

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Sat Feb 21, 2015 10:33 am
by mesa57
Is there anywhere some tutorial how to use TAP mode bridge on a VPS/Linux ?

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 23, 2015 7:42 pm
by qupfer
mesa57 wrote:
> Is there anywhere some tutorial how to use TAP mode bridge on a VPS/Linux ?


http://blog.lincoln.hk/blog/2013/05/17/ ... al-bridge/
(http://blog.lincoln.hk/blog/2013/03/19/ ... er-on-vps/)

Re: Acces the VPN Server through VPN with only one eth-devic

Posted: Mon Feb 23, 2015 8:59 pm
by mesa57
Thank you :)