aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/ttl.sh
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-12-08 01:44:48 +0300
committereug-vs <eug-vs@keemail.me>2020-12-08 01:44:48 +0300
commit8115ca3e6e1c5f4d09019a798d6d75aad3413825 (patch)
treefd0a8f4a3b617cadc4688e1a08abfbfe803dfa6b /.local/bin/ttl.sh
parent10f5a135bcf85446cddf282abf30010c74320fd8 (diff)
downloaddotfiles-8115ca3e6e1c5f4d09019a798d6d75aad3413825.tar.gz
refactor: move screenshot to separate script
Diffstat (limited to '.local/bin/ttl.sh')
-rwxr-xr-x.local/bin/ttl.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/ttl.sh b/.local/bin/ttl.sh
new file mode 100755
index 0000000..2fa2a16
--- /dev/null
+++ b/.local/bin/ttl.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# 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
+