Sure, share the current configs.
Is wireguard still connecting?
With it connected, can you share the output of -
ifconfig
wg show
netstat -rn
ipfw list
ifconfig:
Code:
root@truenas[~]# ifconfig
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=812098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER>
ether 88:51:fb:5b:42:ff
inet 192.168.1.21 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
groups: pflog
wg0: flags=80c1<UP,RUNNING,NOARP,MULTICAST> metric 0 mtu 1420
options=80000<LINKSTATE>
inet 10.253.0.1 netmask 0xffffff00
groups: wg
nd6 options=109<PERFORMNUD,IFDISABLED,NO_DAD>
vnet0.1: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: associated with jail: Nextcloud as nic: epair0b
options=8<VLAN_MTU>
ether 8a:51:fb:27:9a:bf
hwaddr 02:e1:b5:e7:3a:0a
inet 172.16.0.1 netmask 0xfffffffc broadcast 172.16.0.3
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
nd6 options=9<PERFORMNUD,IFDISABLED>
wg show:
Code:
root@truenas[~]# wg show
interface: wg0
public key: jxtIcNHXXXXXXXXXXXXXXXXXXXXXXXX
private key: (hidden)
listening port: 51820
peer: oG21StE+Mfi2NaznXXXXXXXXXXXXXXXXXXXX
endpoint: 129.xxx.xxx.108:51820
allowed ips: 10.253.0.0/24
transfer: 0 B received, 8.32 MiB sent
persistent keepalive: every 25 seconds
netstat -rn:
Code:
root@truenas[~]# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.1.1 UGS em0
10.253.0.0/24 link#4 U wg0
10.253.0.1 link#4 UHS lo0
127.0.0.1 link#2 UH lo0
172.16.0.0/30 link#5 U vnet0.1
172.16.0.1 link#5 UHS lo0
192.168.1.0/24 link#1 U em0
192.168.1.21 link#1 UHS lo0
Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#2 UHS lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#2 U lo0
fe80::1%lo0 link#2 UHS lo0
ff02::/16 ::1 UGRS lo0
ipfw list:
Code:
root@truenas[~]# ipfw list
00100 nat 462 ip4 from 172.16.0.0/24 to any out via em0
00101 nat 462 ip4 from any to any in via em0
65535 allow ip from any to any
here is my remote config for my vps:
wg show:
Code:
[Interface]
PrivateKey = QGgZPcxG+/leJJJXXXXXXXXXXXXXXXXXX
Address = 10.253.0.2/24
ListenPort = 51820
SaveConfig = true
PostUp = iptables -t nat -I POSTROUTING -o enp0s3 -j MASQUERADE
PreDown = iptables -t nat -D POSTROUTING -o enp0s3 -j MASQUERADE
[Peer]
PublicKey = jxtIcNH+MqntnDbeXXXXXXXXXXXXXXXXX
AllowedIPs = 10.253.0.0/24
Endpoint = movies4you-nas.ddns.net:51820
PersistentKeepalive = 25
ifconfig:
Code:
ubuntu@ubuntu-22-04:~$ ifconfig
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 10.0.0.100 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::17ff:fe12:935 prefixlen 64 scopeid 0x20<link>
ether 02:00:17:12:09:35 txqueuelen 1000 (Ethernet)
RX packets 4956718 bytes 4222553426 (4.2 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4819363 bytes 4380906309 (4.3 GB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Local Loopback)
RX packets 139544 bytes 45021763 (45.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 139544 bytes 45021763 (45.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 8920
inet 10.254.0.2 netmask 255.255.255.0 destination 10.254.0.2
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 2590027 bytes 3694655380 (3.6 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1938602 bytes 216787756 (216.7 MB)
TX errors 0 dropped 886610 overruns 0 carrier 0 collisions 0
wg1: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 8920
inet 10.253.0.2 netmask 255.255.255.0 destination 10.253.0.2
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 57680 bytes 8536640 (8.5 MB)
TX errors 0 dropped 2884 overruns 0 carrier 0 collisions 0
netstat -rn:
Code:
ubuntu@ubuntu-22-04:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 enp0s3
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 enp0s3
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 enp0s3
10.253.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg1
10.254.0.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enp0s3
169.254.169.254 10.0.0.1 255.255.255.255 UGH 0 0 0 enp0s3
just in case this help