Page 1 of 1

Is it possible to add a firewall rule to client.ovpn?

Posted: Thu Dec 17, 2020 8:56 am
by Adephx
I'm using the Mikrotik OpenVPN server and everything seems to be working fine.

My main network is set to 192.168.88.0/24 and my VPN uses the 192.168.89.0./24 subnet.

However, I have to manually add firewall exceptions in Windows 10 firewall, to allow access from "unknown" subnets, otherwise I can not ping or access devices between the two subnets.

For example, on the Windows 10 machine inside my main network, I had to add the following firewall rule:

Code: Select all

OpenVPN		All	Yes	Allow	No	Any	Any	192.168.89.0/24	Any	Any	Any	Any	Any	Any	Any	Any	
Is there a way to enforce this rule automatically in the client.ovpn file, or do I have to add it manually on the each machine?

Also, is there a way to set the VPN Adapter to private (I'm using the TAP version) inside the client.ovpn file?