barben360 / vpnunlimited2syno Goto Github PK
View Code? Open in Web Editor NEWPython scripts for VPN Unlimited OpenVPN setup on Synology DiskStation
Python scripts for VPN Unlimited OpenVPN setup on Synology DiskStation
administrator@Synology:/volume1/Shared/VPNUnlimited2Syno$ python "Setup"
File "Setup", line 12
print("#############################################",flush=True)
^
SyntaxError: invalid syntax
administrator@Synology:/volume1/Shared/VPNUnlimited2Syno$
Hi
What do you mean by "Run "./Setup" as an administrator ". Can you elaborate?
I have connected to the NAS via SSH using a user in administrators group.
However, I still get following error when I execute the script as VPNUnlimited2Syno-master$ python3 Setup
#############################################
######### VPN Unlimited to Synology #########
######### by Barben360 #########
######### V1.0 #########
#############################################
Creating backup of previous ovpn configuration...
Reading previous ovpn configuration...
Reading and extracting VPN Unlimited configurations...
Setting up VPN configurations...
Copying to Synology VPN folder...
Traceback (most recent call last):
File "Setup", line 174, in
shutil.copyfile(os.path.join("./output", filename), os.path.join(syno_folder,filename))
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/syno/etc/synovpnclient/openvpn/ovpnclient.conf'
Hope you can help
Thanks
Very minor, the readme command is python3 VPNUnlimited2Syno backup backups
, but file name is vpnunlimited2syno
(all lower case), thus it won't run.
Thanks again for this script!
Python 3 is installed and all of the ovpn files have been installed I received from Synology. I rebooted my DS418j just for jollies with no change. Any ideas what else to try?
Hi,
Can you do the same for NordVPN? I have a NordVPN subscription and would like to at more
servers to my Synology NAS. But only from specific countries. Can this be done?
Well, it might but I have exhausted everything to try & get it to work!!!
Hey,
I am getting the below error when I try to run this script to add VPN Unlimited config on my Synology NAS. -sh: ./Setup: /usr/bin/python3: bad interpreter: No such file or directory
Please help.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.