Multiple OpenVPN Servers on Multi WAN
Running pfSense 2.0-BETA4 built on Mon Aug 9 13:46:39 UTC 2010
I've got two WAN connections (both connections are static with unique gateways). I'm trying to setup two OpenVPN servers, each dedicated to their respective WAN connection, and I can in fact do this. The issue is I cannot have both OpenVPN servers bind to the same port, even though each server is bound to a unique WAN interface. Creating the first OpenVPN server on WAN1 and UDP port 1194 works fine, but when I create the second OpenVPN server on WAN2 and UDP port 1194, I get the follow error from the WebGUI:
The following input errors were detected:
* The specified 'Local port' is in use. Please select another value
If I change the port to UDP 1195 on WAN2, both servers start up fine. Looking at a 'netstat -np udp' I can see each server bound to their respective IPs, albeit on different ports.
Is there a reason why both servers cannot bind to 1194 since they're on different IPs/interfaces?
I opened a bug for this to not forget because it should be allowed.
Technically, no, but the port used is also the port selected for the management interface, which all run on 127.0.0.1, hence allowing that would create a number of complications. There needs to be an alternative for that in the future without breaking the Status page, that's a pretty involved change though so the ticket has been postponed to a future release.