khoancat1981 / android-openvpn-settings

Automatically exported from code.google.com/p/android-openvpn-settings
GNU General Public License v3.0
0 stars 0 forks source link

option needed for calling openvpn with scripts enabled #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Feature request: please add option to enable script calls (it may be a 
reasonable default setting)

Sometimes link up/down scripts are needed for vpns, particularly on 
Android due to openvpn itself being unable to directly manipulate 
Android's DNS settings.

However these scripts won't be run unless openvpn is called with the "--
script-security 2" option.

As I temporary workaround, I relocated the openvpn binary to openvpn-
bin and replaced /system/xbin/openvpn with a shell script:
#!/bin/sh
/system/xbin/openvpn-bin --script-security 2 "$@"

This works, but it would be nice to have built-in support so one could go 
straight from the OpenVPN Installer to OpenVPN Settings.

Original issue reported on code.google.com by jshrieve@gmail.com on 9 Mar 2010 at 12:22

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 9 Mar 2010 at 3:55

GoogleCodeExporter commented 8 years ago
Feature is implemented. Please test.

Original comment by friedrich.schaeuffelhut on 9 Mar 2010 at 9:36

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 10 Mar 2010 at 12:29

GoogleCodeExporter commented 8 years ago
Checked out a copy and built it. Script security worked as expected. (I only 
tested level 
2). Thanks!

Original comment by jshrieve@gmail.com on 10 Mar 2010 at 1:06

GoogleCodeExporter commented 8 years ago

Original comment by friedrich.schaeuffelhut on 10 Mar 2010 at 1:30