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

    Unable to run two instances of OpenVPN

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 105 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.
    • C
      chriscc
      last edited by

      Hi,
      I have configured two OpenVPN servers in pfsense, I am unable to start one of them even though the tunnel works are different.

      2025-06-27 16:51:12.545024-04:00 openvpn 69749 /sbin/ifconfig ovpns1 192.168.4.1/24 mtu 1500 up
      2025-06-27 16:51:01.357857-04:00 openvpn 39514 FreeBSD ifconfig failed: external program exited with error status: 1
      2025-06-27 16:51:01.350082-04:00 openvpn 39514 /sbin/ifconfig ovpns2 192.168.5.1/24 mtu 1500 up

      if I ssh in

      [24.11-RELEASE][admin@mainbertharouter.gensoftcon.com]/root: /sbin/ifconfig ovpns2 192.168.5.1/24 mtu 1500 up
      ifconfig: ioctl (SIOCAIFADDR): File exists

      Is there something else I am missing that would cause this error?

      Thanks.

      D 1 Reply Last reply Reply Quote 0
      • D
        darcey @chriscc
        last edited by

        @chriscc
        Do you have both instances configured to listen on the same interface & port?
        If so, you need to change one or other to use a different interface or another port.

        1 Reply Last reply Reply Quote 0
        • C
          chriscc
          last edited by

          Yes, both are configured to to listen to the wan gateway group, but different ports.

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