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

    Multi-WAN OpenVPN Client Export Fails

    Scheduled Pinned Locked Moved OpenVPN
    13 Posts 3 Posters 2.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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      "[1] Interface Address: -> remote 127.0.0.1 1194 udp"

      I can see how you can port forward to loopback, but way I took his desc was he exported that the clients connected to loopback..  See attached - that would never work.

      notgoingtowork.png
      notgoingtowork.png_thumb

      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

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Yes, I'm aware, but he wasn't expecting that to work, hence showing that 2 and 3 had no remote entries. Was for informational purposes to describe the behavior.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • A
          alfredo
          last edited by

          Please see attached screenshot for our Port Forward configuration:

          We use 2 OpenVPN Servers 1195 and 1194; and they work perfectly from each WAN's IP address:

          And it is to be noted, that we use 2x2 CARP WAN; as such, the WAN1/WAN2 addresses are wan-carp behind 2 DMZ Routers.

          ![Screen Shot 2016-01-20 at 17.35.31.png](/public/imported_attachments/1/Screen Shot 2016-01-20 at 17.35.31.png)
          ![Screen Shot 2016-01-20 at 17.35.31.png_thumb](/public/imported_attachments/1/Screen Shot 2016-01-20 at 17.35.31.png_thumb)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Export package only understands single port rules. Use separate rules for 1194 and 1195.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • A
              alfredo
              last edited by

              Still the same problem:

              Multis are still empty:
              –
              resolv-retry infinite

              lport 0

              Single ist still loopback:

              resolv-retry infinite
              remote 127.0.0.1 1195 udp
              lport 0

              ![Screen Shot 2016-01-20 at 18.17.11.png](/public/imported_attachments/1/Screen Shot 2016-01-20 at 18.17.11.png)
              ![Screen Shot 2016-01-20 at 18.17.11.png_thumb](/public/imported_attachments/1/Screen Shot 2016-01-20 at 18.17.11.png_thumb)

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                The IP address method still wouldn't work in that scenario since the WANs have private IP addresses:

                https://github.com/pfsense/pfsense-packages/blob/master/config/openvpn-client-export/openvpn-client-export.inc#L973

                By hostname it should still work if you have dyndns configured for both WANs, though

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • A
                  alfredo
                  last edited by

                  Hi Jimp,

                  [1] Could you update the code to find the correct IP External Addresses being covered by the private addresses, by trying to contact the internet from such private IPs. E.g. detect the IPs shown for each WAN interface with "http://whatismyipaddress.com". That would true be "Automagic"!!! Feature Request  :)

                  [2] We don't want to use DynDNS. So what should we put manually in the client export file?

                  remote External_WAN1_IP 1195 udp
                  remote External_WAN2_IP 1195 udp

                  between "resolv-retry infinite"; and, "lport 0"?

                  Thanks.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    1. No, there is no accurate way to do that from the firewall itself in an automated manner for multiple WANs.

                    2. That'll do. Anywhere in the file is fine (or use the advanced options box on the export package)

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • A
                      alfredo
                      last edited by

                      OK; tested the "advanced options" with the 2 remotes:
                      [single] Does not work as that still adds in the loopback remote.
                      [multi] Works as that had no remote to begin with.

                      Would there be any way to store such settings for "Host Name Resolution: Automagic Multi-WAN IPs" and "Additional configuration options: remote 1 remote 2" with the OpenVPN Server's data? Otherwise, our admins might get somewhat confused for every export if they had to enter this all the time…

                      Thanks,

                      Alfredo.

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        Not currently. There is a redmine ticket out there already for it though. It would require some significant work to pull off.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

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