#reenable — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #reenable, aggregated by home.social.
-
CW: linux shell script tinkering
as it turns out, I was NOT smart, aliases can't work with spaces
instead I made this fish function !
function wg-quick
if test "$argv[1]" = "up"
sudo sed -i -e 's/^DNS=/#DNS=/' -e 's/^DNSOverTLS=/#DNSOverTLS=/' /etc/systemd/resolved.conf && sudo systemctl restart systemd-resolved #disable custom DNS when using wireguard because protonvpn doesn't allow it
command wg-quick up $argv[2..]
else if test "$argv[1]" = "down"
sudo sed -i -e 's/^#DNS=/DNS=/' -e 's/^#DNSOverTLS=/DNSOverTLS=/' /etc/systemd/resolved.conf && sudo systemctl restart systemd-resolved #reenable once we're done
command wg-quick down $argv[2..]
else
command wg-quick $argv
end
endNOW I am being smart (I think) :D
I completely hyperfocused on this out of the blue but hey, quality of life improvement, now I'm not reliant on proton's shitty clients, AND I no longer leak IPv6 traffic! Satisfactory :]