iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bunch of updates and fixes
[distro-setup]
/
untrusted-network
diff --git
a/untrusted-network
b/untrusted-network
index 8fc3d7baedb561b8669d4e70e2d59b29083b2298..3d8ac97d668cf3ebe7a530f9096a6c543161f90c 100755
(executable)
--- a/
untrusted-network
+++ b/
untrusted-network
@@
-3,7
+3,7
@@
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
set -eE -o pipefail
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
-[[ $EUID == 0 ]] || exec sudo -E "$
BASH_SOURCE
" "$@"
+[[ $EUID == 0 ]] || exec sudo -E "$
{BASH_SOURCE[0]}
" "$@"
# Usage: use when switching from a trusted network to an untrusted one,
# like public wifi.
# Usage: use when switching from a trusted network to an untrusted one,
# like public wifi.
@@
-14,6
+14,8
@@
server=8.8.8.8
server=2001:4860:4860::8844
server=2001:4860:4860::8888
no-resolv
server=2001:4860:4860::8844
server=2001:4860:4860::8888
no-resolv
+# https://ret2got.wordpress.com/2018/01/19/how-your-ethereum-can-be-stolen-using-dns-rebinding/
+stop-dns-rebind
EOF
systemctl reload dnsmasq
EOF
systemctl reload dnsmasq