Ticket #1283 (new enhancement)

Opened 2 weeks ago

Last modified 2 weeks ago

wanup scripts are being executed after rc_firewall

Reported by: frater Assigned to: somebody
Priority: major Milestone:
Component: component1 Version:
Keywords: Cc:

Description

Someone asked me to create a script to block Asia. I was able to create a script which is able to create a blocklist for any given set of countries. It will also combine these subnets to big subnets if this is possible. This is all working...

This script also modifies the variable rc_firewall.

I would rather keep rc_firewall clean.

I can create the chain using a symbolic link I create in /tmp/etc/config/00xxx.wanup I can even use multiple files/links there. Somehow I can't control in which order they are being executed. It would be nice if it works the same like S* scripts.

But some tests also showed these scripts are being executed AFTER rc_firewall. This means I can't reference a chain which is being created by a *.wanup script.

I would like to put this in my rc_firewall

iptables -I FORWARD -p tcp --dport 25 --dstif br0 -j asia

Is there already or can you create an extension which will be used before rc_firewall is executed?

wget http://wd.mirmana.com/S95asiablock (only wget works)

Change History

11/06/09 22:56:21 changed by mixmasta

Yawn...

11/06/09 23:15:09 changed by frater

get a life

11/06/09 23:41:19 changed by crashfly

I think this would be something useful to have. It underscores modularity in DD-WRT. It would also make the capabilities more useful.