Temat: klient wireguard - brak internetu ???
Klient wireguard na routerze, konfiguracja robiona od zera, na czysto zgodnie z pordanikiem.
Na chwilę obecną ustawione allowed ip:0.0.0.0/0 na kliencie.
Pingi do serwera działają. Internetu brak.
Klient wireguard podłączony po WAN z routerem operatora GSM.
Widziałem, że pojawiły się nowe wpisy i można zamiast 0.0.0.0/0 wpisać 128.0.0.0/1 lub 0.0.0.0/1 żeby nie zmieniła się trasa domyślna ale chyba nie w tym problem.
root@OpenWrt:~# ping 10.9.0.1
PING 10.9.0.1 (10.9.0.1): 56 data bytes
64 bytes from 10.9.0.1: seq=0 ttl=64 time=47.033 ms
64 bytes from 10.9.0.1: seq=1 ttl=64 time=39.582 ms
64 bytes from 10.9.0.1: seq=2 ttl=64 time=39.251 ms
^Z[1]+ Stopped ping 10.9.0.1
root@OpenWrt:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=43.823 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=42.293 ms
^Z[2]+ Stopped ping 192.168.1.1
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=58 time=58.451 ms
64 bytes from 8.8.8.8: seq=1 ttl=58 time=43.956 ms
^Z[3]+ Stopped ping 8.8.8.8
root@OpenWrt:~# ping google.com
PING google.com (142.250.186.206): 56 data bytes
64 bytes from 142.250.186.206: seq=0 ttl=58 time=35.181 ms
64 bytes from 142.250.186.206: seq=1 ttl=58 time=61.730 ms
^Z[4]+ Stopped ping google.com
Klient wg
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd70:ef64:1097::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.6.1'
option netmask '255.255.255.0'
option ip6assign '60'
#option gateway '192.168.8.1' #ip routera operatora GSM
#list dns '8.8.8.8'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
config interface 'wg0'
option proto 'wireguard'
option private_key '******'
list addresses '10.9.0.2/32'
config wireguard_wg0
option public_key '*********'
option route_allowed_ips '1'
option endpoint_host 'xx.xx.xx.xx'
option endpoint_port '55055'
option persistent_keepalive '25'
option description 'serwer'
list allowed_ips '0.0.0.0/0'Z tego co już kojarzę to skoro ping google.com działa to nie boli go brak DNS czy gateway'a?
Maskarada też chyba na lanie nie jest potrzebna?
Konfig serwera w tej chwili nie mam ale może znajdę.