madrian
8
Hi,
root@GL-AR750S:~# wg
Warning: one or more unrecognized netlink attributes
interface: wg0
public key:
private key: (hidden)
listening port: 24641
peer:
endpoint: :51821
allowed ips: 192.168.9.1/32, 192.168.1.0/24
latest handshake: 3 seconds ago
transfer: 92 B received, 180 B sent
persistent keepalive: every 25 seconds
root@GL-AR750S:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: No error information
root@GL-AR750S:~# ping dsl.sk
^C
root@GL-AR750S:~# curl dsl.sk
curl: (6) Could not resolve: dsl.sk (Could not contact DNS servers)
I want to setup WG in that way that only specific traffic will be routed trough 192.168.9.1/32, 192.168.1.0/24 (as set in allowedips) and everything else without VPN.
The problem is: I can access 192.168.9.1 and everything from 192.168.1.0/24, but not the internet. This setup works everywhere, but not on this router. Maybe it’s a bug?
root@GL-AR750S:~# ip route
0.0.0.0/1 dev wg0 scope link
default via 192.168.8.1 dev eth0.2 proto static src 192.168.8.101
128.0.0.0/1 dev wg0 scope link
185.112.158.164 via 192.168.8.1 dev eth0.2
192.168.8.0/24 dev eth0.2 proto kernel scope link src 192.168.8.101
192.168.9.0/24 dev wg0 proto kernel scope link src 192.168.9.4
192.168.13.0/24 dev br-lan proto kernel scope link src 192.168.13.1
root@GL-AR750S:~# ping dsl.sk
ping: bad address 'dsl.sk'
root@GL-AR750S:~# 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=62 time=158.375 ms
root@GL-AR750S:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: No error information
If I set 0.0.0.0/0 as allowedips (route all traffic trough VPN), internet works. The weird thing is that ip route command shows same result for both cases.