M
M
mrdragon90002018-09-14 21:20:13
linux
mrdragon9000, 2018-09-14 21:20:13

How to add ttl change script to autoload?

After updating linux mint to version 19, I can't add a script to autorun

sudo iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65

I created a file in /etc/init.d/ttl.sh and added some code there, but it didn't work. Then I put it in /etc/profile.d/ttl.sh , but it still doesn't work. Error message pops up when loading

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zlo1, 2018-09-14
@mrdragon9000

add to /etc/sysctl.conf
net.ipv4.ip_default_ttl=65

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question