picklefish
Explorer
- Joined
- Mar 13, 2016
- Messages
- 62
I followed this guide: https://www.ixsystems.com/blog/wireguard-on-freenas-11-3/
Turned on IP Forwarding: https://docs.freebsd.org/doc/4.4-RELEASE/usr/share/doc/en_US.ISO8859-1/books/ppp-primer/x237.html
When I try to setup the route by adding my LAN ip range to the wg0.conf the wireguard start fails because I already have that ip range on the igb0 interface
My server config looks like this:
I want 192.168.0.0/16 to be 192.168.1.0/24 (which fails due to the route on igb0 I believe)
I am pretty sure I just don't understand routing well enough. Could anyone point me in the right direction.
Thank you
Turned on IP Forwarding: https://docs.freebsd.org/doc/4.4-RELEASE/usr/share/doc/en_US.ISO8859-1/books/ppp-primer/x237.html
When I try to setup the route by adding my LAN ip range to the wg0.conf the wireguard start fails because I already have that ip range on the igb0 interface
Code:
netstat -rn Routing tables Internet: Destination Gateway Flags Netif Expire default 192.168.1.1 UGS igb0 10.200.200.1 link#6 UH wg0 10.200.200.2/32 wg0 US wg0 127.0.0.1 link#3 UH lo0 192.168.0.0/16 wg0 US wg0 192.168.1.0/24 link#1 U igb0 # THIS LINE 192.168.1.234 link#1 UHS lo0
My server config looks like this:
Code:
[Interface] PrivateKey = xxxx Address = 10.200.200.1/24 ListenPort = 34567 [Peer] PublicKey = xxxx AllowedIPs = 10.200.200.2/32, 192.168.0.0/16 # THIS GUY
I want 192.168.0.0/16 to be 192.168.1.0/24 (which fails due to the route on igb0 I believe)
I am pretty sure I just don't understand routing well enough. Could anyone point me in the right direction.
Thank you