michael249478
New Around Here
Hello
I have sereval subnet on my asus merlin router
Wan 192.168.0.0/24 | 0.0.0.0
Lan 192.168.1.0/24
Iot (Wifi) 192.168.2.0/24
Guest(Wifi) 192.168.3.0/24
The actuel config page "Advanced_Firewall_Content.asp" allow only a whitelist or blacklist and all rules are apply to Lan interface.
I would like to have a configuration interface to permit more custom rules, for examples:
I am a newbe to the asp language, but a already make a scripts in php, python...
I was able to make a copy of Advanced_Firewall_Content.asp to user20.asp, and to do some change to this GUI to change the layout and a fields like ACTION, RuleNumber.
But i dont understand how to apply the rules:
I see the rules are store on "filter_lwlist_array" nvram variable
I see the from is submit by "start_apply.htm"
But i don't see in "start_apply.htm", how to write a data to nvram and how to generate iptables rules
I someone can help me
Thanks in advance for the help
I have sereval subnet on my asus merlin router
Wan 192.168.0.0/24 | 0.0.0.0
Lan 192.168.1.0/24
Iot (Wifi) 192.168.2.0/24
Guest(Wifi) 192.168.3.0/24
The actuel config page "Advanced_Firewall_Content.asp" allow only a whitelist or blacklist and all rules are apply to Lan interface.
I would like to have a configuration interface to permit more custom rules, for examples:
RuleNumber | SRC | SRC_PORT | DEST | DEST_PORT | PROTO | ACTION |
1 | 192.168.1.0/24 | * | * | * | * | ACCEPT |
2 | 192.168.2.0/24 | * | 192.168.1.1/24 | 8888 | TCP | ACCEPT |
3 | 192.168.2.0/24 | * | 192.168.0.0/16 | * | * | DROP |
4 | 192.168.2.0/24 | * | * | * | * | ACCEPT |
5 | 192.168.3.0/24 | 192.168.0.0/16 | DROP | |||
6 | 192.168.3.0/24 | * | * | * | * | ACCEPT |
I am a newbe to the asp language, but a already make a scripts in php, python...
I was able to make a copy of Advanced_Firewall_Content.asp to user20.asp, and to do some change to this GUI to change the layout and a fields like ACTION, RuleNumber.
But i dont understand how to apply the rules:
I see the rules are store on "filter_lwlist_array" nvram variable
I see the from is submit by "start_apply.htm"
But i don't see in "start_apply.htm", how to write a data to nvram and how to generate iptables rules
I someone can help me
Thanks in advance for the help