What's new

[SOLVED] JSON parse failed

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I just found out I have to apply the firewall rule again after router reboot for the port to be open again.
Is that normal or is there a way to make it enable automatic after reboot?
 
Do you have 'Enable JFFS custom scripts and configs' set to 'Yes' under Administration > System?
 
Then check your syslog to make sure it finds the firewall-start script....will look like this

Dec 31 17:01:04 custom script: Running /jffs/scripts/firewall-start (args: eth0)

Also, just for safety's sake, make sure it's in the right format....run

dos2unix /jffs/scripts/firewall-start
 
Its there:
Aug 6 00:05:11 custom script: Running /jffs/scripts/firewall-start (args: eth0)

I also run the command.
 
Then there's a bug in your firewall-start script.....a guess.....take out the tab (or spaces) before the shebang on the first line.
 
I think you just solved my problem! :)

I removed the space as you suggested, restarted the router and I still have the port open.

Thank you! :-D
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top