Hi guys,
I want to establish a WireGuard VPN connection between my RUTX11, which is on the road and my Fritz!Box at home and face some serious problems like many others here in the community.
All Devices connected to the LAN/WLAN side of the RUTX11 should connect devices at my home network and access the internet only through the tunnel (0.0.0.0/0) an have the external IP from Fritz!Box.
I already use WireGuard from several Mobile Phones and Tablets to establish a VPN connection. to the Firtz!Box. I can access all devices at home as well as the internet traffic is tunneled through the VPN connection; like expected.
Even if I connect my Mobile Phone via WLAN with my RUTX11 and the RUTX11 is connected to Mobile Internet (LTE), I can establish a WireGuard VPN Tunnel from my Phone and access all devices at home and the internet through the tunnel
Now it becomes serious:
When I use the RUTX11 as a VPN Client (Peer) for the Fritz!Box and I enter ONLY the internal IPs from my home network the VPN connection is established and I can connect all devices at home. The VPN then is split tunnel, so that all internet connections are directly routed via RUTX11 to the internet.
When I enter any combination of 0.0.0.0/0 or 0.0.0.0/1, 128.0.0.0/1 in the allowed IP of the peer, the VPN connection is only partially established. There is no handshake and routing does not work!
I tried fiddeling around with firewall settings and routing on the RUTX11, but really nothing works.
Here you find a picture of the environment with the different test cases. ANY IDEAS are highly appreciated.
Thanks
-
Mobile A (LTE Connection) with installed WireGuard Client
β> Allowed IPs 192.168.25.0/24, 0.0.0.0/0
β> WireGuard Tunnel established between Mobile A and Fritz!Box
β> Mobile A can access Server A in LAN (192.168.5.0/24)
β> Mobile A can access Internet (tunneled, external IP is Fritz!Box) -
Mobile A (WLAN Connection) with installed WireGuard Client
β> Allowed IPs 192.168.25.0/24, 0.0.0.0/0
β> WireGuard Tunnel established between Mobile A and Fritz!Box
β> Mobile A can access Server A in LAN (192.168.5.0/24)
β> Mobile A can access Internet (tunneled, external IP is Fritz!Box) -
RUTX11 (LTE Connection) with WireGuard
β> Allowed IPs 192.168.25.0/24, 192.168.5.0/0
β> WireGuard Tunnel established between RUTX11 and Fritz!Box
β> RUTX11 can access Server A in LAN (192.168.5.0/24)
β> RUTX11 can access Fritz!Box in DMZ (192.168.25.0/24)
β> Computer A (WLAN with RUTX11) can access Server A in LAN (192.168.5.0/24)
β> Computer A (WLAN with RUTX11) can access Fritz!Box in DMZ (192.168.25.0/24)
β> Computer A (WLAN with RUTX11) can access Internet (no tunneling! external IP is RUTX11)
β> Mobile A (WLAN with RUTX11) can access Server A in LAN (192.168.5.0/24)
β> Mobile A (WLAN with RUTX11) can access Fritz!Box in DMZ (192.168.25.0/24)
β> Mobile A (WLAN with RUTX11) can access Internet (no tunneling! external IP is RUTX11) -
RUTX11 (LTE Connection) with WireGuard (different Allowed IPs)
β> Allowed IPs 192.168.25.0/24, 192.168.5.0/0, 0.0.0.0/0 β> tunnel partial established, no handshake!, no routing!
β> Allowed IPs 192.168.25.0/24, 192.168.5.0/0, 0.0.0.0/1, 128.0.0.0/1 β> tunnel partial established, no handshake!, no routing!
β> Allowed IPs 0.0.0.0/0 β> tunnel partial established, no handshake!, no routing!
β> Allowed IPs 0.0.0.0/1, 128.0.0.0/1 β> tunnel partial established, no handshake!, no routing!