Page 1 of 1

how to add more port

Posted: Mon Aug 08, 2011 1:05 am
by fani2011
hello
is it possible to add more UDP port?
like port 69....
defult is:
Port for VPN client connections: tcp/443, udp/1194

Re: how to add more port

Posted: Mon Aug 08, 2011 5:21 am
by Mimiko
Hello

Just create a copy of the configuration file and change port and proto options.

Re: how to add more port

Posted: Sat Aug 20, 2011 2:57 am
by fani2011
hi; you mean that i should edit Client.ovpn file in C:\Program Files\OpenVPN\config ? and no need to add port in server with ssh?

i searching for command to add port in server.

i edited ovpn client file and replaced port 1194 to 53 now give this error:
Sat Aug 20 07:46:53 2011 OpenVPN 2.1.4 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Nov 8 2010
Sat Aug 20 07:47:02 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Aug 20 07:47:02 2011 Control Channel Authentication: tls-auth using INLINE static key file
Sat Aug 20 07:47:02 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug 20 07:47:02 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug 20 07:47:02 2011 LZO compression initialized
Sat Aug 20 07:47:02 2011 Control Channel MTU parms [ L:1542 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sat Aug 20 07:47:02 2011 Socket Buffers: R=[8192->100000] S=[8192->100000]
Sat Aug 20 07:47:02 2011 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sat Aug 20 07:47:02 2011 Local Options hash (VER=V4): '504e774e'
Sat Aug 20 07:47:02 2011 Expected Remote Options hash (VER=V4): '14168603'
Sat Aug 20 07:47:02 2011 UDPv4 link local: [undef]
Sat Aug 20 07:47:02 2011 UDPv4 link remote: 21x.95.5x.18:53
Sat Aug 20 07:47:03 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Sat Aug 20 07:47:04 2011 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Sat Aug 20 07:47:06 2011 Server poll timeout, restarting
Sat Aug 20 07:47:06 2011 TCP/UDP: Closing socket
Sat Aug 20 07:47:06 2011 SIGUSR1[soft,server_poll] received, process restarting
Sat Aug 20 07:47:06 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Aug 20 07:47:06 2011 Control Channel Authentication: tls-auth using INLINE static key file
Sat Aug 20 07:47:06 2011 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug 20 07:47:06 2011 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Aug 20 07:47:06 2011 LZO compression initialized

tnx

Re: how to add more port

Posted: Sat Aug 20, 2011 5:46 am
by Mimiko
Oh, I thought that you wanted that OpenVPN server leasin on multiple ports.

Please state clearly where do you want more ports to add?

Re: how to add more port

Posted: Sat Aug 20, 2011 10:19 am
by fani2011
Mimiko wrote:Oh, I thought that you wanted that OpenVPN server leasin on multiple ports.

Please state clearly where do you want more ports to add?
in my openvpn server.
add more port than 1194/443.

Re: how to add more port

Posted: Sun Aug 21, 2011 4:58 am
by Mimiko
Go to /etc/openvpn on your OpenVPN server, and make copy of *.conf files changing in config files port and protocol.

Re: how to add more port

Posted: Sun Aug 21, 2011 10:54 am
by fani2011
Mimiko wrote:Go to /etc/openvpn on your OpenVPN server, and make copy of *.conf files changing in config files port and protocol.
[root@ovpn ~]# cd /etc/openvpn
-bash: cd: /etc/openvpn: No such file or directory

centos 5.5
Access Server version: 1.5.6
openvpn version 1.1.15

Re: how to add more port

Posted: Mon Aug 22, 2011 4:58 am
by fani2011
any idea?
thanks

Re: how to add more port

Posted: Mon Aug 22, 2011 6:26 am
by Mimiko
Oh, you had to say that you use OpenVPN AS. I think you can use only two ports, one for TCP and one for UDP. See the administration page of OpenVPN AS from your server.

Re: how to add more port

Posted: Wed Aug 24, 2011 12:37 am
by Bebop
Moved to OpenVPN AS