I know just enough to accidentally do very terrible things to my system, but I follow directions very well.
I have an Asus RT-AC68U router flashed to merlin firmware version RT-AC68U_380.66_4
I want to insert an iptables script to automatically set the TTL value to 65 for all connected devices.
In Ubuntu, I know the command to set the TTL to 65 for my system, which I have successfully done.
If the same holds true for the script I need to insert to the router, then I believe it would look something like this:
I have read over the wiki for merlin on the github:
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
What I cannot discern is how to actually interact with the jss partition in order to place a script there? That github page states to ensure your script is executable with a chmod command:
Where do I insert this command?
So far I have formatted the JSS partition and rebooted the router.
I need to know if my script above is sufficient to achieve what I want, the particulars on how to get it where it needs to go, and how to ensure its executable.
I really appreciate any help on this.
Cheers.
I have an Asus RT-AC68U router flashed to merlin firmware version RT-AC68U_380.66_4
I want to insert an iptables script to automatically set the TTL value to 65 for all connected devices.
In Ubuntu, I know the command to set the TTL to 65 for my system, which I have successfully done.
Code:
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65
If the same holds true for the script I need to insert to the router, then I believe it would look something like this:
Code:
#!/bin/sh
iptables -t mangle -A POSTROUTING -j TTL --ttl-set 65
I have read over the wiki for merlin on the github:
https://github.com/RMerl/asuswrt-merlin/wiki/User-scripts
What I cannot discern is how to actually interact with the jss partition in order to place a script there? That github page states to ensure your script is executable with a chmod command:
Code:
chmod a+rx /jffs/scripts/*
Where do I insert this command?
So far I have formatted the JSS partition and rebooted the router.
I need to know if my script above is sufficient to achieve what I want, the particulars on how to get it where it needs to go, and how to ensure its executable.
I really appreciate any help on this.
Cheers.