192.168.1.0/24192.168.2.0/24192.168.3.0/24192.168.4.0/24
Peer1: 10.10.42.1/32 Peer2: 10.10.42.2/32
interface: wg1 public key: [REMOVED] private key: (hidden) listening port: 51820peer: [REMOVED] endpoint: X.X.X.X:58853 allowed ips: 10.10.42.1/32 transfer: 21.68 KiB received, 15.50 KiB sent persistent keepalive: every 30 secondspeer: [REMOVED] endpoint: 46.4.23.90:39594 allowed ips: 10.10.42.2/32 transfer: 21.68 KiB received, 15.21 KiB sent persistent keepalive: every 30 seconds
[Interface]PrivateKey = [REMOVED]Address = 10.10.42.1/32[Peer]PublicKey = [REMOVED]AllowedIPs = 192.168.1.0/24, 192.168.3.0/24Endpoint = [REMOVED]:51820PersistentKeepalive = 30
[Interface]PrivateKey = [REMOVED]Address = 10.10.42.2/32[Peer]PublicKey = [REMOVED]AllowedIPs = 192.168.1.0/24, 192.168.3.0/24Endpoint = [REMOVED]:51820PersistentKeepalive = 30
Kernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Ifacedefault static.193.63.6 0.0.0.0 UG 0 0 0 enp35s0192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
In the Status tab I can see:Code: [Select]interface: wg1 public key: [REMOVED] private key: (hidden) listening port: 51820peer: [REMOVED] endpoint: X.X.X.X:58853 allowed ips: 10.10.42.1/32 transfer: 21.68 KiB received, 15.50 KiB sent persistent keepalive: every 30 secondspeer: [REMOVED] endpoint: 46.4.23.90:39594 allowed ips: 10.10.42.2/32 transfer: 21.68 KiB received, 15.21 KiB sent persistent keepalive: every 30 seconds
Peer1:Code: [Select][Interface]PrivateKey = [REMOVED]Address = 10.10.42.1/32[Peer]PublicKey = [REMOVED]AllowedIPs = 192.168.1.0/24, 192.168.3.0/24Endpoint = [REMOVED]:51820PersistentKeepalive = 30Peer2:Code: [Select][Interface]PrivateKey = [REMOVED]Address = 10.10.42.2/32[Peer]PublicKey = [REMOVED]AllowedIPs = 192.168.1.0/24, 192.168.3.0/24Endpoint = [REMOVED]:51820PersistentKeepalive = 30
In opnsense, on the peers tab, add the LAN subnets to allowed.
Change the interface address on both peers to the actual subnet. ie /24.A /32 will not let you browse anything.
Quote from: Demusman on February 04, 2023, 05:16:31 pmChange the interface address on both peers to the actual subnet. ie /24.A /32 will not let you browse anything.This is also wrong. A /24 is only strictly needed on the peers if they are also routing traffic to other peers on the VPN network, ie acting as a hub like OPNsense is meant to in this case. They are not. Though changing it to /24 won’t break anything in this case.
Quote from: Demusman on February 04, 2023, 06:12:18 pmIn opnsense, on the peers tab, add the LAN subnets to allowed.This is completely wrong. It will break routing within the LAN network, as OPNsense will route all packets destined for the LAN networks down the tunnel instead. I suggest you research what “Allowed IPs” means in WireGuard.
Not wrong. You have to tell it what networks are allowed to traverse the tunnel.Works very well on multiple tunnels here.