LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2nd openvpn no response (https://www.linuxquestions.org/questions/linux-newbie-8/2nd-openvpn-no-response-823237/)

qwertyjjj 07-31-2010 09:49 AM

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


paulsm4 07-31-2010 01:20 PM

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

qwertyjjj 07-31-2010 01:38 PM

Quote:

Originally Posted by paulsm4 (Post 4051090)
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.

paulsm4 07-31-2010 02:31 PM

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

qwertyjjj 07-31-2010 02:42 PM

Quote:

Originally Posted by paulsm4 (Post 4051132)
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...

qwertyjjj 08-02-2010 12:49 PM

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?


All times are GMT -5. The time now is 11:41 PM.