@viragomann:
Of course, the packets should be routed to the vpn server.
However, the traceroute shows the packets are directed to 192.168.8.254 from the source device, while according to the routing table above 192.168.8.250 is the pfSense LAN IP.
???
What's the real LAN IP now?
sorry for the confusion, I did change the pfsense LAN IP to *.254 from *.250 since I finally managed to get it working (albeit a bit complicated) so I can finally shut down my openwrt router. I have several VLAN set up in the pfsense (management interface, trusted, guest, iot) and all pfsense LAN :
my topology is something like this:
WAN pfsense home (192.168.0.2) ==> connected to the ISP router
few vlans in the 192.168.x.0/24 subnet (management, trusted, guest, iot)
all client on the VLAN interface can browse the internet fine and all interface currently have any to any except for the IOT
WAN pfsense office (pubic IP)
and also has few VLANs, in the 10.0.x.0/24 subnet
subnet for openvpn interface is in 10.0.102.0/24
I managed to get it work after I followed https://forum.pfsense.org/index.php?topic=29944.0 and modified according to my needs so only routes to VPN tunnel based on the destination IP/network and working good so far :) Not sure this is the correct way to do it but it's working. More configuration needed (usually only configure the client config file in the openvpn server), now I need to also configure few firewall rules for in the openvpn client end (in addition to configure the outbound NAT)
The odd thing is, if I traceroute from office lan side to internal network it does pass thru openvpn lan interface and I dont need to configure anything on the firewall openvpn server side.
C:\Users\thasan>tracert 192.168.5.201
Tracing route to 192.168.5.201 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 10.0.7.254
2 6 ms 6 ms 11 ms 10.0.102.3
3 12 ms 16 ms 10 ms 192.168.5.201
whereas if i traceroute from the other side it ommits the pfsense LAN IP and goes directly to the openvpn interface
traceroute 10.0.7.10
traceroute to 10.0.7.10 (10.0.7.10), 30 hops max, 38 byte packets
1 10.0.102.1 (10.0.102.1) 7.177 ms 5.878 ms 6.333 ms
2 10.0.7.10 (10.0.7.10) 6.048 ms * 6.322 ms
I am happy now :), but just wondering is this the correct way to do it