[solved]how Enable OpenVPN management console

How to customize and extend your OpenVPN installation.

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

Post Reply
User avatar
lamtota
OpenVpn Newbie
Posts: 7
Joined: Thu Jul 28, 2011 4:21 am

[solved]how Enable OpenVPN management console

Post by lamtota » Thu Jul 28, 2011 4:41 am

Hi all,

I'd need a template to monitor the number of open/active OpenVPN connections.
Is there a known way to do this with webmin? Has anyone already a solution for this issue?

why when I enter the script management localhost 7505 has always had an error
openvpn will not run

Many thanks in advance
sorry i can not write properly, because I'm Indonesian
These also help google translate
Last edited by lamtota on Mon Aug 08, 2011 4:00 am, edited 2 times in total.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: [help]how Enable OpenVPN management console

Post by maikcat » Thu Jul 28, 2011 7:46 am

hi there,

>when I enter the script management localhost 7505 has always had an error

script?
you mean directive inside server config file..

can you post us the logs?

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
lamtota
OpenVpn Newbie
Posts: 7
Joined: Thu Jul 28, 2011 4:21 am

Re: [help]how Enable OpenVPN management console

Post by lamtota » Thu Jul 28, 2011 2:58 pm

I run openvpn with webmin

port 1194
proto udp
dev tun0
ca keys/myvpn/ca.crt
cert keys/myvpn/serverkey.crt
key keys/myvpn/serverkey.key
dh keys/myvpn/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist servers/server/logs/ipp.txt
tls-auth servers/server/ta.key 0
cipher AES-256-CBC
user nobody
group adm
status servers/server/logs/openvpn-status.log
log-append servers/server/logs/openvpn.log
verb 2
mute 20
max-clients 100
local 83.222.xxx.xxx
keepalive 5 30
client-config-dir /etc/openvpn/servers/server/ccd
tls-server
comp-lzo
persist-key
persist-tun
ccd-exclusive
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
management localhost 7505

when I run
[root@livecd ~]# /etc/init.d/openvpn start
Starting openvpn: [FAILED]

when I delete management localhost 7505
[root@livecd ~]# /etc/init.d/openvpn start
Starting openvpn: [ OK ]

I want to enable as shown below
Image


what's the solution?

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

Re: [help]how Enable OpenVPN management console

Post by Bebop » Thu Jul 28, 2011 3:03 pm

lamtota wrote: [root@livecd ~]# /etc/init.d/openvpn start
Starting openvpn: [FAILED]

when I delete management localhost 7505
[root@livecd ~]# /etc/init.d/openvpn start
Starting openvpn: [ OK ]
maikat will also want to see the content of your log "servers/server/logs/openvpn.log", and set the verb to 3.

so the answer to above will be more obvious.
The cure for boredom is curiosity

User avatar
lamtota
OpenVpn Newbie
Posts: 7
Joined: Thu Jul 28, 2011 4:21 am

Re: [help]how Enable OpenVPN management console

Post by lamtota » Fri Jul 29, 2011 12:58 pm

Fri Jul 29 08:47:04 2011 OpenVPN 2.2.0 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on Jun 6 2011
Fri Jul 29 08:47:04 2011 MANAGEMENT: Socket bind failed on local address 127.0.0.1:7505: Permission denied
Fri Jul 29 08:47:04 2011 Exiting

whether there are additional software/plugin assistance to enable openvpn managemen?
What should enable port 7505 on the iptables?
if yes, how the configuration

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: [help]how Enable OpenVPN management console

Post by maikcat » Fri Jul 29, 2011 1:32 pm

do you have selinux enabled?

please post output of sestatus

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: [help]how Enable OpenVPN management console

Post by janjust » Mon Aug 01, 2011 1:18 pm

before starting openvpn, what does

Code: Select all

lsof -i :7505
show ? is another process already listening on that port? can you try using port 7506?

User avatar
lamtota
OpenVpn Newbie
Posts: 7
Joined: Thu Jul 28, 2011 4:21 am

Re: [help]how Enable OpenVPN management console

Post by lamtota » Mon Aug 08, 2011 3:57 am

janjust wrote:before starting openvpn, what does

Code: Select all

lsof -i :7505
show ? is another process already listening on that port? can you try using port 7506?
thanks for the advice
really turned out to port 7505 already in use
OK thanks SOLVED

Post Reply