machine behind VPN server wont respond

Jack McGee jack at greendesk.net
Tue Dec 20 18:48:49 UTC 2016


On 12/20/2016 11:59 AM, Rashkae wrote:
> On 16-12-19 10:23 PM, Jack McGee wrote:
>
>>
>> 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!
>>
>>
>
> My bad, try this,  (note: route has to be run as root, so use sudo)
>
>
> route add -net 10.8.0.0 netmask 255.255.255.0 gw 192.168.0.1
>

Perfect, much thanks!

mythuser at amethi:~$ sudo route add -net 10.8.0.0 netmask 255.255.255.0 gw 
192.168.0.1
[sudo] password for mythuser:
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.8.0.0        192.168.0.1     255.255.255.0   UG 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






More information about the ubuntu-users mailing list