OpenVPN firewall - blocking traffic
I have an openvpn setup that I want to limit to only specific protocols and I can't seem to be able to block with the firewall.
My Side is the openvpn server (peer to peer).
I have an interface assigned to it.
I even tried a block all on the openvpn adapter as well as the OPT1 adapter (even the wan and lan), and there was no change in the firewall. I've tried blocking by network, adapter address and no change. The only way to block is to block on the client side. No matter what, all traffic comes through and I can't block.
Is this correct that you can only block on the client side? it seems very strange to me.
I've found 2 similar questions in the forums, but both had no answer. Any information would be appreciated.
Firewall rules are generally used to block connections coming into the firewall on an interface.
If you want to stop hosts on LAN from making certain connections, then you place those block rules on LAN.
If you want to block connections coming in from remote OpenVPN sites, you put those rules on OpenVPN.
If you want to block connections going to a remote OpenVPN site, then either block them on the incoming interface (like LAN) or block them at the remote side inbound on OpenVPN. They are the ones "locking their door" against incoming connections.
It's possible to block in the outbound direction using floating rules.
If you think about the security aspects of what the firewall is supposed to be doing, this is really the only model that makes any sense.