Server for a minimal layer 3 tunnel over http(s).
Project description
Iro
Server for a minimal layer 3 tunnel over http(s).
Deploying with Docker
Instead of installing toori-server on the host, it can be deployed as a Docker container with much convenience.
Pull from GHCR:
sudo docker pull ghcr.io/kokseen1/toori-server:latest
Run the container:
sudo docker run -d --cap-add=NET_ADMIN -p 80:80 ghcr.io/kokseen1/toori-server
HTTPS
To deploy with HTTPS, run the container with a bind mount and pass the port and certs directory as arguments:
sudo docker run -d -v /etc/letsencrypt:/etc/letsencrypt --cap-add=NET_ADMIN -p 443:443 ghcr.io/kokseen1/toori-server 443 /etc/letsencrypt/live/toori.server/
Installation
pip3 install toori-server --no-binary :all:
Prerequisites
- Libtins (optional, will fallback to Scapy (slow) if not installed)
RST Packets
Because the Linux kernel sends a RST
to connections it did not establish, use the following command to ensure that outgoing packets are sent successfully:
sudo iptables -A OUTPUT -p tcp --tcp-flags RST RST -s <local address> -j DROP
See here for more information.
Usage
Run with root permissions:
iro <port>
Example with HTTPS:
iro 443 -c "/etc/letsencrypt/live/toori.server/"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
toori-server-1.1.5.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for toori_server-1.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ec9ac63b2740926756ad85fb1659aa2c45eeb090035b0cdeefbd05243400d4 |
|
MD5 | 5f2fe0b131aa0d648da9c325dae39e08 |
|
BLAKE2b-256 | a5686d7e79ad77cd29f4c0106b3c24e3392824bcaa315afa0c9d68521687ffe4 |