openvpn sem acesso - Sem rota para hospedar

openvpn sem acesso - Sem rota para hospedar

Estou usando um roteador (openwrt) como servidor.

rota -n (antes da VPN):

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0
192.168.1.2     127.0.0.1       255.255.255.255 UGH   303    0        0 lo
192.168.1.134   127.0.0.1       255.255.255.255 UGH   303    0        0 lo

rota -n (após VPN):

 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.10.10.1      0.0.0.0         UG    0      0        0 tap0
10.10.10.0      0.0.0.0         255.255.255.0   U     0      0        0 tap0
46...........   192.168.1.254   255.255.255.255 UGH   0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0
192.168.1.2     127.0.0.1       255.255.255.255 UGH   302    0        0 lo
192.168.1.134   127.0.0.1       255.255.255.255 UGH   302    0        0 lo
192.168.1.135   127.0.0.1       255.255.255.255 UGH   302    0        0 lo

Meu roteador está em 192.168.1.1.

Consigo me conectar à VPN, mas não tenho acesso à Internet.O campo

Use apenas para recursos nesta conexão

não está verificado. Se eu verificar, poderei ter acesso à Internet, mas como posso ver, o traceroute é o mesmo antes e depois da VPN. Além disso, o IP não muda.

/etc/config/openvpn

config 'openvpn' 'lan'
   option 'enable' '1'
   option 'port' '1194'
   option 'proto' 'udp'
   option 'dev' 'tap0'
   option 'ca' '/etc/openvpn/ca.crt'
   option 'cert' '/etc/openvpn/server.crt'
   option 'key' '/etc/openvpn/server.key'
   option 'dh' '/etc/openvpn/dh1024.pem'
   option 'ifconfig_pool_persist' '/tmp/ipp.txt'
   option 'keepalive' '10 120'
   option 'comp_lzo' '1'
   option 'persist_key' '1'
   list 'push' 'dhcp-option DNS 192.168.1.1'
   option 'server_bridge' '10.10.10.1 255.255.255.0 10.10.10.2 10.10.10.10'

/etc/config/firewall

config  'rule'
    option 'target' 'ACCEPT'
    option 'dest_port' '1194'
    option 'src' 'wan'
    option 'proto' 'tcpudp'
    option 'family' 'ipv4'

informação relacionada