OpenVPN (client/server) routing confusion

  • I have an OpenVPN interface on In the VPN tunnel settings I have the local network set to the entire network to allow access to all subnets on my network. On my management subnet, I have a switch at To play around, I set a rule on that management interface to block traffic from source I assumed I would then not be able to access this switch at all via the VPN...but see that I'm able to. I can access via SSH and HTTP. Where am I wrong in my thinking? Why am I able to access this device? Is it due to a state being created and therefore bypassing all rules?

  • Firewall rules must be added to the interface where the initiate access is coming in.

    So if you want to block access to the switch from the other site of the OpenVPN go to the interface tab you have assigned to the vpn instance (or to the OpenVPN tab) and add a block rule to the top of the rule set with source = any and destination =

  • @viragomann I figured that would work. But i'm still curious why I would be able to interact with the switch at all with the current configuration. All ingress traffic from that switch has a source address of which is blocked. Just trying to understand is all. Thanks!

  • The switch will not initiate any connection at all.
    pfSense decide to block a connection on basis of its initiate SYN packet. If the rules allow the SYN to pass, pfSense stores the connection state and let all subsequent packets of that connection pass as well (stateful filtering).
    So response packets of an already established connection are allowed to pass in any case.

Log in to reply