LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2010, 10:49 AM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
2nd openvpn no response


I am trying to start a 2nd openvpn service on my server so that clients can connect via udp instead of tcp.
However when I run:
openvpn /etc/openvpn/openvpn2.conf

I get no response at all.
Usually I would expect the startup parameters or at least an error but I get nothing. I have to CTrl+c to get back to the prompt.
ANy ideas what I can try?
I changed the serve config so it has tun1 instead of tun and also changed the log files to openvpn-status2.log so it doesn't overwrite the other server.
I also changed the network so there wouldn't be any IP conflicts. Openvpn1 runs on 172.16.x.x

Code:
port 1194
proto udp
dev tun1
crl-verify /etc/openvpn/crl.pem
client-config-dir /etc/openvpn/ccd
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
push "redirect-gateway"
push "dhcp-option DNS 213.171.192.249"
push "dhcp-option DNS 213.171.192.245"
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user nobody
group users
tun-mtu 1460
persist-key
persist-tun
status openvpn-status2.log
verb 3
log /var/log/openvpn2.log
 
Old 07-31-2010, 02:20 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Mick Bauer, who writes the (most excellent!) "Paranoid Penguin" column for Linux Journal, did a great 4-part article on OpenVPN earlier this year.

Please read it. He covers a great deal of background, goes into a lot of detail - and, in fact, spends time on exactly the issue you're asking about:

Linux VPNs with OpenVPN

There are a number of things that could be "going wrong" - some simple, some not-so-simple/not-so-obvious.

Please read the article. I'm confident it should both:

a) resolve the immediate problem
b) give you some great ideas/insights going forward.

IMHO .. PSM
 
Old 07-31-2010, 02:38 PM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by paulsm4 View Post
Hi -

Mick Bauer, who writes the (most excellent!) "Paranoid Penguin" column for Linux Journal, did a great 4-part article on OpenVPN earlier this year.

Please read it. He covers a great deal of background, goes into a lot of detail - and, in fact, spends time on exactly the issue you're asking about:

Linux VPNs with OpenVPN

There are a number of things that could be "going wrong" - some simple, some not-so-simple/not-so-obvious.

Please read the article. I'm confident it should both:

a) resolve the immediate problem
b) give you some great ideas/insights going forward.

IMHO .. PSM
Hi
It's a good article but doesn;t really address the problem
I am trying to start a 2nd instance of OpenVPN and it does nothing but hang. It should give an error or at least signal some kind of issue so I need to troubleshoot why.
 
Old 07-31-2010, 03:31 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I read all four articles in the magazine, about six months ago. I definitely recall that Mick talked about single vs. multiple VPN configurations.

But when I looked at the link I sent you, it didn't seem to have any convenient "forward links" to the subsequent three articles.

Here is the entire series:

Part 1:
http://www.linuxjournal.com/magazine...x-vpns-openvpn

Part 2:
http://www.linuxjournal.com/magazine...penvpn-part-ii

Part 3:
http://www.linuxjournal.com/article/10707


Part 4:
http://www.linuxjournal.com/article/10744

'Hope that helps .. PSM
 
Old 07-31-2010, 03:42 PM   #5
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by paulsm4 View Post
Hi -

I read all four articles in the magazine, about six months ago. I definitely recall that Mick talked about single vs. multiple VPN configurations.

But when I looked at the link I sent you, it didn't seem to have any convenient "forward links" to the subsequent three articles.

Here is the entire series:

Part 1:
http://www.linuxjournal.com/magazine...x-vpns-openvpn

Part 2:
http://www.linuxjournal.com/magazine...penvpn-part-ii

Part 3:
http://www.linuxjournal.com/article/10707


Part 4:
http://www.linuxjournal.com/article/10744

'Hope that helps .. PSM
Thanks - I have skimmed through those but they all deal with 1 server only (multiple clients) - they're similar to the HOW TO's on the openvpn site. Nothing really covers why there would be a hang of the process when issuing a service start command...no errors.
I'll keep hunting - the openvpn users list may have a solution...
 
Old 08-02-2010, 01:49 PM   #6
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Anyone have any ideas on what would cause the service to hang with no errors?
Has anyone started a 2nd VPN service on their server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2nd tun network for openvpn? qwertyjjj Linux - Server 1 08-03-2010 09:48 AM
OpenVPN assigning public & static IPs to pcs/devices behind an OpenVPN client dgonzalezh Linux - Networking 6 07-18-2010 10:50 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 03:20 AM
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-24-2009 03:42 AM
Server with two IP addresses, how do I use the 2nd one for an openvpn tunnel? remote42 Linux - Networking 0 06-21-2009 03:15 PM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration