This is complicated...
I have two Lans 172.27.2.x and 172.27.3.x all on a pfSense Router with multiple Lan adapters. No Vlans.
Nothing special about 2.x
3.x has its own Gateway on 3.3 which is an OpenVPN client on a Raspberry Pi 3B+. But I have server exceptions using dnsmasq.d as well as routes so that I can access devices on 2.x from 3.x by bypassing the OpenVPN gateway.
dnsmasq.d config:
server=/local/172.27.2.1
server=/mydomain/172.27.2.1
Route for 3.x back to 2.x:
route 172.27.2.0 255.255.255.0 172.27.3.1
But I need to go the other way too: I need to be able to access devices on 3.x from 2.x, but I don't know how to do that.
At the moment, I just get "This site can't be reached" when I try to go that direction - probably because the response is being sent out the 3.3 gateway instead of back to 2.x
Here is what
ip route returns:
0.0.0.0/1 via 10.8.0.5 dev tun0
default via 172.27.3.1 dev eth0 metric 202
10.8.0.0/24 via 10.8.0.5 dev tun0
10.8.0.1 via 10.8.0.5 dev tun0
10.8.0.5 dev tun0 proto kernel scope link src 10.8.0.6
10.10.0.0/24 via 10.10.0.5 dev tun2
10.10.0.1 via 10.10.0.5 dev tun2
10.10.0.5 dev tun2 proto kernel scope link src 10.10.0.6
47.149.xxx.xxx via 172.27.3.1 dev eth0
127.0.0.1 via 172.27.3.1 dev eth0
128.0.0.0/1 via 10.8.0.5 dev tun0
136.32.xxx.xxx via 172.27.3.1 dev eth0
136.61.xxx.xxx via 172.27.3.1 dev eth0
139.178.68.38 via 172.27.3.1 dev eth0
139.178.82.59 via 172.27.3.1 dev eth0
172.27.2.0/24 via 172.27.3.1 dev eth0
172.27.3.0/24 dev eth0 proto kernel scope link src 172.27.3.3 metric 202
Can this be done? Pointers? Docs to read?
Thanks!
P.S. I'm running OpenVPN in proto tcp, if that matters...