Quantcast
Channel: SmallNetBuilder Forums
Viewing all articles
Browse latest Browse all 6885

The firewall-start script is not running

$
0
0
Hi,

I have the RT-AC66U and I've installed Merlin's version "RT-AC66U_3.0.0.4_266.23b". I'm trying to open the port 9091 so I can access the transmission client from WAN.

On the router UI I've enabled "jffs partition" and "Format JFFS partition at next boot" and I've rebooted the router.
then
Code:

mkdir /jffs/scripts
said that nothing is created since its already there

next...
Code:

wget -c -O /jffs/scripts/firewall-start http://tinyurl.com/firewall-start
chmod a+rx /jffs/scripts/firewall-start

Then I've rebooted and tried to see if my port 9091 is now opened.
It was not!!! :mad:
I've disabled the firewall and checked again. Now it was opened.

I've tried several times the entire procedure but as long as the firewall is active, the port is not opened.

If I run manually the command:
Code:

iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
then everything starts to work, even when the firewall is activated.

Then TeHashX suggested to add the following line in the firewall-start script:
Code:

logger -t "$0" "Hey, I'm working!"
and after reboot I've checked the log and I could not found my test log message. So it looks like the script is not executed at all.



I also tried to execute manually the script with
Code:

sh firewall-start
and I get the following result
Code:

'ptables v1.3.8: Invalid target name `ACCEPT
Try `iptables -h' or 'iptables --help' for more information.
'ptables v1.3.8: Invalid target name `ACCEPT
Try `iptables -h' or 'iptables --help' for more information.
'ptables v1.3.8: Invalid target name `ACCEPT
Try `iptables -h' or 'iptables --help' for more information.

plus my test log entry in the log file.
:mad::mad::mad:

So, any idea what I could do next?

Viewing all articles
Browse latest Browse all 6885

Trending Articles