Wracając do tematu wireguard.
Na serwerze dodałem adresację podsieci klienta (peer-a - 192.168.3.0/24)
[Interface]
ListenPort = 55055
PrivateKey = klucz
[Peer]
PublicKey = klucz
AllowedIPs = 10.9.0.4/32, 192.168.3.0/24
Endpoint = 5.172.250.001:5578
PersistentKeepalive = 25
W związku z tym, że peer łączy się tylko do serwera jego konfiguracja wygląda tak
root@OpenWrt:~# wg showconf wg0
[Interface]
ListenPort = 34573
PrivateKey = klucz
[Peer]
PublicKey = klucz
AllowedIPs = 0.0.0.0/0
Endpoint = 46.186.30.100:55055
PersistentKeepalive = 25
Po restarcie interfejsów sieciowych na serwerze głównym ping do podsieci peer-a działa tylko przez moment, zaś ping na klasę adresową wg działa bez problemu.
Zapomniałem jeszcze o czymś ?
root@Piratees:~# /etc/init.d/network restart
root@Piratees:~# ping 192.168.3.217
PING 192.168.3.217 (192.168.3.217): 56 data bytes
64 bytes from 192.168.3.217: seq=0 ttl=254 time=175.127 ms
64 bytes from 192.168.3.217: seq=1 ttl=254 time=194.759 ms
64 bytes from 192.168.3.217: seq=2 ttl=254 time=54.333 ms
64 bytes from 192.168.3.217: seq=3 ttl=254 time=69.207 ms
64 bytes from 192.168.3.217: seq=4 ttl=254 time=93.956 ms
64 bytes from 192.168.3.217: seq=5 ttl=254 time=50.859 ms
64 bytes from 192.168.3.217: seq=6 ttl=254 time=51.663 ms
64 bytes from 192.168.3.217: seq=7 ttl=254 time=91.708 ms
64 bytes from 192.168.3.217: seq=8 ttl=254 time=91.513 ms
64 bytes from 192.168.3.217: seq=9 ttl=254 time=70.330 ms
64 bytes from 192.168.3.217: seq=10 ttl=254 time=90.088 ms
64 bytes from 192.168.3.217: seq=11 ttl=254 time=89.753 ms
64 bytes from 192.168.3.217: seq=12 ttl=254 time=50.601 ms
64 bytes from 192.168.3.217: seq=13 ttl=254 time=89.359 ms
64 bytes from 192.168.3.217: seq=14 ttl=254 time=89.415 ms
64 bytes from 192.168.3.217: seq=15 ttl=254 time=57.075 ms
64 bytes from 192.168.3.217: seq=16 ttl=254 time=77.916 ms
64 bytes from 192.168.3.217: seq=17 ttl=254 time=96.435 ms
64 bytes from 192.168.3.217: seq=18 ttl=254 time=89.390 ms
64 bytes from 192.168.3.217: seq=19 ttl=254 time=68.153 ms
64 bytes from 192.168.3.217: seq=20 ttl=254 time=87.718 ms
64 bytes from 192.168.3.217: seq=21 ttl=254 time=248.826 ms
64 bytes from 192.168.3.217: seq=22 ttl=254 time=90.198 ms
64 bytes from 192.168.3.217: seq=23 ttl=254 time=69.943 ms
64 bytes from 192.168.3.217: seq=24 ttl=254 time=87.767 ms
64 bytes from 192.168.3.217: seq=25 ttl=254 time=87.309 ms
64 bytes from 192.168.3.217: seq=26 ttl=254 time=86.164 ms
64 bytes from 192.168.3.217: seq=27 ttl=254 time=94.509 ms
64 bytes from 192.168.3.217: seq=28 ttl=254 time=86.796 ms
64 bytes from 192.168.3.217: seq=29 ttl=254 time=129.218 ms
64 bytes from 192.168.3.217: seq=30 ttl=254 time=89.339 ms
64 bytes from 192.168.3.217: seq=31 ttl=254 time=119.847 ms
64 bytes from 192.168.3.217: seq=32 ttl=254 time=97.988 ms
64 bytes from 192.168.3.217: seq=33 ttl=254 time=80.397 ms
64 bytes from 192.168.3.217: seq=34 ttl=254 time=79.956 ms
64 bytes from 192.168.3.217: seq=35 ttl=254 time=79.482 ms
64 bytes from 192.168.3.217: seq=36 ttl=254 time=87.300 ms
64 bytes from 192.168.3.217: seq=37 ttl=254 time=88.488 ms
64 bytes from 192.168.3.217: seq=38 ttl=254 time=81.034 ms
64 bytes from 192.168.3.217: seq=39 ttl=254 time=78.578 ms
64 bytes from 192.168.3.217: seq=40 ttl=254 time=79.381 ms
64 bytes from 192.168.3.217: seq=41 ttl=254 time=78.114 ms
64 bytes from 192.168.3.217: seq=42 ttl=254 time=57.966 ms
64 bytes from 192.168.3.217: seq=43 ttl=254 time=78.856 ms
64 bytes from 192.168.3.217: seq=44 ttl=254 time=77.496 ms
64 bytes from 192.168.3.217: seq=45 ttl=254 time=85.323 ms
64 bytes from 192.168.3.217: seq=46 ttl=254 time=77.108 ms
64 bytes from 192.168.3.217: seq=47 ttl=254 time=78.174 ms
64 bytes from 192.168.3.217: seq=48 ttl=254 time=77.308 ms
64 bytes from 192.168.3.217: seq=49 ttl=254 time=84.479 ms
64 bytes from 192.168.3.217: seq=50 ttl=254 time=76.683 ms
64 bytes from 192.168.3.217: seq=51 ttl=254 time=84.142 ms
64 bytes from 192.168.3.217: seq=52 ttl=254 time=77.002 ms
64 bytes from 192.168.3.217: seq=53 ttl=254 time=76.907 ms
64 bytes from 192.168.3.217: seq=54 ttl=254 time=95.574 ms
64 bytes from 192.168.3.217: seq=55 ttl=254 time=83.388 ms
64 bytes from 192.168.3.217: seq=56 ttl=254 time=84.208 ms
64 bytes from 192.168.3.217: seq=57 ttl=254 time=55.265 ms
64 bytes from 192.168.3.217: seq=58 ttl=254 time=70.541 ms
64 bytes from 192.168.3.217: seq=59 ttl=254 time=71.397 ms
64 bytes from 192.168.3.217: seq=60 ttl=254 time=78.124 ms
64 bytes from 192.168.3.217: seq=61 ttl=254 time=70.071 ms
64 bytes from 192.168.3.217: seq=62 ttl=254 time=77.876 ms
64 bytes from 192.168.3.217: seq=63 ttl=254 time=69.799 ms
64 bytes from 192.168.3.217: seq=64 ttl=254 time=69.477 ms
64 bytes from 192.168.3.217: seq=65 ttl=254 time=69.228 ms
64 bytes from 192.168.3.217: seq=66 ttl=254 time=69.111 ms
64 bytes from 192.168.3.217: seq=67 ttl=254 time=68.810 ms
^C
--- 192.168.3.217 ping statistics ---
85 packets transmitted, 68 packets received, 20% packet loss
round-trip min/avg/max = 50.601/85.504/248.826 ms
ZTE MF 286D OpenWrt 23.05-SNAPSHOT r23484-b742216dc8
Zyxel EX5601-T0 ubootmod OpenWrt 24.10-SNAPSHOT, r28432-7609571dcd
TP-LINK Archer C7 v5 - 1.14.0.2 (Built 20231226-1035 git@8e210b77)