second
This commit is contained in:
parent
19597c9297
commit
d29b1e4542
128 changed files with 15399 additions and 61 deletions
22
templates/Debian/Gateway/etc/rc.local
Normal file
22
templates/Debian/Gateway/etc/rc.local
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue