Już sam nie wiem, w tym linku który podałem nie było nic o wpisach w /etc/confic/network. Wpisałem tam to ale dalej nie ma neta na tun0:
config 'interface' 'vpn'
option 'ifname' 'tun0'
option 'proto' 'static'
option 'ipaddr' '10.1.254.1'
option 'netmask' '255.255.255.0'
config 'route'
option 'interface' 'vpn'
option 'target' '192.168.10.0'
option 'netmask' '255.255.255.0'
option 'gateway' '10.1.254.2'A logread na routerze pokazuje:
May 27 17:54:09 OpenWrt daemon.info hostapd: wlan0: STA 94:44:44:07:c9:83 IEEE 802.11: authenticated
May 27 17:54:09 OpenWrt daemon.info hostapd: wlan0: STA 94:44:44:07:c9:83 IEEE 802.11: associated (aid 1)
May 27 17:54:09 OpenWrt daemon.info hostapd: wlan0: STA 94:44:44:07:c9:83 WPA: pairwise key handshake completed (WPA)
May 27 17:54:09 OpenWrt daemon.info hostapd: wlan0: STA 94:44:44:07:c9:83 WPA: group key handshake completed (WPA)
May 27 17:54:09 OpenWrt daemon.info dnsmasq-dhcp[1499]: DHCPDISCOVER(br-lan) 94:44:44:07:c9:83
May 27 17:54:09 OpenWrt daemon.info dnsmasq-dhcp[1499]: DHCPOFFER(br-lan) 192.168.1.165 94:44:44:07:c9:83
May 27 17:54:09 OpenWrt daemon.info dnsmasq-dhcp[1499]: DHCPREQUEST(br-lan) 192.168.1.165 94:44:44:07:c9:83
May 27 17:54:09 OpenWrt daemon.info dnsmasq-dhcp[1499]: DHCPACK(br-lan) 192.168.1.165 94:44:44:07:c9:83
May 27 17:54:10 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:12 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:20 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:23 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:30 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:33 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:41 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:44 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:51 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:54:54 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:02 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:05 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:12 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:14 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:22 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:24 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:32 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:34 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:42 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER WRITE [53] to 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52
May 27 17:55:45 OpenWrt daemon.notice openvpn(lan)[6292]: client/192.168.1.193:58940 TCPv4_SERVER READ [53] from 192.168.1.193:58940: P_DATA_V1 kid=0 DATA len=52EDIT:
Przekierowałem neta z Orange, zrobiłem:
ip route replace default via 10.8.0.5 dev tun0i cały czas mam IP z Centertel ![]()