From cf3eefda31e98d4725a64000861a388ba7708c62 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 21 Jul 2021 15:53:52 +0300 Subject: feat!: move to GNU Stow, remove wiki --- scripts/.local/bin/ttl.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/.local/bin/ttl.sh (limited to 'scripts/.local/bin/ttl.sh') diff --git a/scripts/.local/bin/ttl.sh b/scripts/.local/bin/ttl.sh new file mode 100755 index 0000000..20c13e5 --- /dev/null +++ b/scripts/.local/bin/ttl.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Fix default TTL and disable ipv6 making changes permanent +# TODO: replace wlo1 with automatically detected device name + +sudo sysctl \ + net.ipv4.ip_default_ttl=65 \ + net.ipv6.conf.all.disable_ipv6=1\ + net.ipv6.conf.default.disable_ipv6=1 \ + net.ipv6.conf.wlo1.disable_ipv6=1 \ + | sudo tee /etc/sysctl.d/fix-ttl.conf -a + -- cgit v1.2.3