cmoskowitz
Occasional Visitor
oh I did but they are empty.
ok, thank you. I think I"m retarded, I enabled it but the /jffs/ directory is empty. Can I download them somewhere?
echo -e '#!/bin/sh\niptables -D FORWARD -m state --state INVALID -j DROP' > /jffs/scripts/firewall-start && chmod +x /jffs/scripts/firewall-start
iptables -D FORWARD -m state --state INVALID -j DROP
iptables -I FORWARD -m state --state INVALID --destination 10.8.0.0/24 -j ACCEPT
Sorry to double post.... seems the issue is slightly more annoying than I thought.
It appears these commands stop working after a set period of time... havent figured out quiet how long. But after some time I cant route to my remote networks anymore.
If I reapply the command all is working again.
Appreciate anybody who can help!
Where would I put this command?Try putting the command in nat-start
Where would I put this command?
I tried infront, after, or seperately to the commands and get back "bad argument 'nat-start'" or "nat-start not found"
Thanks!
Ok. thanks.
Think Ill leave it there. Not familiar or comfortable with Unix scripts.
Was hoping a simple fix to this.
Shame that these ASUS routers even need these changes making. Not had this issue with Netgear or Untangle.
Either way, I was just looking to simplify my network by getting the ASUS to do this routing. Will stick to Untangle for now.
1. Install the WinSCP utility
2. On the router Enable SSH va the GUI
#!/bin/sh
logger -s -t "($(basename $0))" $$ NAT customisation starting.... "[$@]"
iptables -I FORWARD -m state --state INVALID --destination 10.8.0.0/24 -j ACCEPT
logger -s -t "($(basename $0))" $$ NAT customisation complete.
http://www.snbforums.com/threads/ne...le-for-state-invalid-check-in-iptables.23946/0 0 DROP all -- vlan11 any anywhere anywhere state INVALID
If you are using windows simply
Code:1. Install the WinSCP utility 2. On the router Enable SSH va the GUI
In WinSCP set up SCP connection to your router. When the two window panes open in WinSCP, in the right pane navigate to /jffs/scripts
Hit shift+F4
Name the new file nat-start
then cut'n'paste the following
Code:#!/bin/sh logger -s -t "($(basename $0))" $$ NAT customisation starting.... "[$@]" iptables -I FORWARD -m state --state INVALID --destination 10.8.0.0/24 -j ACCEPT logger -s -t "($(basename $0))" $$ NAT customisation complete.
Save file, then right click nat-start then select Properties then put a tick mark in the three 'X' boxes and click OK.
Reboot router and you should see in Syslog the 'NAT customisation' messages...
Simples.
NOTE: The Custom Script / Config features provided by RMerlin, allows great flexibility on these ASUS routers without unnecessary GUI bloat that confuse ordinary users.
No Firmware is perfect, but if it was not for this scripting capability then I'm sure a lot of current owners would have reluctantly switched from ASUS to other vendors.
Hello,
I've the same problem and I solved by add
iptables -I FORWARD -m state --state INVALID --destination xxx.xxx.xxx.0/24 -j ACCEPT
With asus DSL-AC68U (no possibility of installing merlin firmware), I would like to know how to run a user defined sh script (like nat-start) on reboot.
Can you help me?
Thanks in advance.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!