test
sockeye44 / instavpn Goto Github PK
View Code? Open in Web Editor NEWthe most user-friendly L2TP/IPsec VPN server
License: Apache License 2.0
the most user-friendly L2TP/IPsec VPN server
License: Apache License 2.0
sudo instavpn psk set blablabla
Restarting VPN server...
failed to start openswan IKE daemon - the following error occured:
can not load config '/etc/ipsec.conf': /etc/ipsec.conf:45: syntax error, unexpected STRING, expecting $end [LOCAL IP ADRESS]
Error!
If server have more than one IP you can get that error, if fix this with manual edit /etc/ipsec.conf (remove second IP)
All new DO droplets have 2 ip (public, private)
Can you make docker image based ubuntu? Or Dockerfile?
For ensure the normal operation of vps.
No matter what I set the password,it alway prompt" All fields must contain alphanumeric characters only and have length between 6 and 32".I tried all combinations.
Подскажите, куда копать. Ubuntu 14.04.3 x64
20:23:25 INFO: Checking your OS version...
20:23:25 INFO: OK
20:23:25 INFO: Installing packages...
20:25:00 INFO: OK
20:25:00 INFO: Applying sysctl parameters...
20:25:00 INFO: OK
20:25:00 INFO: Creating random passwords...
20:25:00 INFO: OK
20:25:00 INFO: Other config files...
20:25:00 INFO: OK
20:25:00 INFO: Adding script to rc.local...
И так висит минут 15. Больше не ждал. Пробовал несколько раз
How to stop and uninstall it?
Do you realy clean file rc.local
before add string running your script and removing all strings in this file?
Hello,
I'm a newbie in VPN. I've installed the instaVPN on my server. I have an access to the web panel where I can create users.
How can I set up the VPN connection to the server from my laptop?
Best
On minimal build of Ubuntu there no python and cron in standard packages.
Здравствуй бро, начал разбираться, хотел поменять в веб интерфейсе css .. но почему то не че гоне выходит.. в чем может быть дело,.. я чего то не догоняю повидемум .
Ибо файл зила и сайбердак показывает что файлы отредактированы . но не чеге в вебе не меняется ..
Мб где кешируеться все это дело?
Plz add support for Ubuntu 16.04 LTS
log: Paste: 62qa5
env:
Ubuntu 14.04.1 LTS \n \l
uname -a
Linux PyConSS1 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
How can i make instavpn friendly with tor? (I have tor and instavpn on one server but i have no idea what should i do to make all trafic going throgh tor (PC->VPN->TOR->Internet))
Здравствуйте.
Делаю как тут https://kb.iweb.com/hc/en-us/articles/230267348 , но при подключении к серверу, у меня тупа не работает интернет, ничего не пингуется.
Админ панель работает, пользователь есть ,общий ключ тоже, а вот с подключением беда.
If eth0 is private network and eth1 is public network, SERVERIP will be set to a private IP.
After fix SERVERIP, the iptables rule is still not work.
Hello, I'm in China, OS is OS X 10.8.5.
I can connect through L2TP, but my ip isn't vps's ip.
Hey
06:32:53 INFO: Checking your OS version...
06:32:53 INFO: OK
06:32:53 INFO: Installing packages...
06:36:21 CRITICAL: Failed to install packages
CRITICAL ERROR!
Crash report: <bound method Paste.__unicode__ of <pastee.Paste instance at 0x7f2b21640e18>>
node -v
v6.4.0
Any ideas what may cause such error??
Hello!
Unfortunately, sip client can't connect to public sip-service (for international calls).
Hello,
is it possible to assign static address with respect to mac address when I connects to the server?
I use the chain of instavpn and mosh to create reliable ssh connection between machines behind NAT's, so each time dependent on who first connected - it starts to assign addresses from 172.16.1.30, so is it possible to make some changes manually in some config file to make a static list of addresses?
thanks!
Hi everyone,
I've been working on updating InstaVPN. I managed to get everything working, except the VPN authentication.
The authentication fails and on syslog I get this:
You can find my fork here: https://github.com/dgadelha/instavpn
It has support for Ubuntu 16.04+ (systemd), I also fixed some bugs like the character length, updated all dependencies (including jade -> pug), also probably the issue is that openswan had to be replaced with strongswan, but they said that the configuration files are compatible.
The panel now runs on port 34297.
CC to the guys who were asking for 16.04 support: @dimanao @iShift @Sovunito @wobondar @weilii @erhosen @ahapxor @Darfol @wannaphongcom @alex-roman
Ok
Cloning git repo
Ok
12:59:38 INFO: Checking your OS version...
12:59:38 INFO: OK
12:59:38 INFO: Installing packages...
13:00:02 INFO: OK
13:00:02 INFO: Applying sysctl parameters...
13:00:02 INFO: OK
13:00:02 INFO: Creating random passwords...
13:00:02 INFO: OK
13:00:02 INFO: Other config files...
13:00:02 INFO: OK
13:00:02 INFO: Adding script to rc.local...
13:00:04 INFO: OK
13:00:04 INFO: Installing web UI...
13:00:05 CRITICAL: Failed installing web UI
Traceback (most recent call last):
File "install.py", line 57, in <module>
main()
File "install.py", line 53, in main
logger.critical("Failed installing web UI")
File "/usr/lib/python2.7/logging/__init__.py", line 1197, in critical
self._log(CRITICAL, msg, args, **kwargs)
File "/usr/lib/python2.7/logging/__init__.py", line 1271, in _log
self.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1281, in handle
self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1321, in callHandlers
hdlr.handle(record)
File "/usr/lib/python2.7/logging/__init__.py", line 749, in handle
self.emit(record)
File "/root/workspace/instavpn/log.py", line 13, in emit
url = pastee.PasteClient().paste(self.buff.getvalue())
File "/root/workspace/instavpn/pastee.py", line 93, in paste
self._conn.request("POST", "/submit", urllib.urlencode(params), headers)
File "/usr/lib/python2.7/httplib.py", line 1017, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1051, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1013, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 864, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 826, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1220, in connect
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
File "/usr/lib/python2.7/ssl.py", line 487, in wrap_socket
ciphers=ciphers)
File "/usr/lib/python2.7/ssl.py", line 243, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 405, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error```
It would be nice to have console command to change popular 8080 port to something else.
Hi, i have changed some checks in your install scripts and install it on debian 7.7, but web ui not running:
root@vpn:/etc# instavpn web mode on
/bin/sh: 1: start: not found
Error!
root@vpn:/etc#
but server is working and i can control it via command line.
NodeJS installed by curl -sL https://deb.nodesource.com/setup | sudo bash -
I think that the problem is in the startup script nodejs.
Hello,
I have setup instavpn on my server, it works well on windows8, but doesn't work on iOS.
I created new Ubuntu 14.04 droplet on Digital Ocean. I got error:
14:19:49 INFO: Installing web UI...
14:19:49 CRITICAL: Failed installing web UI
CRITICAL ERROR!
Please tell me - Really set on 16.04 LTS ?
It will be nice if someone write tutorials, in readme or someting else, for most popular PC(Win/Mac/Ubuntu/Linux and mobile (Android, iOS, WM) OS. Sometimes, its not easy create secure co nnection to our VPN server.
I changed IP and password for privacy reasons, but here goes.
root@third:~# sudo do-release-upgrade
Checking for a new Ubuntu release
No new release found
root@third:~# curl -sS https://sockeye.cc/instavpn.sh | sudo bash
14:04:07 INFO: Checking your OS version...
14:04:07 INFO: OK
14:04:07 INFO: Installing packages...
14:04:40 INFO: OK
14:04:40 INFO: Applying sysctl parameters...
14:04:40 INFO: OK
14:04:40 INFO: Creating random passwords...
14:04:40 INFO: OK
14:04:40 INFO: Other config files...
14:04:40 INFO: OK
14:04:40 INFO: Adding script to rc.local...
Traceback (most recent call last):
File "install.py", line 53, in <module>
main()
File "install.py", line 40, in main
if util.setup_vpn(log):
File "/root/instavpn/util.py", line 112, in setup_vpn
for line in fileinput.input("/etc/default/ufw", inplace=True):
File "/usr/lib/python2.7/fileinput.py", line 252, in next
line = self.readline()
File "/usr/lib/python2.7/fileinput.py", line 321, in readline
os.rename(self._filename, self._backupfilename)
OSError: [Errno 2] No such file or directory
root@third:~# curl -sS https://sockeye.cc/instavpn.sh | sudo bash
14:07:00 INFO: Checking your OS version...
14:07:00 INFO: OK
14:07:00 INFO: Installing packages...
14:07:11 INFO: OK
14:07:11 INFO: Applying sysctl parameters...
14:07:11 INFO: OK
14:07:11 INFO: Creating random passwords...
14:07:11 INFO: OK
14:07:11 INFO: Other config files...
14:07:11 INFO: OK
14:07:11 INFO: Adding script to rc.local...
Traceback (most recent call last):
File "install.py", line 53, in <module>
main()
File "install.py", line 40, in main
if util.setup_vpn(log):
File "/root/instavpn/util.py", line 112, in setup_vpn
for line in fileinput.input("/etc/default/ufw", inplace=True):
File "/usr/lib/python2.7/fileinput.py", line 252, in next
line = self.readline()
File "/usr/lib/python2.7/fileinput.py", line 321, in readline
os.rename(self._filename, self._backupfilename)
OSError: [Errno 2] No such file or directory
root@third:~# sudo dpkg --configure -a
root@third:~# sudo apt-get search ufw
E: Invalid operation search
root@third:~# sudo apt-cache search ufw
python-ufw - Uncomplicated FireWall Python modules
ufw - program for managing a Netfilter firewall
gufw - graphical user interface for ufw
libnuclient-dev - The authenticating firewall [client development files]
libnuclient4 - The authenticating firewall [client library]
libnussl-dev - The authenticating firewall [SSL development files]
libnussl1 - The authenticating firewall [SSL library]
libpam-nufw - The authenticating firewall [PAM module]
nuapplet - Graphical client for NuFW
nuauth - The authenticating firewall [authentication daemon]
nuauth-extra - The authenticating firewall [extra modules]
nuauth-log-mysql - The authenticating firewall [MySQL log module]
nuauth-log-pgsql - The authenticating firewall [PostgreSQL log module]
nuauth-utils - The authenticating firewall [tools for admin]
nufw - The authenticating firewall [NFQUEUE daemon]
nutcpc - The authenticating firewall [client]
prelude-lml - Security Information Management System [ Log Agent ]
ufw-kde - KDE KCM to configure and control the Uncomplicated Firewall
ufw-kde-dbg - Debug files for ufw-kde.
root@third:~# sudo apt-get install ufw
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apport apport-symptoms libjs-jquery libpolkit-agent-1-0
libpolkit-backend-1-0 libpolkit-gobject-1-0 policykit-1 python-apport
python-dbus python-dbus-dev python-gi python-httplib2 python-keyring
python-launchpadlib python-lazr.restfulclient python-lazr.uri python-oauth
python-problem-report python-secretstorage python-simplejson python-wadllib
python-zope.interface python3-apport python3-problem-report
Use 'apt-get autoremove' to remove them.
Suggested packages:
rsyslog
The following NEW packages will be installed:
ufw
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 129 kB of archives.
After this operation, 749 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main ufw all 0.34~rc-0ubuntu2 [129 kB]
Fetched 129 kB in 0s (284 kB/s)
Preconfiguring packages ...
Selecting previously unselected package ufw.
(Reading database ... 38115 files and directories currently installed.)
Preparing to unpack .../ufw_0.34~rc-0ubuntu2_all.deb ...
Unpacking ufw (0.34~rc-0ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up ufw (0.34~rc-0ubuntu2) ...
Creating config file /etc/ufw/before.rules with new version
Creating config file /etc/ufw/before6.rules with new version
Creating config file /etc/ufw/after.rules with new version
Creating config file /etc/ufw/after6.rules with new version
root@third:~# curl -sS https://sockeye.cc/instavpn.sh | sudo bash
14:09:42 INFO: Checking your OS version...
14:09:42 INFO: OK
14:09:42 INFO: Installing packages...
14:09:50 INFO: OK
14:09:50 INFO: Applying sysctl parameters...
14:09:50 INFO: OK
14:09:50 INFO: Creating random passwords...
14:09:50 INFO: OK
14:09:50 INFO: Other config files...
14:09:51 INFO: OK
14:09:51 INFO: Adding script to rc.local...
14:09:52 INFO: OK
14:09:52 INFO: Installing web UI...
14:10:02 INFO: OK
14:10:02 INFO:
14:10:03 INFO: Browse web UI at http://199.118.222.199:8080/
14:10:03 INFO: Username: admin, password: 62b97eeae86288405f
14:10:03 INFO:
14:10:03 INFO: Completed. Run 'instavpn -h' for help
root@third:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
23:17:15 INFO: Installing web UI...
23:17:16 CRITICAL: Failed installing web UI
CRITICAL ERROR!
Failed installing web UI
Basically the question is listed in the topic. Given that WEB UI is used for generation of new users, passwords transferred over HTTP is not secure. Is that hard to implement secure HTTPS server with self-signed certificate?
Just wanted to say thanks. Great job ! 👍
Have you ever thought how to run multiple VPN Server in a container. Obviously with L3 Container Networking to give every container/pod a separate routable IP.
Any idea if this could be made compatible with 15.04 ? I'd be glad to help.
Захожу в веб-интерфейс, перехожу на вкладку "Пользователи", нажимаю "Сохранить" и вижу:
"Все поля должны быть длиной от 6 до 32 символов и содержать только латинские буквы и цифры".
А всё потому, что при открытии формы сразу же добавляется новая пустая строка, и проходит валидацию.
Добавьте плз проверку на заполненность/не заполненность строк, и если строка пустая - пропускать её при валидации.
Don't open web UI (IP:8080). Console access work.
Ubuntu 14.04.
Please, add support of Ubuntu 12.04
Hi,
Awesome working vpn thanks for it.
I can connect with windows 10 easily, but I cannot connect with my android phone (version 6.0)
Also my mikrotik router can connect but it does not resolve any adresses.
Any help?
Thanks.
Через веб-интерфейс не редактируются и не добавляются пользователи. Только первый в списке.
Show tail of log files in web UI
I installed instavpn on my server at Amazon AWS, opened udp ports : 1701/4500/500 , but I could not connect to vpn with my phone or pc. but i can see the web UI.
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.