Hi.
Due to converting to pfSense, I recently started using openvpn as a vpn server.
But, during tests I learnt that OpenVPN is subject to WebRTC leaks on Windows. So, I have been trying to find a fix for it but unfortunately I couldn't find one.
I tried
redirect-gateway def1 but that didn't help either.
So, I figured out one way to overcome this.
10.8.4.1 being my vpn server's ip, when I ran the command below on a client machine my real ip no more showed in webrtc leak test pages such as:
https://diafygi.github.io/webrtc-ips/
route change 0.0.0.0 mask 0.0.0.0 10.8.4.1 metric 2
Right now, temporarily I am using this code in XXX_up.bat file along with other routes to exclude 192.168.0.0 subnet from using openvpn.
I tried somehow integrating this code to the server and/or client ovpn file but unfortunately to my dismay I couldn't do so.
The only way is using the XXX_up.bat file on the client side and using the code there but that's not preferable to me either as it's only for OpenVPN Gui.
What I need is either to push this "route change" command from the server side or either use it in the client ovpn file.
OR
if there's a better way to fix it, to learn it.
I'ld appreciate any input.