This commit is contained in:
emdee 2024-01-06 03:08:22 +00:00
parent 19597c9297
commit d29b1e4542
128 changed files with 15399 additions and 61 deletions

View file

@ -0,0 +1,22 @@
#!/bin/sh
setfont /usr/share/consolefonts/Lat15-TerminusBold22x11.psf.gz
echo nameserver 127.0.0.1> /etc/resolv.conf
IP=`ifconfig eth0 | grep inet | sed -e 's/.*inet //' -e 's/ .*//'`
[ $? -eq 0 ] || return 1$?
[ -n "$IP" ] || return 2$?
if ! iptables-save | grep -q 'iptables -A INPUT -i eth0 -p udp -m udp --dport 9053 -j ACCEPT' ; then
iptables -D INPUT -j DROP
iptables -A INPUT -i eth0 -p udp -m udp --dport 9053 -j ACCEPT
iptables -A INPUT -j DROP
fi
ps ax | grep -q 'su -c tor -s /bin/sh debian-tor' || \
sh /usr/local/bin/proxy_whonix_tor_start.bash
dig @$IP -p 9053 -b $IP google.com
exit 0