OpenVPN & Routing

1

estou preso com o roteamento minha configuração openvpn

Meu servidor central OpenVPN está na Internet (VPS). Ele está usando 10.1.0.1 como vpn ip

Minha Home-LAN (10.0.0.0/255.255.255.0) que tem um cliente em 10.0.0.11 e tem 10.1.0.2 como vpn. Rota estática é definida via dhcp em homenet

Página inicial - > VPS funciona perfeitamente

mas não tenho VPS- > Início dos trabalhos

ping from 10.1.0.1 to 10.1.0.2 works
ping from 10.1.0.1 to 10.0.0.11 NOT works
ping from 10.1.0.1 to 10.0.0.xx NOT works
ping from 10.0.0.xx to 10.1.0.1 works

$ip route get 10.0.0.10
10.0.0.10 via 10.1.0.2 dev tun0 src 10.1.0.1
  cache

O encaminhamento de ip está ativado no cliente local

root@local:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 eth0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0


root@on:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 eth0
10.0.0.0        10.1.0.2        255.255.255.0   UG    0      0        0 tun0
10.1.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
XX.yy.168.0     0.0.0.0         255.255.252.0   U     0      0        0 eth0

O que eu sinto falta?

    
por Nik 17.02.2017 / 02:05

0 respostas