Need help on home network

Hi guys, I have an issue with my current home network configuration. I followed the Mullvad guide to setup Wireguard on a router with OpenWRT. I was able to make wireguard work, but inside the LAN, devices are not able to reach each other (Destination host unreachable). And I need to be able to do so.

My configuration is as follows:
ISP Cable Modem/Wifi turned into Bridged -> Linksys E3200 with OpenWRT (wifi disabled) -> TP-Link Archer AX50 as wirless router

I think I need to modify something in OpenWRT, but I'm not sure what. All the configuration on openwrt is default plus the modification I followed in the guide. Maybe it is something related to Firewall zones or VLAN. I disabled NAT in the wifi router. Maybe I need to disable DHCP in the openwrt router (i don't know how).

Your help will be much appreciated
Thank you!

Please collect the output and post it to redacting the private parts:

ubus call system board; uci show network; uci show firewall; wg show; \
ip address show; ip route show table all; ip rule show; iptables-save

In addition, clarify the source and destination IPs when you try to access the host.

1 Like

Thank you for the reply!

What im trying is to be able to use peer to peer access on my devices like video games or software like Parsec (I was able to do so before configuring the router with openwrt and wireguard). A simple test i did is ping from one computer to another:

PS C:\Users\patri> ping

Pinging with 32 bytes of data:
Reply from Destination host unreachable.
Reply from Destination host unreachable.
Reply from Destination host unreachable.
Reply from Destination host unreachable.

Ping statistics for
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

118 is the source pc and 116 destination pc

Thank you!

1 Like

Add a static route on OpenWrt to the subnet via the IP of your downstream router.

If the issue persists, post the VPN-PBR config:

uci show vpn-policy-routing

Like this?. is the IP of the Tp-link router (I think is what you refer as downstream). is the netmask used on that router. Should I restart the router after each change?.

I went ahead and ran that command:

root@OpenWrt:~# uci show vpn-policy-routing
vpn-policy-routing.config.webui_supported_protocol='tcp' 'udp' 'tcp udp' 'icmp' 'all'

Thank you!

Currently the Linksys router has no route to the subnet

Assuming that the TP-Link router is in the router mode, it should have an IP address in the subnet to be able to properly communicate with your Linksys router.
This IP should be used as a gateway to the subnet.

Otherwise, consider switching the TP-Link router to the AP mode.

See also: Router vs switch vs gateway and NAT

1 Like

Ok, understood. Yes, the IP on that subnet of the TP-Link was I have modified it and restarted both routers but no luck.

I Went ahead and changed the TPlink router as AP. Same results , destination host unrecheable :frowning:

  • Make sure to reconnect the clients.

  • Allow pings from outside the local subnet in the Windows firewall.

  • Exclude the local subnets as destination from all policies on OpenWrt:

uci set vpn-policy-routing.@policy[0].dest_addr="!"
uci commit vpn-policy-routing
/etc/init.d/vpn-policy-routing restart
  • Check routing and connectivity from OpenWrt:
ip route get
ping -w 3
  • If you switched the TP-Link router to the AP mode, verify that all your clients received DHCP leases on OpenWrt in the subnet.
1 Like