1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus 2018-02-22 22:32:09 +01:00
parent 03b8e9a6cf
commit 6cedb31490
9 changed files with 29 additions and 40 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
HOST="proof.ovh.net"
trap : HUP INT TERM
curl http://$HOST/files/10Gio.dat >/dev/null || echo

View file

@ -1,24 +0,0 @@
#!/bin/sh
# vim: set noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 :
HOST="proof.ovh.net"
_ipt() {
iptables -w -t nat "$1" socks_emitted_by_myself \
-d "$HOST" -j socks_redir -m comment --comment "Test download proof"
}
_chain_exists() {
iptables -w -t nat -nL "$1" 1>/dev/null 2>/dev/null
}
if ! _chain_exists "socks_emitted_by_myself" || ! _chain_exists "socks_redir"; then
echo "Couldn't find the iptables chain to plug myself into. Is ss-redir running?"
return 1
fi
trap : HUP INT TERM
_ipt -A
curl http://$HOST/files/10Gio.dat >/dev/null || echo
_ipt -D

View file

@ -0,0 +1,11 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
set luci.diag.ping=openmptcprouter.com
set luci.diag.dns=openmptcprouter.com
set luci.diag.route=openmptcprouter.com
commit luci
EOF
rm -f /tmp/luci-indexcache
exit 0