Community Support Forum
 
  OpenVPN.net  •  Forum Index  •  FAQ  

It is currently Thu Jul 30, 2015 12:01 am




Post new topic Reply to topic  [ 8 posts ] 
 [solved]how Enable OpenVPN management console 
Author Message
 Post subject: [solved]how Enable OpenVPN management console
PostPosted: Thu Jul 28, 2011 4:41 am 
OpenVpn Newbie
User avatar

Joined: Thu Jul 28, 2011 4:21 am
Posts: 7
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.

Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Thu Jul 28, 2011 7:46 am 
Forum Team
User avatar

Joined: Wed Jan 12, 2011 9:23 am
Posts: 4083
Location: Athens,Greece
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.


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Thu Jul 28, 2011 2:58 pm 
OpenVpn Newbie
User avatar

Joined: Thu Jul 28, 2011 4:21 am
Posts: 7
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?


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Thu Jul 28, 2011 3:03 pm 
Forum Team
User avatar

Joined: Wed Dec 15, 2010 9:24 pm
Posts: 305
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.


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Fri Jul 29, 2011 12:58 pm 
OpenVpn Newbie
User avatar

Joined: Thu Jul 28, 2011 4:21 am
Posts: 7
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


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Fri Jul 29, 2011 1:32 pm 
Forum Team
User avatar

Joined: Wed Jan 12, 2011 9:23 am
Posts: 4083
Location: Athens,Greece
do you have selinux enabled?

please post output of sestatus

Michael.


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Mon Aug 01, 2011 1:18 pm 
Forum Team
User avatar

Joined: Fri Aug 20, 2010 2:57 pm
Posts: 2702
Location: Amsterdam
before starting openvpn, what does
Code:
lsof -i :7505

show ? is another process already listening on that port? can you try using port 7506?


Offline
 Profile  
 
 Post subject: Re: [help]how Enable OpenVPN management console
PostPosted: Mon Aug 08, 2011 3:57 am 
OpenVpn Newbie
User avatar

Joined: Thu Jul 28, 2011 4:21 am
Posts: 7
janjust wrote:
before starting openvpn, what does
Code:
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


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


 Who is online 

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


phpBB SEO
[ Time : 0.144s | 14 Queries | GZIP : On ]

 
Index  |  FAQ


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group