Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - openvpn fails after move to openRC - SOLVED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2383
Location: Kentucky

PostPosted: Fri May 20, 2011 5:03 am    Post subject: HELP - openvpn fails after move to openRC - SOLVED Reply with quote

i updated the client side box and everything worked fine, but when I updated the server side box, the 2 will no longer flow data. when the client starts as / etc/init.d/openvpn.tun1 it complains with "WARNING: openvpn.tun1 has started, but is inactive"

I have been using this same openvpn configuration for several years, and the problem only started when I upgraded the server to openRC.

This openvpn connection is my connection to the internet, so to post this, I am using my ipad with the cellular connection. This makes it impossible for me ta actually paste stuff from the logfiles, so please excuse me for not pasting when I am posting. :roll:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Fri May 20, 2011 4:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
atmosx
n00b
n00b


Joined: 17 Jul 2009
Posts: 43

PostPosted: Fri May 20, 2011 7:40 am    Post subject: Re: HELP - openvpn fails after move to openRC Reply with quote

Moriah wrote:
i updated the client side box and everything worked fine, but when I updated the server side box, the 2 will no longer flow data. when the client starts as / etc/init.d/openvpn.tun1 it complains with "WARNING: openvpn.tun1 has started, but is inactive"

I have been using this same openvpn configuration for several years, and the problem only started when I upgraded the server to openRC.

This openvpn connection is my connection to the internet, so to post this, I am using my ipad with the cellular connection. This makes it impossible for me ta actually paste stuff from the logfiles, so please excuse me for not pasting when I am posting. :roll:


Hello,

I get the same message but my openvpn works. It takes about 2 minutes though to set it up, I don't know why. I guess yours works also.

What I came across though is that If you have only 1 openvpn network configured use the default configuration. The openvpn.xxx thing will work for more than 1 OpenVPN. So if you have just one, rename them to default (/etc/init.d/openvpn and /etc/openvpn/openvpn.conf).

Hope this help,

regards,
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2383
Location: Kentucky

PostPosted: Fri May 20, 2011 4:49 pm    Post subject: Reply with quote

No, my problem -- it turns out -- was not openvpn at all; it was that ip forwarding was not getting turned on. Somewhere in all the maze of startup scripts, the line:
Code:

echo '1' > /proc/sys/net/ipv4/ip_forward

got lost, misplaced, or kidnapped. :wink:

Somehow, when the change to openrc was made yesterday, this got dropped, resulting in no traffic getting passed thru the vpn tunnel, so it *LOOKED* like an openvpn problem.

The fact that the machine in question is 75 miles from here and provides my internet connection made it even more fun. 8O

Anyway, the problem is solved. I finally gave up working on it around 3 am, and as I was turning out the light, I had this sudden inspiration that ip forwarding was not enabled. It was all I could do to make myself go to bed anyway and say I'd fix the next morning if that was the case.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum