OpenVPN kein Zugriff - Keine Route zum Host

OpenVPN kein Zugriff - Keine Route zum Host

Ich verwende einen Router (OpenWRT) als Server.

Route -n (vor 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

Route -n (nach 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

Mein Router ist unter 192.168.1.1.

Ich kann eine Verbindung zum VPN herstellen, habe aber keinen Internetzugang.

Nur für Ressourcen dieser Verbindung verwenden

ist nicht aktiviert. Wenn ich es aktiviere, kann ich auf das Internet zugreifen, aber wie ich sehe, ist Traceroute vor und nach VPN gleich. Auch die IP ändert sich nicht.

/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'

verwandte Informationen