diff --git a/simpleadmin/systemd/simpleadmin_httpd.service b/simpleadmin/systemd/simpleadmin_httpd.service deleted file mode 100644 index 50e9300..0000000 --- a/simpleadmin/systemd/simpleadmin_httpd.service +++ /dev/null @@ -1,11 +0,0 @@ -simpleadmin_httpd.service[Unit] -Description=SimpleAdmin httpd service -After=network.target - -[Service] -Type=simple -ExecStart=/usr/sbin/httpd -f -h /usrdata/simpleadmin/www -p 8080 -ExecStop=/bin/kill -WINCH ${MAINPID} - -[Install] -WantedBy=multi-user.target \ No newline at end of file diff --git a/simpleadmin/www/cgi-bin/get_ttl_status.old b/simpleadmin/www/cgi-bin/get_ttl_status.old new file mode 100644 index 0000000..03d366b --- /dev/null +++ b/simpleadmin/www/cgi-bin/get_ttl_status.old @@ -0,0 +1,20 @@ +#!/bin/bash + +# Check iptables for ttlvalue +ttlvalue=$(iptables -t mangle -vnL | awk '/TTL/ {print $13; exit}') +ttlenabled=true; + +# Set Variables +if [ -z "${ttlvalue}" ]; then + ttlvalue=0 + ttlenabled=false +fi + +echo "Content-type: text/json" +echo "" +cat </dev/null || true + ip6tables -t mangle -D POSTROUTING -o rmnet+ -j HL --hl-set ${ttlcheck} &>/dev/null || true + fi + + # Echo TTL to file + echo $setTTL > /usrdata/simplefirewall/ttlvalue + + # Set Start Service + /usrdata/simplefirewall/ttl-override start +fi + + + +# Check iptables for ttlvalue +ttlvalue=$(iptables -t mangle -vnL | grep TTL | awk '{print $13}') +ttlenabled=true; + +# Set Variables +if [ -z "${ttlvalue}" ]; then + ttlvalue=0 + ttlenabled=false +fi + +echo "Content-type: text/json" +echo "" +cat <