Hello guys, I need some help.
ASUS RT-AC68U with Merlin's build.
I placed the following script in /jfss/scripts/ , and afterwards chmod it to a+rx.
It is just a simple 'force-dns' script, which prevents users from using their own DNS server.
(scripts made with VI)
When I run the script manually, It runs like expected, but the script is not called at reboot. Not even 000nat-start in the /tmp folder.
My questions:
- Will every script in /jfss/scripts automatically be called at reboot, or should I make a change elsewhere to call the script at startup
- If every script is called at reboot, what could be wrong?
#!/bin/sh
touch /tmp/000nat-start
iptables -I PREROUTING -t nat -p udp -s `nvram get lan_ipaddr`/`nvram get lan_netmask` ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` --dport 53 -j DNAT --to-destination `nvram get lan_ipaddr`
touch /tmp/000nat-started
ASUS RT-AC68U with Merlin's build.
I placed the following script in /jfss/scripts/ , and afterwards chmod it to a+rx.
It is just a simple 'force-dns' script, which prevents users from using their own DNS server.
(scripts made with VI)
When I run the script manually, It runs like expected, but the script is not called at reboot. Not even 000nat-start in the /tmp folder.
My questions:
- Will every script in /jfss/scripts automatically be called at reboot, or should I make a change elsewhere to call the script at startup
- If every script is called at reboot, what could be wrong?
#!/bin/sh
touch /tmp/000nat-start
iptables -I PREROUTING -t nat -p udp -s `nvram get lan_ipaddr`/`nvram get lan_netmask` ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` --dport 53 -j DNAT --to-destination `nvram get lan_ipaddr`
touch /tmp/000nat-started