How To Add Custom Startup Scripts To The UTM
Syneto UTM is able to run your custom startup scripts that get executed immediately after the normal startup sequence finishes. Using those scripts you are able to configure certain aspects of the Syneto UTM that are not configurable from the current web interface or using the config command. For the sake of the argument, let’s assume you want to do a neat trick: make the Syneto UTM invisible to the traceroute command. To do this you will have to increase the TTL value of every packet that passes the UTM. But setting this is not possible using either the web configuration interface or the config command. What you will need this time is this script:
#!/bin/bash
/usr/local/sbin/iptables -t mangle -I PREROUTING -j TTL --ttl-inc 1- Connect to Syneto UTM using SSH
-
ssh root@192.168.1.1
-
- Create a directory called /config/local
-
mkdir /config/local
-
- Create a file to hold the script
-
mc -e /config/local/set_transparent_traceroute
-
- Copy/Paste the content of the above script and exit editor saving the file using F10 (or ESC twice)
- Make the script executable
-
chmod 755 /config/local/set_transparent_traceroute
-