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

    Can't connect windows computer to openvpn

    Scheduled Pinned Locked Moved OpenVPN
    20 Posts 5 Posters 1.4k 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.
    • T
      Tiger 0
      last edited by

      I'm setting up an openVPN on my pc to connect in our office server. After configuring the openvpn server from pfsense and installing the openvpn client export on my pc, it is not getting connected to the tunnel network.

      I tried what Lawrence did from this video and still can't connect. what could be the problem?

      Thank you!

      T 1 Reply Last reply Reply Quote 0
      • T
        Tiger 0 @Tiger 0
        last edited by

        56ada06f-caef-4989-8272-647f0cdf3484-image.png

        Here's what it shows when I try connecting my pc.

        noplanN 1 Reply Last reply Reply Quote 0
        • noplanN
          noplan @Tiger 0
          last edited by

          @tiger-0

          Not concerning your private ip on the log

          Have you opened your 1194 port on wan
          Client export and openVPN setup are allign
          In terms of exporting the settings with or without 2.5 for openVpn

          Next sterp is to show your vpn server settings
          Just with the hint on a vid it's not gonna work
          BrNP

          T 1 Reply Last reply Reply Quote 0
          • T
            Tiger 0 @noplan
            last edited by

            @noplan Yes, the 1194 port is already open from the firewall rules.

            81b17fe5-1407-44ab-9631-2b1b266624f5-image.png

            noplanN V 2 Replies Last reply Reply Quote 0
            • noplanN
              noplan @Tiger 0
              last edited by

              @tiger-0

              and the rest ?

              btw what are the logs of your openVPN Server sayin ?

              for me it looks like you go no route to your vpn server

              T 1 Reply Last reply Reply Quote 0
              • Bob.DigB
                Bob.Dig LAYER 8
                last edited by

                Why is the remote address a local one?

                noplanN 1 Reply Last reply Reply Quote 0
                • noplanN
                  noplan @Bob.Dig
                  last edited by

                  @bob-dig

                  not sure if that's the only thing to consider why it's not working ๐Ÿค• ๐Ÿค• ๐Ÿค•

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tiger 0 @noplan
                    last edited by

                    4ccbf1d8-3d25-40d3-a060-d0a6080f440a-image.png
                    c9d308bb-b318-4c96-804d-65b9154464bf-image.png
                    cf8023c1-f170-4bc9-8dea-625751b88257-image.png
                    62e4183b-8333-42b3-86ed-5237dfe71f6b-image.png
                    a923cbbb-d6a9-40c7-a64a-4761fbb4cca4-image.png

                    my openvpn logs asks to check network connectivity. I think I need to configure something but I can't seem to find it. Can you suggest what should I check?

                    1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @Tiger 0
                      last edited by

                      @tiger-0 said in Can't connect windows computer to openvpn:

                      Yes, the 1194 port is already open from the firewall rules.

                      Again, your client tries to connect to a private IP. This let us assume that you OpenVPN servers WAN IP is behind a router.
                      So you have

                      • to forward UDP 1194 to pfSense on that router
                      • in the client export utility enter your public IP or host name at "Host Name Resolution" and export a new config for the client
                      T 1 Reply Last reply Reply Quote 0
                      • T
                        Tiger 0 @viragomann
                        last edited by

                        @viragomann

                        We can't configure the firewall from our router that was given by our ISP.
                        tried adding the public IP on the client export and still can't connect

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

                          @tiger-0 said in Can't connect windows computer to openvpn:

                          We can't configure the firewall from our router that was given by our ISP.

                          If you have an upstream (ISP) router in front of pfSense, you have to "NAT"that router.
                          That's not a choice, it's mandatory.

                          NATting a port in the ISP's router isn't something special. I never saw an ISP - using their routers - in France (where I live) that doesn't support NAT.

                          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 0
                          • V
                            viragomann @Tiger 0
                            last edited by

                            @tiger-0
                            At least there should be a possibility on the router to set an internal IP or device as "DMZ" or "exposed host", which typically means that the router forwards any traffic to the stated IP or device.

                            noplanN 1 Reply Last reply Reply Quote 0
                            • noplanN
                              noplan @viragomann
                              last edited by

                              @viragomann

                              in Austria there are some (gettin more and more) ISP business routers (modems) that dont allow port forwarding opening ports and so on ... they provide a private range and thats it
                              so no openVPN for a lot of business (small) customers from one of the largest ISP here ;)

                              yah there is a way round set the providerBox to bridge mode and use your pfS instead of that provider box

                              and yeah i like that approach @Gertjan

                              That's not a choice, it's mandatory.

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

                                @noplan said in Can't connect windows computer to openvpn:

                                in Austria there are some (gettin more and more) ISP business routers (modems) that dont allow port forwarding opening ports and so on ... they provide a private range and thats it
                                so no openVPN for a lot of business (small) customers from one of the largest ISP here ;)

                                If they don't have enough "IPv4" for their clients, then yes, that's possible.
                                IPv6 was created to solve that issue.

                                @noplan said in Can't connect windows computer to openvpn:

                                modems

                                Modems are often bridges.
                                With those devices their is nothing to 'NAT' as modems (bridges) don't work with "IP" addresses.
                                They (the ISP) could still offer you some RFC1918 ......

                                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 0
                                • V
                                  viragomann @noplan
                                  last edited by

                                  @noplan said in Can't connect windows computer to openvpn:

                                  in Austria there are some (gettin more and more) ISP business routers (modems) that dont allow port forwarding opening ports and so on

                                  Business routers? Not seen such ones up to now.

                                  no openVPN for a lot of business (small) customers from one of the largest ISP here ;)

                                  I know a business customer who got a CGN IP, but wanted to run services inside his network. A phone call to the "largest" provider was sufficient to get a public IPv4.
                                  However, this was 2 years ago and the IPv4 lack is going on, of course.

                                  noplanN 1 Reply Last reply Reply Quote 0
                                  • noplanN
                                    noplan @viragomann
                                    last edited by

                                    @viragomann

                                    largest ISP in Austria no chance in hell to get anything else than a 10.0.0.0/24
                                    and the ISP DNS as i mentioned earlier sold to small business

                                    some of the things have nothing to to with the lack of IPV4
                                    just with money the ISP wants from his clients :)

                                    V 1 Reply Last reply Reply Quote 0
                                    • V
                                      viragomann @noplan
                                      last edited by

                                      @noplan said in Can't connect windows computer to openvpn:

                                      largest ISP in Austria no chance in hell to get anything else than a 10.0.0.0/24

                                      Yes, I'm talking about this one.

                                      I know the 10.0.0.0/24 only from the ISP routers. But up to now, any was able to forward traffic and also could be set into bridge mode.

                                      However, if you don't intervene, you might get a CGN WAN IP, something like 100.x.x.x, which is not public and hence cannot be accessed from outside.

                                      noplanN 1 Reply Last reply Reply Quote 0
                                      • noplanN
                                        noplan @viragomann
                                        last edited by

                                        @viragomann

                                        got a talk with that ISP today motivated by your post ;)

                                        this business connect they sell only works
                                        a) you get a private 10.0.0.0/24 and no open ports whatever
                                        b) a box set in bridge mode and you have to deal with all the other nasty stuff

                                        not sure if there isn't a small fee each month for usin b)

                                        oh man i love ADSL in austria ;)

                                        V 1 Reply Last reply Reply Quote 0
                                        • V
                                          viragomann @noplan
                                          last edited by

                                          @noplan said in Can't connect windows computer to openvpn:

                                          b) a box set in bridge mode and you have to deal with all the other nasty stuff

                                          Therefor we use pfSense, which handles much better the nasty stuff then the any providers router. ๐Ÿ˜Š

                                          noplanN 1 Reply Last reply Reply Quote 0
                                          • noplanN
                                            noplan @viragomann
                                            last edited by

                                            @viragomann said in Can't connect windows computer to openvpn:

                                            Therefor we use pfSense, which handles much better the nasty stuff then the any providers router

                                            yeeessss
                                            Totally agree on that one !

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