Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Torify the system with multiple tor exit nodes and load balance.

License

NotificationsYou must be signed in to change notification settings

jamazi/jailbox

Repository files navigation

Redirect Linux tcp connections through multiple load-balanced tor connections with ability to use direct internet for specific programs.

Installation:

Manual:

  • Install Tor:

    debian:

      sudo apt install tor
  • Clone this repository:

      git clone https://github.com/jamazi/jailbox.git
  • Run setup script:

      sudo ./setup

Archlinux users:

    yay -S jailbox-git

Usage:

  • Edit configurations(optional):

      sudo nano /etc/jailbox/config
  • Start jailbox:

      sudo jailbox-start

    or:

      sudo systemctl start jailbox
  • Run program with direct internet connection, examples:

    shell on current user:

      sudo -E unjailbox

    firefox with specific profile:

      sudo -E unjailbox -c "firefox --new-instance -P clearnet"

    curl on specific user:

      sudo unjailbox -u root curl -v ifconfig.me
  • Stop jailbox:

      sudo jailbox-stop

    or:

      sudo systemctl stop jailbox

Some usefull config:

default_nameservers: this is the default dns servers used for unjailed programs or when jailbox is stopped.

tor_count: how many tor connections should be used to load balance your connections through them.

allowed_ports: accept incomming tcp connections to this port (like if you want to accept ssh connections).

allowed_input_lan: accept any inbound connections from this address list (eg:allowed_input_lan="192.168.0.0/16").

restrictive: ifnot0 jailbox will drop packets before they reach other filter rules, otherwise jailbox will deliver packets to other filter rules.

allow_udp: if1 jailbox will allow outgoing udp connectionswithout being torifyed.

allow_ping: if1 jailbox will allow outgoing ping requestswithout being torifyed.

PreStart/PostStart/PreStop/PostStop: Command to run automatically before or after jailbox start/stop, jailbox-post-start and jailbox-pre-stop scripts can be used here to prevent leak while restarting jailbox.

About

Torify the system with multiple tor exit nodes and load balance.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp