Compiling OpenVPN for a static settin

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
amanshukor
OpenVPN User
Posts: 21
Joined: Mon Nov 07, 2011 11:00 pm

Compiling OpenVPN for a static settin

Post by amanshukor » Fri Oct 12, 2012 5:13 am

Hi guys,

I modify some of code from OpenVPN source code to make my client built with its own config.
This help me lessen the use to distribute my file.

Ok straight to the point question, I tried to define OPENVPN_PORT from socket.h with many port
so I can get the static port from it.

What the problems is when I state it to port 53, and build the source code I receive "Socket bind failed".
My built will work if I use different port.

And for your information, there is nothing running on port 53 on my station and I made it working if I state the port 53
inside the openVPN with other build.

The build just corrupted because setting the port into 53.

Can it be considered as bug or its a standard openVPN code rules to prevent the use of 53 .

Hope someone can shade some lights for me ...

:D

Post Reply