Giter Club home page Giter Club logo

instavpn's Introduction

sockeye44

test

instavpn's People

Contributors

b1naryth1ef avatar kira-korshun avatar samlty avatar sockeye44 avatar svity avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

instavpn's Issues

Error if server have more than one IP

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)

Docker image

Can you make docker image based ubuntu? Or Dockerfile?

Зависает на INFO: Adding script to rc.local

Подскажите, куда копать. 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 use the server / or set up client

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

It just doesn't work anymore :( !

Alright so the whole package worked pretty well. Then today I tried to connect and got this error :
capture d ecran 2014-12-16 a 13 32 06
Which means : "The L2TP-VPN server didn't respond. Try reconnecting."
I can still SSH into the server and do instavpn list. I triple checked the credentials, they all work.
Any idea ?

редактирование Web

Здравствуй бро, начал разбираться, хотел поменять в веб интерфейсе css .. но почему то не че гоне выходит.. в чем может быть дело,.. я чего то не догоняю повидемум .
Ибо файл зила и сайбердак показывает что файлы отредактированы . но не чеге в вебе не меняется ..

Мб где кешируеться все это дело?

Tor

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))

win10 не подключается к VPN

Здравствуйте.

Делаю как тут https://kb.iweb.com/hc/en-us/articles/230267348 , но при подключении к серверу, у меня тупа не работает интернет, ничего не пингуется.

Админ панель работает, пользователь есть ,общий ключ тоже, а вот с подключением беда.

bug in setup-vpn.sh

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.

CRITICAL: Failed to install packages

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??

Static IP assignment

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!

Need help to fix latest version

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

install issue about ssl

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```

Change web UI port

It would be nice to have console command to change popular 8080 port to something else.

I want to run it on debian

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.

Not working on iOS

Hello,
I have setup instavpn on my server, it works well on windows8, but doesn't work on iOS.

Had to install ufw on vanilla Trusty

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

Failed installing web UI

23:17:15 INFO: Installing web UI...
23:17:16 CRITICAL: Failed installing web UI
CRITICAL ERROR!
Failed installing web UI

HTTPS with self-signed cert by default for web panel?

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?

Run in Container

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.

Ubuntu 15.04

Any idea if this could be made compatible with 15.04 ? I'd be glad to help.

Валидация формы

Захожу в веб-интерфейс, перехожу на вкладку "Пользователи", нажимаю "Сохранить" и вижу:
"Все поля должны быть длиной от 6 до 32 символов и содержать только латинские буквы и цифры".

А всё потому, что при открытии формы сразу же добавляется новая пустая строка, и проходит валидацию.

Добавьте плз проверку на заполненность/не заполненность строк, и если строка пустая - пропускать её при валидации.

Windows 8.1 error 789

Installed on a freshly created DigitalOcean droplet (Ubuntu 14.04 x64).

Created a VPN connection in Windows 8.1 with default parameters, just changed Pre-Shared Key and chose L2TP/IPsec.

With these parameters I keep getting an error 789.

image

Maybe I'm missing something.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.