Hello there. I’m pretty new to vyos and it suits my needs pretty much.
But right now I want to try to make in my wireguard gateway for my home network.
What I have rn: freshly installed vyos with 2 interfaces (wan and lan). WAN got it address from dhcp and LAN got dhcp server running on it. Everything works.
So, what I want to do is: route all traffic that coming from my home subnet (i.e. 10.1.0.0/24) through wg0 interface (10.100.0.0/24).
What I’ve tried:
set protocols static interface-route 0.0.0.0/0 next-hop-interface wg0 (not working, could not even ping anything)
set protocols static route 0.0.0.0/0 next-hop 10.100.0.1 (10.100.0.1 is my wg server ip, not working as well)
Any suggestions here?
Some additional info:
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
eth0 10.1.0.213/24 u/u
eth1 10.100.254.254/24 u/u
lo 127.0.0.1/8 u/u
wg0 10.100.253.2/24 u/u
Destination Gateway Genmask Flags MSS Window irtt Iface
default _gateway 0.0.0.0 UG 0 0 0 eth0
10.1.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.100.253.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
10.100.254.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1