I have set up a WireGuard server in my home network in order to provide secure remote access to resources available in my homes local area network (e.g. AntMedia Server, Plex Server and Router management). The VPN tunnel is working and I am able to access the AntMedia Server and Plex server which are located on the same PC as the WirGuard Server. However I am unable to access other devices/PC’s within my homes local area network (e.g. my router).
In fact as soon as I turn on wire guard (using sudo wg-quick up wg0 ) I am no longer able to access my routers web interface from the ubuntu server.
For your reference some details are included below:
AntMedia Server Address: 192.168.104:5080
PlexServer Address: 192.168.104:32400
Router Address: 192.168.0.1:80
My hope router as a static IP provided my my ISP and i have port forwarding to my Ubuntu WireGuard server.
Server “wg0.conf” file
(Interface)
Address = 192.168.0.100/24
SaveConfig = true
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o wlp2s0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o wlp2s0 -j MASQUERADE
ListenPort = 51820
PrivateKey = XX
(Peer)
PublicKey = NH7p6lyAGMYFHWIvhYBOYfmm16UgEZTyQOXXXXXXXXXX
AllowedIPs = 192.168.0.0/24
Endpoint = XX:55215
Windows Client config file
(Interface)
PrivateKey = XX
Address = 192.168.0.109/24
DNS = 8.8.8.8
(Peer)
PublicKey = /HnQBFHaPPXEPwOcX4qtDTY872iX7AkW1VXXXXXXXXXX
AllowedIPs = 192.168.0.1/24, 192.168.0.104/24
Endpoint = 202.XX.XX.XX:51820
Response from running “sudo wg show wg0”
interface: wg0
public key: /HnQBFHaPPXEPwOcX4qtDTY872iX7AkW1VXXXXXXXXXX
private key: (hidden)
listening port: 51820
peer: NH7p6lyAGMYFHWIvhYBOYfmm16UgEZTyQOXXXXXXXXXX
endpoint: 49.XX.XX.XX:55047
allowed ips: 192.168.0.0/24
latest handshake: 21 seconds ago
transfer: 29.52 KiB received, 46.31 KiB sent