machine behind VPN server wont respond

Jack McGee jack at greendesk.net
Tue Dec 20 03:23:45 UTC 2016


On 12/19/2016 06:46 PM, Rashkae wrote:
> On 16-12-19 06:26 PM, Jack McGee wrote:
>
>>>
>>> mythuser at amethi:~$ route -n
>>> Kernel IP routing table
>>> Destination     Gateway         Genmask         Flags Metric Ref Use
>>> Iface
>>> 0.0.0.0         10.22.10.5      128.0.0.0       UG 0 0        0 tun0
>>> 0.0.0.0         192.168.0.1     0.0.0.0         UG 100 0        0 eth0
>>> 10.22.10.1      10.22.10.5      255.255.255.255 UGH 0 0        0
>>> tun0
>>> 10.22.10.5      0.0.0.0         255.255.255.255 UH 0 0        0 tun0
>>> 91.108.183.50   192.168.0.1     255.255.255.255 UGH 0 0        0
>>> eth0
>>> 128.0.0.0       10.22.10.5      128.0.0.0       UG 0 0        0 tun0
>>> 169.254.0.0     0.0.0.0         255.255.0.0     U 1000 0        0 eth0
>>> 192.168.0.0     0.0.0.0         255.255.255.0   U 100 0        0 eth0
>>>
>>
>> and 192.168.0.1 is the tomato router.
>>
>
> Ok, you seem to have two default gateways, and another vpn already 
> running.  I'm assuming, (at the well known risk,) that this is caused 
> by the private internet gateway app.  Make sure the app is stopped and 
> restart the computer.  Your routting table shoudl not have any 
> references to 10.22.10.xxx  (and I'm not sure why there is an entry 
> for 91.108.183.50....  presumably, that's a host for which you had to 
> bypass the vpn.)
>
> once you have your routing table in working order, you should be able 
> to reach the host over the vpn.
>
> If you want your phone vpn to work at the same time as private 
> internet access, you'll have to add a new routing table entry for your 
> vpn subnet.
>
>
> Once that's working and tested, if you want your vpn
> (It's been a while since I've done this, so there might be a mistake)
>
> route add 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.1
>
> PS.  On an unrelated note, rather than running private internet's app, 
> I would download the ovpn configuration file they provide, and import 
> that file into Ubuntu's network manager.  One GUI to rule them all, 
> and it works really well.  You probably have to add the network 
> manager openvpn gui plugin package.
>
>
>
Rebooted 192.168.0.105 and it came back up without PIA app running.

mythuser at amethi:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    100 0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000 0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     100 0        0 eth0

And after that I could connect to that machine from Android through 
tomato's Openvpn server.

then I tried:

mythuser at amethi:~$ route add 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.1
route: netmask 000000ff doesn't make sense with host route
...


So I guess that is not correct command to add route?  I really don't 
know this stuff and appreciate the help!

and to bring it around restarted PIA app and

mythuser at amethi:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
0.0.0.0         10.28.10.5      128.0.0.0       UG 0      0        0 tun0
0.0.0.0         192.168.0.1     0.0.0.0         UG 100    0        0 eth0
5.153.233.114   192.168.0.1     255.255.255.255 UGH 0      0        0 eth0
10.28.10.1      10.28.10.5      255.255.255.255 UGH 0      0        0 tun0
10.28.10.5      0.0.0.0         255.255.255.255 UH 0      0        0 tun0
128.0.0.0       10.28.10.5      128.0.0.0       UG 0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U 1000   0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U 100    0        0 eth0


and I can no longer connect to that machine through VPN.






More information about the ubuntu-users mailing list