|
@@ -6995,7 +6995,7 @@ function route_outgoing_traffic_through_tor {
|
6995
|
6995
|
|
6996
|
6996
|
### set variables
|
6997
|
6997
|
# Destinations you don't want routed through Tor
|
6998
|
|
- _non_tor="192.168.4.0/24 192.168.1.0/24 192.168.0.0/24"
|
|
6998
|
+ _non_tor="192.168.0/24.0/24"
|
6999
|
6999
|
|
7000
|
7000
|
# The user that Tor runs as
|
7001
|
7001
|
_tor_uid="debian-tor"
|
|
@@ -7004,7 +7004,7 @@ function route_outgoing_traffic_through_tor {
|
7004
|
7004
|
_trans_port="9040"
|
7005
|
7005
|
|
7006
|
7006
|
# Your internal interface
|
7007
|
|
- _int_if="eth0"
|
|
7007
|
+ _int_if="br0"
|
7008
|
7008
|
|
7009
|
7009
|
# Ensure that redirects are possible
|
7010
|
7010
|
sed -i "s/net.ipv4.conf.all.accept_redirects = 0/net.ipv4.conf.all.accept_redirects = 1/g" /etc/sysctl.conf
|
|
@@ -7012,12 +7012,12 @@ function route_outgoing_traffic_through_tor {
|
7012
|
7012
|
sed -i "s/net.ipv4.conf.all.accept_source_route = 0/net.ipv4.conf.all.accept_source_route = 1/g" /etc/sysctl.conf
|
7013
|
7013
|
sed -i "s/net.ipv4.conf.default.rp_filter=1/#net.ipv4.conf.default.rp_filter=1/g" /etc/sysctl.conf
|
7014
|
7014
|
sed -i "s/net.ipv4.conf.all.rp_filter=1/#net.ipv4.conf.all.rp_filter=1/g" /etc/sysctl.conf
|
7015
|
|
- #sed -i 's/net.ipv4.icmp_echo_ignore_all = 1/net.ipv4.icmp_echo_ignore_all = 0/g' /etc/sysctl.conf
|
|
7015
|
+ sed -i 's/net.ipv4.icmp_echo_ignore_all = 1/net.ipv4.icmp_echo_ignore_all = 0/g' /etc/sysctl.conf
|
7016
|
7016
|
|
7017
|
|
- #iptables --flush
|
7018
|
|
- #iptables --table nat --flush
|
7019
|
|
- #iptables --delete-chain
|
7020
|
|
- #iptables --table nat --delete-chain
|
|
7017
|
+ iptables --flush
|
|
7018
|
+ iptables --table nat --flush
|
|
7019
|
+ iptables --delete-chain
|
|
7020
|
+ iptables --table nat --delete-chain
|
7021
|
7021
|
|
7022
|
7022
|
### Set iptables *nat
|
7023
|
7023
|
iptables -t nat -A OUTPUT -o lo -j RETURN
|