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

    OpenVPN does not work on bridged PFsense router

    Scheduled Pinned Locked Moved OpenVPN
    71 Posts 3 Posters 10.6k 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.
    • G
      george1116 @JonathanLee
      last edited by

      @JonathanLee

      No not at all, I just wanted to paint a picture of my setup.

      I am attempting to connect while on my home router wifi, the LAN port from that modem-router is bridged and I have pfsense connected to the LAN port.

      1 Reply Last reply Reply Quote 1
      • JonathanLeeJ
        JonathanLee @george1116
        last edited by JonathanLee

        @george1116 it's an IPV6 issue see it in the logs....Do you have that enabled in pfsense?

        Change it to upd6 see if that works it was set to udp4 but upd should have set it to auto

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • G
          george1116 @viragomann
          last edited by george1116

          @viragomann We changed the remote mode to udp so it makes sense that it's trying to connect with ipv6 and ipv4.

          V JonathanLeeJ 2 Replies Last reply Reply Quote 0
          • V
            viragomann @george1116
            last edited by

            @george1116
            The protocol has nothing to do with the IP version.
            Is the server even configured for IPv6?

            Just try to connect to the IPv4 to see if it makes a difference.

            JonathanLeeJ 1 Reply Last reply Reply Quote 0
            • JonathanLeeJ
              JonathanLee @viragomann
              last edited by

              @viragomann I had him set it from udp4 to just udp to test it was not working with udp4 on the client export file

              Make sure to upvote

              V 1 Reply Last reply Reply Quote 0
              • JonathanLeeJ
                JonathanLee @george1116
                last edited by

                @george1116

                Is your OpenVPN set like this?

                f0d8db49-8cba-4730-9b39-f725ea8dd08f-image.png

                Make sure to upvote

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

                  @JonathanLee
                  If the client config file only has an IPv4 remote line, it would use it, but not IPv6.

                  I guess, he has an host name in the remote line and the internal DNS resolves it to IPv6.

                  JonathanLeeJ G 2 Replies Last reply Reply Quote 1
                  • G
                    george1116 @JonathanLee
                    last edited by george1116

                    @JonathanLee

                    I changed it from that to this

                    <br/>
                    Screenshot 2024-01-03 at 10.12.12 AM.png

                    JonathanLeeJ 1 Reply Last reply Reply Quote 0
                    • JonathanLeeJ
                      JonathanLee @viragomann
                      last edited by

                      @viragomann He could create a host override for it right?

                      Make sure to upvote

                      V 1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @george1116
                        last edited by

                        @george1116 is your wan have ipv6 listed under status in pfsense?

                        I am thinking set that to ipv4 only and test again

                        Make sure to upvote

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

                          @JonathanLee said in OpenVPN does not work on bridged PFsense router:

                          @viragomann He could create a host override for it right?

                          I guess, his DNS resolves the host to an IPv6 as mentioned. Presumably due to DHCPv6 DNS registration.
                          I don't think that a host override would be a solution here.

                          JonathanLeeJ 1 Reply Last reply Reply Quote 0
                          • JonathanLeeJ
                            JonathanLee @viragomann
                            last edited by

                            @viragomann I wonder if his WAN IP he is connecting to is IPV4, I wonder if that interface shows IPV4 only he said he has a router before pfSense and not pfSense first, so I think pfSense is getting ipv4 only on the wan interface

                            Make sure to upvote

                            1 Reply Last reply Reply Quote 0
                            • G
                              george1116 @viragomann
                              last edited by george1116

                              @viragomann Screenshot 2024-01-03 at 10.22.19 AM.png

                              After changing it back this is all I get.

                              @JonathanLee You mean it shows IPV4 but it really isn't?

                              JonathanLeeJ V 2 Replies Last reply Reply Quote 1
                              • JonathanLeeJ
                                JonathanLee @george1116
                                last edited by

                                @george1116 did you use the Wizard or manually set up OpenVPN in pfsense?

                                Make sure to upvote

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  george1116 @JonathanLee
                                  last edited by

                                  @JonathanLee I used the wizard

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

                                    @george1116
                                    My suggestion was to edit the client config and replace the host name with the respective IPv4 for testing.

                                    G 1 Reply Last reply Reply Quote 1
                                    • G
                                      george1116 @viragomann
                                      last edited by george1116

                                      @viragomann Yeah, I tried that already, it doesn't work.

                                      The highlight for me is that it works on Mobile networks, but doesn't work a the Home Router. Is this supposed to be a ISP issue or pfsense?

                                      V 2 Replies Last reply Reply Quote 0
                                      • V
                                        viragomann @george1116
                                        last edited by

                                        @george1116
                                        So the server log, you've posted above shows IPv6 connection attempts. With an IPv4 only in the config, the client can only use v4. So I'm wondering, what the server log shows then.

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

                                          @george1116 said in OpenVPN does not work on bridged PFsense router:

                                          The highlight for me is that it works on Mobile networks, but doesn't work a the Home Router

                                          Over the internet to the WAN IP?

                                          Which IP version does it use in this case?

                                          1 Reply Last reply Reply Quote 0
                                          • G
                                            george1116 @viragomann
                                            last edited by george1116

                                            @viragomann

                                            Not quite.
                                            When it showed the IPV6 connection we had indeed changed it to use UDP IPV4 and IPV6. But once I have changed it back to UDP IPV4 it's only connecting via IPV4

                                            @viragomann

                                            Over the internet to the WAN IP?
                                            
                                            Which IP version does it use in this case?
                                            

                                            In this case it uses IPV4

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