Hey everyone,
I just installed OpenWRT with luci-app-wireguard package (which installed 3 other packages) on my second router. I'm having trouble configuring OpenWRT as a Wireguard VPN client. I'm learning networking, but still not good with concepts to resolve this on my own. Can you please help?
Here is my setup:
Main non-OpenWRT router (Router1):
- Connected to ISP internet
- LAN IP address: 192.168.0.1
- Subnet mask: 255.255.255.0
- DHCP enabled: 192.168.0.100-199
Second OpenWRT router (Router2):
- Connected to Router1 with Ethernet cable (LAN-to-LAN)
- Default settings, except:
- LAN IP address: 192.168.0.2
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.0.1
- LAN interface DNS servers: 1.1.1.1, 1.0.0.1
- Created "wg0" interface:
- General, Adnvaced, Peer Settings as usual (used my cloud Wireguard VPN server as peer)
- Firewall Settings: Firewall-zone = wan
My PC:
- Connected to Router2 using Ethernet cable
- LAN IP address (static): 192.168.0.50
- Subnet mask: 255.255.255.0
- Default gateway: 192.168.0.1
- DNS server: 1.1.1.1
Now, I see that there is little traffic coming in and going out in wg0 interface in OpenWRT router and in my Wireguard VPN cloud server, so I believe there is connection between them. But,
- how do I use it in my PC? How do I connect through wg0 interface?
- how can I implement a kill-switch in OpenWRT setup?
Thanks for looking into it.