192.168.1.0/24--1.1.1.1[1.1.1.1]...2.2.2.2[2.2.2.2]--172.18.1.0/24
1.1.1.1===172.18.1.0/24
192.168.44.0/24 --- 1.1.1.1 ... 2.2.2.2 --- 192.168.200.0/24
172.18.5.1/32 === 192.168.200.0/24
Source Destination Dir Tunnel 192.168.200.0/24 172.18.5.1 in 1.1.1.1 -> 2.2.2.2 172.18.5.1 192.168.200.0/24 out 1.1.1.1 -> 2.2.2.2
Source Destination Interface Next Hop Note 192.168.44.1 192.168.200.1 client 192.168.44.254 Packet leaves PC 192.168.44.1 192.168.200.1 gw LAN 1.1.1.1 Packet hits OPNsense, doesn't match SPD, goes to default route 1.1.1.1 192.168.200.1 gw WAN the internet Packet hits WAN interface, SNATs to public IP, goes out internet
Source Destination Interface Next Hop Note 192.168.44.1 192.168.200.1 client 192.168.44.254 Packet leaves PC 192.168.44.1 192.168.200.1 gw LAN gw ipsec Packet hits OPNsense, routed to tunnel based on destination 172.18.5.1 192.168.200.1 gw ipsec far tunnel Packet SNATs to tunnel address, goes out tunnel