Skip to content

pdaxrom/lilitun

 
 

Repository files navigation

lilitun - encrypted vpn tunnel over http.

-------

Usage:

Usage:
./lilitun -i <ifacename> [-s|-c <serverIP>] [-p <port>] [-u|-a] [-d]
./lilitun -h

-i <ifacename>: Name of interface to use (mandatory)
-s|-c <serverIP>: run in server mode (-s), or specify server address (-c <serverIP>) (mandatory)
-p <port>: port to listen on (if run in server mode) or to connect to (in client mode), default 55555
-k <keyfile>: aes key 16, 24 or 32 bytes
-u|-a: use TUN (-u, default) or TAP (-a)
-w: path to web directories (/opt/lilitun by default)
-n: web server name (Apache/2.4.18 (Ubuntu) by default)
-d: outputs debug information while running
-e: print syslog messages to stderr
-h: prints this help text

Server side example:

    dd if=/dev/urandom of=key.bin bs=1 count=32
    ip tuntap add lil0 mode tun
    ip link set lil0 up
    ip addr add 10.20.0.1/24 dev lil0
    ./lilitun -i lil0 -s -k key.bin -w $PWD -d

    browse http://<server_ip to check web server

Client example:

    copy key.bin from server
    ip tuntap add lil0 mode tun
    ip link set lil0 up
    ip addr add 10.20.0.2/24 dev lil0
    ./lilitun -i lil0 -c <server_ip> -k key.bin -d

    ping 10.20.0.1

About

Encrypted VPN via HTTP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 88.8%
  • HTML 7.6%
  • Shell 1.8%
  • Other 1.8%