Help needed to setup my vps with vpn on port 53
Posted: Sat Apr 23, 2011 10:00 am
Hello
I have a vps running with openvz, and there are two domains hosted on it, but now i want to have open open installed on my vps, so i followed the guide and was able to install it successfully on port 1194 udp, but issue is that i want to have it working on port 53, and whenever i try to make a openvpn config file for port 53 and start it, i get:- unable to bind port already in use...
My server config file is like:-
local 185.xxx.xxx.xxx #-my_server_ip
port 53 #- port
proto udp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 1.2.3.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 53.log
verb 3
it works fine with port 1194 and others, but not 53 as i think named dns server is running , that why iam getting Port already in use error..
Is there any other way i can achieve this config(udp port 53 )...
Thanks & Regards
I have a vps running with openvz, and there are two domains hosted on it, but now i want to have open open installed on my vps, so i followed the guide and was able to install it successfully on port 1194 udp, but issue is that i want to have it working on port 53, and whenever i try to make a openvpn config file for port 53 and start it, i get:- unable to bind port already in use...
My server config file is like:-
local 185.xxx.xxx.xxx #-my_server_ip
port 53 #- port
proto udp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 1.2.3.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status 53.log
verb 3
it works fine with port 1194 and others, but not 53 as i think named dns server is running , that why iam getting Port already in use error..
Is there any other way i can achieve this config(udp port 53 )...
Thanks & Regards