Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
LAN traffic through Openvpn
« previous
next »
Print
Pages: [
1
]
Author
Topic: LAN traffic through Openvpn (Read 1296 times)
Clauu
Newbie
Posts: 3
Karma: 0
LAN traffic through Openvpn
«
on:
October 01, 2023, 05:09:28 pm »
Good day people, i've started to play with Opnsense and Openvpn and i've encountered some issues which i'm unable to sort out. My setup looks like this:
Main router with 192.168.140.0/24 subnet on it, Opnsense VM having 192.168.140.106 with a separate wan interface.
I've managed to setup Openvpn, i can connect through internet. But while connected i can only access the Openvpn LAN IP which is 192.168.140.106, anything else from 192.168.140.0/24 isn't accesible, not even the gateway.
In Opnsese i have following rules:
1. LAN - in and out allow any
2. Openvpn - in and out allow any
3. WAN - allow only 1194 udp
Openvpn has the following configuration :
- IPv4 Local Network as 192.168.140.0/24
- IPv4 Tunnel Network as 10.10.99.0/24
«
Last Edit: October 01, 2023, 06:29:16 pm by Clauu
»
Logged
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: LAN traffic through Openvpn
«
Reply #1 on:
October 02, 2023, 11:26:50 am »
Do any of your LAN hosts have a route to the OpenVPN tunnel? Unless OPNsense is your default gateway, they'll send their replies out through your ISP router.
You can either set a route on your hosts (e.g. by DHCP), make OPNsense your main router, or NAT the OpenVPN traffic.
None of these are ideal solutions, I'm afraid. They'll either take work and/or add unecessary complexity.
Bart...
Logged
Clauu
Newbie
Posts: 3
Karma: 0
Re: LAN traffic through Openvpn
«
Reply #2 on:
October 05, 2023, 12:45:47 pm »
Thank you for your reply! Well maybe i'm missing some routes, i will try to debug again.
Logged
Clauu
Newbie
Posts: 3
Karma: 0
Re: LAN traffic through Openvpn
«
Reply #3 on:
October 12, 2023, 10:19:21 am »
Yep, indeed, i was missing some routes.. silly me.
Thank you for your input!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
LAN traffic through Openvpn