I'm using PiVPN-OpenVPN in a Raspberry Pi (also being the DHCP server via PiHole) to provide a Site-to-Site VPN between my parents house and mine; I'm using my pfSense to connect to it and allow routing to their network in order to troubleshoot better the problems they might have, i had to add a static route as well as a NAT route in my pfSense.
PiVPN script tipically does not allow LAN access when connected to it, so I've added the "route 192.168.26.0 255.255.255.0" to my /etc/openvpn/server.conf.
But now my parents are having connectivity issues and from my house I can only access the Raspberry Pi itself.
When I ping a machine I get some strange messages like From 10.102.44.1 icmp_seq=69 Redirect Host(New nexthop: 10.102.44.2)
I found this in the routes and i found that if i delete the third route I can access the rest of the network and it seems everything starts to function. But if i reconnect, it doesnt work again until i remove the route.
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.26.1 0.0.0.0 UG 202 0 0 eth0
10.102.44.0 0.0.0.0 255.255.255.0 U 0 0 0 tun0
192.168.26.0 10.102.44.2 255.255.255.0 UG 0 0 0 tun0
192.168.26.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0
Thanks in advance