Hi!
I'm trying to get wireguard to connect from one internal IP on my freebsd-server but the traffic doesn't seem to go through the tunnel.
service wireguard start
wg (connection with VPN-server is working)
My /etc/rc.conf
netstat -rn
I'm I missing something here? Routing maybe?
Thanks in advance.
I'm trying to get wireguard to connect from one internal IP on my freebsd-server but the traffic doesn't seem to go through the tunnel.
Code:
cat wg0.conf
[Interface]
PrivateKey = Hidden
Address = 10.72.42.46/32
DNS = 1.1.1.1, 8.8.8.8
[Peer]
PublicKey = Hidden
AllowedIPs = 192.168.10.138/32
Endpoint = Hidden:51820
PersistentKeepalive = 15
service wireguard start
Code:
[#] ifconfig wg create name wg0
[#] wg setconf wg0 /dev/stdin
[#] ifconfig wg0 inet 10.72.42.46/32 alias
[#] ifconfig wg0 mtu 1420
[#] ifconfig wg0 up
[#] resolvconf -a wg0 -x
[+] Backgrounding route monitor
wg (connection with VPN-server is working)
Code:
interface: wg0
public key: OmmHunzHvRVdt49NmEIgAQWx13YuaGjvvJ8rRa10zzc=
private key: (hidden)
listening port: 57676
My /etc/rc.conf
Code:
gateway_enable="YES"
wireguard_interfaces="wg0"
wireguard_enable="YES"
netstat -rn
Code:
netstat -rn
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.10.1 UGS igb0
10.72.42.46 link#3 UH lo0
127.0.0.1 link#3 UH lo0
192.168.10.0/24 link#1 U igb0
192.168.10.134 link#3 UHS lo0
192.168.10.138 link#3 UHS lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 link#3 URS lo0
::1 link#3 UHS lo0
::ffff:0.0.0.0/96 link#3 URS lo0
fe80::%lo0/10 link#3 URS lo0
fe80::%lo0/64 link#3 U lo0
fe80::1%lo0 link#3 UHS lo0
ff02::/16 link#3 URS lo0
I'm I missing something here? Routing maybe?
Thanks in advance.