Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Route all traffic via VPN tunnel
« previous
next »
Print
Pages: [
1
]
Author
Topic: Route all traffic via VPN tunnel (Read 1441 times)
danbet
Newbie
Posts: 48
Karma: 1
Route all traffic via VPN tunnel
«
on:
December 07, 2023, 02:23:52 pm »
With an OpenVPN connection you usually work with split DNS. Only the traffic that is intended to reach the servers behind the firewall goes through the VPN tunnel. Other traffic goes direct. I hope you understand what I mean.
There are specific scenarios where you want all internet traffic to go through the VPN tunnel. This is useful, for example, if you only have an unsecured WiFi connection in a hotel and want to encrypt all traffic.
This worked without any problems with OPNsense and version 19.7, there was a client only setting that I had to make. On Linux in the network manager I had to disable the option "use this connection only for this network". So all traffic went via OPNsense. On Android, I can activate "use default route" in the app OpenVPN for Andorid for a profile under routing so that all traffic runs via the tunnel.
This worked for a while, but when I recently tried to use this function again with OPNsense 22.7, it no longer worked. As soon as the tunnel is set up and I have activated the above setting, all traffic that is not for the connected network comes to nothing. It takes a long time and then there is a timeout. Unfortunately, it's not clear to me why this no longer works. Even with the help of the live log view, I can't figure it out.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Route all traffic via VPN tunnel