how to add more port

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
fani2011
OpenVpn Newbie
Posts: 5
Joined: Mon Aug 08, 2011 1:03 am

how to add more port

Post by fani2011 » Mon Aug 08, 2011 1:05 am

hello
is it possible to add more UDP port?
like port 69....
defult is:
Port for VPN client connections: tcp/443, udp/1194

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: how to add more port

Post by Mimiko » Mon Aug 08, 2011 5:21 am

Hello

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

fani2011
OpenVpn Newbie
Posts: 5
Joined: Mon Aug 08, 2011 1:03 am

Re: how to add more port

Post by fani2011 » Sat Aug 20, 2011 2:57 am

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

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: how to add more port

Post by Mimiko » Sat Aug 20, 2011 5:46 am

Oh, I thought that you wanted that OpenVPN server leasin on multiple ports.

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

fani2011
OpenVpn Newbie
Posts: 5
Joined: Mon Aug 08, 2011 1:03 am

Re: how to add more port

Post by fani2011 » Sat Aug 20, 2011 10:19 am

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.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: how to add more port

Post by Mimiko » Sun Aug 21, 2011 4:58 am

Go to /etc/openvpn on your OpenVPN server, and make copy of *.conf files changing in config files port and protocol.

fani2011
OpenVpn Newbie
Posts: 5
Joined: Mon Aug 08, 2011 1:03 am

Re: how to add more port

Post by fani2011 » Sun Aug 21, 2011 10:54 am

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

fani2011
OpenVpn Newbie
Posts: 5
Joined: Mon Aug 08, 2011 1:03 am

Re: how to add more port

Post by fani2011 » Mon Aug 22, 2011 4:58 am

any idea?
thanks

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: how to add more port

Post by Mimiko » Mon Aug 22, 2011 6:26 am

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.

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: how to add more port

Post by Bebop » Wed Aug 24, 2011 12:37 am

Moved to OpenVPN AS
The cure for boredom is curiosity

Post Reply