LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2023, 09:12 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
Default rc.openvpn script can break routing for roaming clients


Just a quick heads up that for some OpenVPN setups, the default Slackware rc.openvpn which uses --user nobody and --group nobody can break the vpn connection for OpenVPN clients.

If used with "persist-tun" and "persist-key", the above will allow OpenVPN to restart the connection even without root privileges. However, the OpenVPN process won't have control over the tun/tap device when restarting the connection - so it can't set a new IP address on it, and it can't add or remove routing rules. If using multiple connection sections in the OpenVPN config file, and the different servers send out different IP's and/or different routes, the connection will break when restarted by the OpenVPN process, as the OpenVPN process can't reconfigure the interface or routing rules. This also happens sometimes when the client moves between different sites / wifi connections - as, again, OpenVPN can't reconfigure properly the connection and routes.

A full computer restart will fix the broken connection - but it can be annoying for roaming users to keep on having to restart the computer.

I don't think the default rc.openvpn should be changed - but it is good for people to be aware of the above - as I spent some time going round in circles troubleshooting it.

Last edited by xj25vm; 06-16-2023 at 09:14 AM.
 
  


Reply



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
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-24-2009 02:42 AM
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-06-2009 09:23 AM
Routing Between OpenVPN Clients and Remote Network... sancho Linux - Networking 2 12-14-2007 10:28 AM
non roaming profile on a roaming profile system fieldyweb Linux - Newbie 1 10-03-2005 12:27 PM
Samba network, SuSe clients, roaming profiles. J-at-Jabit Linux - Networking 0 07-29-2005 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:31 AM.

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
Open Source Consulting | Domain Registration