all repos — dotfiles @ 211879bfe6b63885ddb4fb51aa8fc7ecb66da18b

my *nix dotfiles

scripts/nschange.sh is now a full-fledged pre game script
icyphox icyph0x@protonmail.com
Wed, 24 Jan 2018 19:53:24 +0530
commit

211879bfe6b63885ddb4fb51aa8fc7ecb66da18b

parent

9dafa2eff4ee1e271e541d4f2cae25dd3714beea

1 files changed, 13 insertions(+), 4 deletions(-)

jump to
M scripts/nschange.shscripts/nschange.sh

@@ -1,7 +1,16 @@

#!/bin/bash -# run as root +# create a SOCKS proxy +ssh -D 8008 boop + +# change nameservers +sudo echo nameserver 8.8.8.8 > /etc/resolv.conf + +# write-lock the file (even root can't edit it) +sudo chattr +i /etc/resolv.conf + +# kill dhcpcd (messes with IP) +sudo systemctl stop dhcpcd.sevice -echo nameserver 8.8.8.8 > /etc/resolv.conf -chattr +i /etc/resolv.conf -systemctl stop dhcpcd.sevice +# start VPN +sudo openvpn --config ~/icy.ovpn