Comments (8)
Sending SIGTERM to openvpn
process, such as sudo kill #pid
, did terminate the vpn connection and the script didn't restart openvpn.
Did you mean that sending SIGTERM to the script didn't work properly? Right now the script itself is not handle SIGTERM and so doesn't do the post_action
New push made it handles SIGTERM gracefully :)
from vpngate-with-proxy.
It show:
/home/user/vpngate-with-proxy/user_script.sh
Note:
- it's cli file of previous version.
- Before that to fix issue with
/root
folder I delete user_script.sh atvpngate_with_proxy
dir and put myuser_script.sh
I will test the same with current version
On recent clean version:
It give this error https://i.imgur.com/mbgJluf.png
Run script modified:
sudo sg qvpn -c "sudo python vpnproxy_cli.py $user_home $arg"
Update:
To fix it I created empty vpngate-with-proxy
folder at .config
directory.
Issue with /root
solved on new nersion. ./run
script send correct user folder to vpngate
.
Update2:
To get network connection I modified my run command from above to:
sudo sg qvpn -c "python vpnproxy_cli.py $user_home $arg"
from vpngate-with-proxy.
I found an error! It's my bad leaving the expanduser('~')
code intact. I replaced it with proper user_home
. Now it should be fine on your system. Please confirm with the newest push
from vpngate-with-proxy.
@Dragon2fly First reboot after update: works ok! But need more testing :) thanks for this update.
p.s. Configs now have other permissions to keep them on updates?
update: got some error
Traceback (most recent call last):
File "vpnproxy_cli.py", line 408, in <module>
os.symlink(user_script_file, "user_script.sh")
OSError: [Errno 17] File exists
from vpngate-with-proxy.
uhm, the line before that line should already check if the file exist or not.
config.ini
and user_script.sh
have the same processing code. If the is a problem, then it should happen to the config.ini
first as it is processed before user_script.sh
.
Can you confirm this error again?
from vpngate-with-proxy.
I think this error related to this issue: #14 (comment)
It was a problem with writing configs to /root
.
While we have open issue linked above and this ticket about SIGTERM solved: I do not expect now any problems with shutdown. This ticket can be closed. Thanks
from vpngate-with-proxy.
Can you do one more test below before I close this issue?
open the vpnproxy_cli.py
file and put this line
print os.path.realpath("user_script.sh")
before this line
if not os.path.exists("user_script.sh"):
to see if the printed path is the expected one.
from vpngate-with-proxy.
I delete folder at .config
dir and clone new repository. Now, it's executed without error. Thanks. :)
from vpngate-with-proxy.
Related Issues (20)
- Bug: Taskbar indicator -> show main HOT 3
- how to get server list? windows and linux difference server list? HOT 1
- Aur version for arch would be great
- iptables rules that block non-VPN traffic HOT 2
- Linux Mint Issue HOT 2
- Please add SOCKS5 Proxy support
- [feedback] Python3 thanks. It works HOT 2
- unexpected exit after changing country at cli HOT 3
- Network and Proxy Problem HOT 4
- Cannot connect to vpngate mirror sites HOT 5
- Cannot Open TAP/TUN Archlinux HOT 1
- Fix vpn_indicator' vpn status "Season:" -> "Session:" HOT 2
- No server certificate verification method has been enabled HOT 1
- Replace default cipher in downloaded vpn config to stronger chiper HOT 1
- Add redirect-gateway setting to config file HOT 9
- Vpn got error, terminated Restore dns HOT 5
- Run Open VPN as a different user HOT 1
- Cannot connect to vpngate mirror sites HOT 3
- failed to get VPN servers data HOT 1
- OpenVPN 2.6.3 not support default old AES-128-CBC data chipher
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vpngate-with-proxy.