Page 1 of 1

Cannot access LAN through VPN with local bridge

Posted: Thu Sep 29, 2016 8:46 pm
by Hegemon
My network configuration is as follows:
Client --(wifi)------>Android HotSpot ---(internet)---> Router ----(LAN)---> Server

***** Client:
PC + Windows 7 with SoftEther Client 4.20, VPN Client Adapter
IP. Y.Y.Y.Y
IP assigned after connection: 192.168.1.102

***** Router:
external IP X.X.X.X
port 443 is forwarded to Server.
local IP: 192.168.1.1
LAN: 192.168.1.1/24

***** Server:
PC + Linux(x64)
local IP: 192.168.1.100 (eth0)
runs SoftEther VPN 4.20

***** VPN configuration:
local bridge from Virtual Hub to eth0 on server

********** Problem: **********
I can connect from Client to Server without problems. Also, Router Web Client (192.168.1.1:80) is accessible,
which is not accessible from Internet (X.X.X.X:80). But I cannot connect to any other port on LAN, like:
192.168.1.100:22, 192.168.1.100:8080, 192.168.1.200:80 etc.
Attached you'll find "route print" for the client.

What am I missing?

Re: Cannot access LAN through VPN with local bridge

Posted: Fri Sep 30, 2016 10:36 am
by raafat
What are you exactly trying to access ?, PCs, DVRs, IP camers, ?

Re: Cannot access LAN through VPN with local bridge

Posted: Fri Sep 30, 2016 2:50 pm
by Hegemon
Well first, I'm trying to connect to ssh server , listening on 192.168.1.100:22.
It's the same machine VPN server runs on.

192.168.1.100:22 is accessible from other PC's in the LAN.

Re: Cannot access LAN through VPN with local bridge

Posted: Fri Sep 30, 2016 7:45 pm
by Hegemon
Let's simplify the problem.

1) SoftEther server runs on local LAN PC (linux). This machine has a single network adapter, eth0, with IP 192.168.1.100. A local bridge from Virtual Hub to eth0 is configured.

2) 192.168.1.1 is a router, with DHCP server.

Problem:
When I connect (from outside LAN) to SoftEther server, I get an address from DHCP, and I can connect/ping all PC's on LAN, EXCEPT 192.168.1.100. I cannot telnet on any port on it, it does not even respond to ping.

Is this normal behavior ? Do i Need a TAP device instead, to do a local bridge and be able to reach 192.168.1.100 ??

Re: Cannot access LAN through VPN with local bridge

Posted: Fri Sep 30, 2016 10:43 pm
by raafat
You can't access the IP address of the ethernet card that is bridged to your internal network through the VPN connection. It's a Linux-specific limitation. you can do it with a windows-based machine. A simple solution is to "SSH or telnet to your local router, or any SSH-capable machine" and then from there "SSH or telnet back to the SE server".


Good luck (:.

Re: Cannot access LAN through VPN with local bridge

Posted: Sun Oct 02, 2016 7:38 am
by Hegemon
Thanks!

I read in the manual, that you can do a local bridge to a TAP device.
Is it a solution to overcome this linux limitation ?

Re: Cannot access LAN through VPN with local bridge

Posted: Tue Oct 04, 2016 9:35 pm
by Hegemon
I solved the problem by installing and using second Network Adapter on the linux server.
Thanks!