Project

General

Profile

Actions

Bug #1025

closed

OpenVPN in client mode requires local port set for multiple instances

Added by Jim Pingle about 14 years ago. Updated almost 14 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
Start date:
11/18/2010
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0
Affected Architecture:

Description

If you create an OpenVPN client, the local port is left blank, and it will automatically use 1194

If you create a second client instance and leave the field blank, it will also try to bind to 1194, and fail.

Whichever instance happens to start last will not function:

Nov 18 19:23:28     openvpn[22341]: UDPv4 link local (bound): [AF_INET]192.168.197.153:1194
[...]
Nov 18 19:24:03     openvpn[33190]: TCP/UDP: Socket bind failed on local address [AF_INET]192.168.197.153:1194: Address already in use

So we need some way to either find a free port or, if possible, make the client pick a random source port insetad.

Actions

Also available in: Atom PDF