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

Error when using OpenVPN Client and Server at the same time [solved]

Scheduled Pinned Locked Moved OpenVPN
6 Posts 3 Posters 4.9k 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.
  • D
    dulki
    last edited by Jan 1, 2010, 7:43 PM Dec 31, 2009, 5:51 PM

    Hello!

    I have an OpenVPN site-to-site connection up an running between two pfsense 1.2.3 boxes.

    The following error occurs when configuring an OpenVPN Server on the client box:

    
    openvpn[16125]: TCP/UDP: Socket bind failed on local address [undef]:1194: Address already in use
    openvpn[16125]: Exiting
    

    Is it possible to use pfsense with an OpenVPN server and client at the same time?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 31, 2009, 11:54 PM

      Sure, you may need to use alternate ports though. There is a port field on the client/server config edior.

      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
      • D
        danswartz
        last edited by Jan 1, 2010, 1:02 AM

        Not sure I understand the problem.  AFAIK, the openvpn client does not need to be configured to use a fixed port, just the server.

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jan 1, 2010, 2:04 AM

          The client also listens on the port for which it is configured, at least for UDP it does, not sure about TCP. You still have to set the port on the client so it knows which port the server side is listening on.

          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
          • D
            danswartz
            last edited by Jan 1, 2010, 4:31 AM

            In theory. the 'โ€“nobind' option tells openvpn 'if you are a client, use a dynamic port'.

            1 Reply Last reply Reply Quote 0
            • D
              dulki
              last edited by Jan 1, 2010, 2:32 PM

              I played around a bit with the OpenVPN options.

              On box 1: The Server uses port 1194 (UDP); the client uses port 10111 (UDP)
              On box 2: The Server uses port 10111 (UDP)

              When i check the "Dynamic sourceport" checkbox in the client configuration everything seems to work fine!

              openvpn[409]: Initialization Sequence Completed
              

              I will run a few tests later.

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received