-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Torbox mini integration into TorBox v.0.5.4 ALPHA
This integration should reduce the complexity for further TorBox development
- Loading branch information
Showing
28 changed files
with
1,755 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This configuration file was modified by TorBox | ||
|
||
default-lease-time 600; | ||
max-lease-time 7200; | ||
ddns-update-style none; | ||
authoritative; | ||
|
||
subnet 192.168.42.0 netmask 255.255.255.0 { | ||
range 192.168.42.10 192.168.42.19; | ||
option broadcast-address 192.168.42.255; | ||
option routers 192.168.42.1; | ||
option domain-name "local"; | ||
option domain-name-servers 192.168.42.1; | ||
} | ||
|
||
subnet 192.168.43.0 netmask 255.255.255.0 { | ||
range 192.168.43.10 192.168.43.19; | ||
option broadcast-address 192.168.43.255; | ||
option routers 192.168.43.1; | ||
option domain-name "local"; | ||
option domain-name-servers 192.168.43.1; | ||
} | ||
|
||
subnet 192.168.44.0 netmask 255.255.255.0 { | ||
range 192.168.44.10 192.168.44.19; | ||
option broadcast-address 192.168.44.255; | ||
option routers 192.168.44.1; | ||
option domain-name "local"; | ||
option domain-name-servers 192.168.44.1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by iptables-save v1.8.7 on Sun Dec 24 13:26:09 2023 | ||
*filter | ||
:INPUT DROP [30:6628] | ||
:FORWARD DROP [0:0] | ||
:OUTPUT ACCEPT [3859:3275084] | ||
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | ||
-A INPUT -m state --state INVALID -j DROP | ||
-A INPUT ! -s 192.168.0.0/16 -i wlan0 -j LOG --log-prefix "SPOOFED PKT " | ||
-A INPUT ! -s 192.168.0.0/16 -i eth1 -j LOG --log-prefix "SPOOFED PKT " | ||
-A INPUT ! -s 192.168.0.0/16 -i usb0 -j LOG --log-prefix "SPOOFED PKT " | ||
-A INPUT ! -s 192.168.0.0/16 -i wlan0 -j DROP | ||
-A INPUT ! -s 192.168.0.0/16 -i eth1 -j DROP | ||
-A INPUT ! -s 192.168.0.0/16 -i usb0 -j DROP | ||
-A INPUT -i lo -j ACCEPT | ||
-A INPUT -i wlan0 -j ACCEPT | ||
-A INPUT -i eth1 -j ACCEPT | ||
-A INPUT -i usb0 -j ACCEPT | ||
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT | ||
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT | ||
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT | ||
-A INPUT -p tcp -m tcp --dport 1194 -j ACCEPT | ||
-A INPUT -p udp -m udp --dport 1194 -j ACCEPT | ||
-A FORWARD -m state --state INVALID -j DROP | ||
-A FORWARD -p icmp -m icmp --icmp-type 8 -j ACCEPT | ||
-A FORWARD -p icmp -m icmp --icmp-type 0 -j ACCEPT | ||
-A OUTPUT -m conntrack --ctstate INVALID -j DROP | ||
-A OUTPUT -m state --state INVALID -j DROP | ||
-A OUTPUT ! -s 127.0.0.1/32 ! -d 127.0.0.1/32 ! -o lo -p tcp -m tcp --tcp-flags RST,ACK RST,ACK -j DROP | ||
COMMIT | ||
# Completed on Sun Dec 24 13:26:09 2023 | ||
# Generated by iptables-save v1.8.7 on Sun Dec 24 13:26:09 2023 | ||
*nat | ||
:PREROUTING ACCEPT [0:0] | ||
:INPUT ACCEPT [0:0] | ||
:OUTPUT ACCEPT [0:0] | ||
:POSTROUTING ACCEPT [0:0] | ||
-A PREROUTING -d 192.168.42.1/32 -i wlan0 -p tcp -j REDIRECT | ||
-A PREROUTING -d 192.168.43.1/32 -i eth1 -p tcp -j REDIRECT | ||
-A PREROUTING -d 192.168.44.1/32 -i usb0 -p tcp -j REDIRECT | ||
-A PREROUTING -d 10.192.0.0/10 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -p tcp -m tcp --dport 80 -j LOG --log-prefix "HTTP-REQUEST TCP " --log-tcp-options --log-ip-options | ||
-A PREROUTING -p udp -m udp --dport 80 -j LOG --log-prefix "HTTP-REQUEST UDP " --log-ip-options | ||
-A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 0.0.0.0 | ||
-A PREROUTING -p udp -m udp --dport 80 -j DNAT --to-destination 0.0.0.0 | ||
-A PREROUTING -i wlan0 -p tcp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i eth1 -p tcp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i usb0 -p tcp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i wlan0 -p udp -m udp --dport 53 -j REDIRECT --to-ports 9053 | ||
-A PREROUTING -i eth1 -p udp -m udp --dport 53 -j REDIRECT --to-ports 9053 | ||
-A PREROUTING -i usb0 -p udp -m udp --dport 53 -j REDIRECT --to-ports 9053 | ||
-A PREROUTING -i wlan0 -p udp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i eth1 -p udp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i usb0 -p udp -j REDIRECT --to-ports 9040 | ||
-A PREROUTING -i usb0 -j LOG --log-prefix "FALLEN THROUGH PREROUTING " | ||
-A PREROUTING -i eth1 -j LOG --log-prefix "FALLEN THROUGH PREROUTING " | ||
-A PREROUTING -i usb0 -j LOG --log-prefix "FALLEN THROUGH PREROUTING " | ||
-A POSTROUTING -o eth0 -j MASQUERADE | ||
COMMIT | ||
# Completed on Thu Jul 6 09:15:23 2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This configuration file was modified by TorBox | ||
|
||
# interfaces(5) file used by ifup(8) and ifdown(8) | ||
# Include files from /etc/network/interfaces.d: | ||
# source-directory /etc/network/interfaces.d | ||
|
||
auto lo | ||
auto wlan0 | ||
auto usb0 | ||
|
||
allow-hotplug usb0 | ||
|
||
iface wlan0 inet dhcp | ||
|
||
iface usb0 inet static | ||
address 192.168.44.1 | ||
netmask 255.255.255.0 | ||
|
||
iface usb0 inet6 auto | ||
|
||
wireless-power off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.