blob: 9cdabf01ebe5fdfad0cb052af00655fa51a7f7d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Fix default TTL and disable ipv6 making changes permanent
# TODO: replace wlan0 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.wlan0.disable_ipv6=1 \
| sudo tee /etc/sysctl.d/fix-ttl.conf -a
|