Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Windows OpenVPN Client Blocked By Firewall

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 3 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      panzerscope
      last edited by

      Hey guys,

      I have tried to do some topic searching to resolve my issue, but unfortunately was not able to resolve this myself.

      My situation. I have a Windows OpenVPN client which I am using to connect out to my works network. When trying to connect, this fails with the logs as below.

      02edc0c8-a835-4c88-952e-8a7e54ecffde-image.png

      I have checked my firewall logs and I can see that it is blocking the OpenVPN connection over IPV6. I can see that the "Default Deny IPV6" rule has been triggered and blocked the traffic. I can also see that the OpenVPN client from its logs has also tried IPV4 with the same results.

      An example of the IPV6 Block below.

      266afbcb-17cc-4773-97a8-d71ee86289e6-image.png

      So clearly, I need to allow the traffic in my LAN rules. However as per default rules for PfSense I can see there is already a rule for allowing any IPV4/6 traffic on my Lan Subnet out to the internet as below.

      25ef89c6-8cbb-4e54-b293-9200198034c7-image.png

      How would I go about resolving this issue? I'm sure this has been covered a billion times.

      Many thanks,
      P

      GertjanG 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @panzerscope
        last edited by Gertjan

        @panzerscope said in Windows OpenVPN Client Blocked By Firewall:

        An example of the IPV6 Block below.

        Your "An example of the IPV6 Block below." shows a couple of 'local' IPv6 devices using source port '546' and destination port '547'.

        You told us here that your phone device, using a openvpn client, want to connect to your WAN IPv6 using port 1194, UDP ...

        1194 is not 546 neither 547, so the firewall log lines you've listed are not related.

        Show us your WAN firewall rules, the place where an OpenVPN firewall rule should be listed, with destination port 1194, protocol UDP.
        Both for IPv6, and IPv4.

        @panzerscope said in Windows OpenVPN Client Blocked By Firewall:

        So clearly, I need to allow the traffic in my LAN rules.

        Your LAN rules, the rules that determine what traffic enters your LAN and what not, is not related here.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        P 1 Reply Last reply Reply Quote 1
        • P
          panzerscope @Gertjan
          last edited by

          @Gertjan said in Windows OpenVPN Client Blocked By Firewall:

          @panzerscope said in Windows OpenVPN Client Blocked By Firewall:

          An example of the IPV6 Block below.

          Your "An example of the IPV6 Block below." shows a couple of 'local' IPv6 devices using source port '546' and destination port '547'.

          You told us here that your phone device, using a openvpn client, want to connect to your WAN IPv6 using port 1194, UDP ...

          1194 is not 546 neither 547, so the firewall log lines you've listed are not related.

          Show us your WAN firewall rules, the place where an OpenVPN firewall rule should be listed, with destination port 1194, protocol UDP.
          Both for IPv6, and IPv4.

          @panzerscope said in Windows OpenVPN Client Blocked By Firewall:

          So clearly, I need to allow the traffic in my LAN rules.

          Your LAN rules, the rules that determine what traffic enters your LAN and what not, is not related here.

          Thanks for your reply. Yes, I completely screwed that one up.

          I have a WAN rule as per the below.

          064d3e96-ae59-4278-bca5-41ab7e70442f-image.png

          With this rule enabled, I am unable to get a connection.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @panzerscope
            last edited by johnpoz

            @panzerscope you have a windows box behind pfsense, and you want to connect to this 143.244.x.x which is your WORK vpn server, outside pfsense on the public internet?

            That would have zero to do with your wan rules, the wan rules would be if you were running the openvpn server and some client outside on the public internet was wanting to connect to openvpn you were running on pfsense. Or through pfsense to some openvpn server running on your network.

            Running a openvpn client on some device behind pfsense trying to connect to some openvpn server out on the internet would have nothing to do with your pfsense wan rules.

            I would look more to this error "socket protect error"

            As mentioned what your showing blocked has nothing to do with the connection to udp port 1194.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            P 1 Reply Last reply Reply Quote 1
            • P
              panzerscope @johnpoz
              last edited by

              @johnpoz said in Windows OpenVPN Client Blocked By Firewall:

              @panzerscope you have a windows box behind pfsense, and you want to connect to this 143.244.x.x which is your WORK vpn server, outside pfsense on the public internet?

              That would have zero to do with your wan rules, the wan rules would be if you were running the openvpn server and some client outside on the public internet was wanting to connect to openvpn you were running on pfsense. Or through pfsense to some openvpn server running on your network.

              Running a openvpn client on some device behind pfsense trying to connect to some openvpn server out on the internet would have nothing to do with your pfsense wan rules.

              I would look more to this error "socket protect error"

              As mentioned what your showing blocked has nothing to do with the connection to udp port 1194.

              Thanks, I will look into that specific error. Typically it seems the OpenVPN forums are down where most of the Google links point to. Fingers crossed it comes back up soon.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @panzerscope
                last edited by Gertjan

                @panzerscope said in Windows OpenVPN Client Blocked By Firewall:

                My situation. I have a Windows OpenVPN client which I am using to connect out to my works network.

                Don't worry. I messed up also.
                Your connect is going from a Windows device, from your pfSense LAN, to some server on the outside, somewhere on WAN.

                You can remove your WAN firewall rule.
                The LAN firewall rules are ok.
                Nothing else is needed to make this work.
                This :

                354673c0-275e-4a1c-9fe8-4d49d2d7ee0c-image.png

                you saw the 0/0 ? This means that none of your LAN devices uses IPv6. So you can tell your Windows OpenVPN client to stop using IPv6 - as it has not an IPv6 to work with.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 1
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @panzerscope
                  last edited by

                  @panzerscope looks like they are back up... Quick little look and seems like a client reinstall fixes it for most, or validate service is running.

                  But yeah that error points to a client side problem.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  P 1 Reply Last reply Reply Quote 1
                  • P
                    panzerscope @johnpoz
                    last edited by

                    @johnpoz said in Windows OpenVPN Client Blocked By Firewall:

                    @panzerscope looks like they are back up... Quick little look and seems like a client reinstall fixes it for most, or validate service is running.

                    But yeah that error points to a client side problem.

                    Thanks. I found that lesson out a little quicker, by chance I recall seeing there was a client update available, so I went ahead and installed the update and the issue went away. I have to remember that in future, if there is a rule to allow anything OUT on LAN that it is unlikely to be a firewall related issue an something local to the device/client!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.