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

    Multiple configs of OVPN possible?

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 2.1k 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.
    • M
      mayhem
      last edited by

      Hi,

      I currently have OVPN working beautifully through UDP/123. Connects perfectly and I can tunnel all my traffic and http browsing etc no problems at all!
      Now what I am trying to do is setup other configuration files for a bunch of other proto/ports, like TCP/123, UDP/443, TCP/443, etc.
      Basically all the config files are carbon copies of the first one with obviously proto/ports changed. I have attached a screengrab (also of WAN FW rules), hopefully it makes it easier to follow.
      In essence, it doesn't connect to anything other than the first config which is UDP/123. I am guessing OVPN only looks at the first configuration and ignores everything else.

      Would appreciate any comments/help

      Thanks a bunch!
      ovpn-server.jpg
      ovpn-server.jpg_thumb
      fw-rules.jpg
      fw-rules.jpg_thumb

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

        Each config will need a distinct subnet for the tunnel network/address pool. It should work if you have that, since you're already using distinct port numbers.

        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
        • M
          mayhem
          last edited by

          Thanks very much Jimp.

          Yeah that must be it, they were all on the same subnet. I airbrushed it but it is.. 192.168.222.0/24
          Would appreciate it if you could give me some options for the others as I'm not an expert on ip subnets. I tried 192.168.333.0/24 and its not a valid CIDR.. 192.168.233.0/24 worked but it may be conflicting the other subnet. I changed the outbound NAT 'source' and OVPN address pool and push "dhcp-option DNS in custom options in the OVPN config

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

            Anything from 0-255 should work in that octet. So 192.168.42.x, 192.168.201.x, etc, etc. Whatever you want that isn't in use.

            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.