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

    VPN ports to internal phone servers

    Scheduled Pinned Locked Moved NAT
    14 Posts 2 Posters 968 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

      you can forward any port to any other port so if you have say 3 severs all listening on 1194

      publicIP:1194---->192.168.1.100:1194
      publicIP:1195---->192.168.1.101:1194
      publicIP:1196---->192.168.1.102:1194

      You just have to change the remote clients to use the outside port. This is simple openvpn config on the client side.

      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
      • L
        Lon Townsend
        last edited by

        So in the case of the OpenVPN Connect app, you can't do that. I might be able to do that with the OpenVPN for Android app though.

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

          which app... I run openservers on multiple different ports... You can do change what port they go to its just in the ovpn file your talking about for ios and android right.. the connect app

          just edit the ovpn file before you import it.

          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
          • L
            Lon Townsend
            last edited by

            The apps i listed, OpenVPN Connect is an android app for smart phones. The other app is OpenVPN for Android. Both are on the Google play store.

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

              And how do you get the info for your server into the app? You load the ovpn file - which has the port in it... So yeah you can do it no matter what client your using.

              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

              L 2 Replies Last reply Reply Quote 0
              • L
                Lon Townsend @johnpoz
                last edited by

                @johnpoz ok

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

                  Why can you not just connect to pfsense and setup your softphone to use the private IP of the server? Then you only need to run 1 vpnserver which is on your edge and your clients can connect to whatever private IP they want for your server.

                  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

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Lon Townsend @johnpoz
                    last edited by

                    @johnpoz it would be the port attached to the public IP if im correct, in the ovpn file.

                    1 Reply Last reply Reply Quote 0
                    • L
                      Lon Townsend @johnpoz
                      last edited by

                      @johnpoz im working with an already established system in which he has multiple vpn tunnels to different pfsense firewalls. Im just trying to get through the firewall to an OpenVPN server on a freepbx phone server. I can't use 1194, on the firewall, because it's already nat'd to another internal phone server

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

                        yeah then just edit the ovpn file before you give it to them.. its just a text file change the port listed in the file to the one you want to use on your public IP, and then forward that to 1194

                        Easy Peasy Lemon Squeezy ;)

                        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

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          Lon Townsend @johnpoz
                          last edited by

                          @johnpoz So one App was picky in changing the external port. The other App worked around the change and made the connection. Problem solved.

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

                            The app is junk then.. What if the port is in use? What if the port is blocked, etc. etc. Locking something down to the standard port is going to cause issues..

                            Glad you got it sorted with the other app..

                            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

                            L 1 Reply Last reply Reply Quote 1
                            • L
                              Lon Townsend @johnpoz
                              last edited by

                              @johnpoz thanks for the help man.

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