Hi,
I imported an OpenVPN client connection on my OPNSense (21.1.6) and got it already up and running. I can ping hosts on remote site and successful ssh to a host on remote site from OPNsense terminal. But I cannot reach any remote host from other hosts in my LAN. Even if i do a ping from OPNsense to remote host with source address set to LAN address of my OPNSense I get no answer.
This is what it looks like:
.-------------. .----------------. .--------------.
| OVPN IP | | OVPN NET | .--------. | Dest Host |
|--------------------------------------- TUNNEL ---------------------|
| 10.112.63.9 | | 10.112.63.0/24 | '--------' | 10.112.62.54 |
'-------------' '----------------' '--------------'
.------------------. X
| OPNsense IP/Mask | /
|--------------------'
| 172.22.0.150/24 |
'------------------'
There is a routing entry set up on OPNsense for 10.112.62.54 and when enabling the client there is a new interface called ovpnc2 which is used for routing. Hosts in my LAN have routing entries for 10.112.62.54 pointing to 172.22.0.150. Pakets reach OPNsense but are not transmitted to tunnel.
My firewall has an entry for allowing all traffic from LAN to OVPN connection, set up in OpenVPN.
When inspecting traffic with tcpdump I see that connections coming from OPNsense itself are using 10.112.63.9 as source address. Changing this to LAN address breaks communication. So I guess I need to do NAT but I don't know where and how. I think that this should be enabled by default. Or at least by some setting in client configuration.
How is such scenario supposed to be setup?
I imported an OpenVPN client connection on my OPNSense (21.1.6) and got it already up and running. I can ping hosts on remote site and successful ssh to a host on remote site from OPNsense terminal. But I cannot reach any remote host from other hosts in my LAN. Even if i do a ping from OPNsense to remote host with source address set to LAN address of my OPNSense I get no answer.
This is what it looks like:
.-------------. .----------------. .--------------.
| OVPN IP | | OVPN NET | .--------. | Dest Host |
|--------------------------------------- TUNNEL ---------------------|
| 10.112.63.9 | | 10.112.63.0/24 | '--------' | 10.112.62.54 |
'-------------' '----------------' '--------------'
.------------------. X
| OPNsense IP/Mask | /
|--------------------'
| 172.22.0.150/24 |
'------------------'
There is a routing entry set up on OPNsense for 10.112.62.54 and when enabling the client there is a new interface called ovpnc2 which is used for routing. Hosts in my LAN have routing entries for 10.112.62.54 pointing to 172.22.0.150. Pakets reach OPNsense but are not transmitted to tunnel.
My firewall has an entry for allowing all traffic from LAN to OVPN connection, set up in OpenVPN.
When inspecting traffic with tcpdump I see that connections coming from OPNsense itself are using 10.112.63.9 as source address. Changing this to LAN address breaks communication. So I guess I need to do NAT but I don't know where and how. I think that this should be enabled by default. Or at least by some setting in client configuration.
How is such scenario supposed to be setup?
"