VPN Service & ISP IP

salvo2002

Beta member
Messages
1
Background:
I am currently running OpenWRT on a buffalo WZR-HP-AG300H and using OpenVPN to connect to a VPN service. When connected to the VPN a TUN device is created and assigned a class A IP from the VPN server and then all the traffic in/out of the router is through the VPN. When I am connected to VPN Whatismyip.com shows my public IP as the public IP of the VPN server. Most of the time I am away from my home lan and need to access my file server by using ssh. With the VPN running I am unable to get routed into my lan since my public IP is that of the VPN server and I can't change any of the routing on the VPN server.

Question:
With the VPN connected is there anyway for me to use my ISP public IP to ssh into my local lan? Is this even possible? Any suggestions? (I am a newbie when it comes to routing, subnets, firewalls, etc.)

Supporting Info:
eth1 = WAN port, tun0 = VPN, br-lan = 4 port switch on router (VLAN)

Route table with VPN connected:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.99.2.25      128.0.0.0       UG    0      0        0 tun0
0.0.0.0         98.179.8.1      0.0.0.0         UG    0      0        0 eth1
10.10.10.0      0.0.0.0         255.255.255.0   U     0      0        0 br-lan
10.99.2.1       10.99.2.25      255.255.255.255 UGH   0      0        0 tun0
10.99.2.25      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
98.179.8.0      0.0.0.0         255.255.248.0   U     0      0        0 eth1
128.0.0.0       10.99.2.25      128.0.0.0       UG    0      0        0 tun0
178.73.212.241  98.179.8.1      255.255.255.255 UGH   0      0        0 eth1

Route table with VPN disconnected:
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         98.179.8.1      0.0.0.0         UG    0      0        0 eth1
10.10.10.0      *               255.255.255.0   U     0      0        0 br-lan
98.179.8.0      *               255.255.248.0   U     0      0        0 eth1

My router is 10.10.10.1 with DHCP dishing out 10.10.10.2-20

I am using openVPN 2.2.1 (complied for MIPS) and the server is sending this PUSH command to setup the routing:

Code:
PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route 10.99.2.1,topology net30,ping 10,ping-restart 160,ifconfig 10.99.2.26 10.99.2.25'
 
Your issue is due to split tunnel. Investigate to see if you can configure your VPN client to disable "use remote gateway" option.
 
Back
Top Bottom