Can I use Comodo fw for allows some nets and for block all others IPs? Yes, I can.
Every day I can get new list with IPs, which I must allowed. ftp://ftp.corbina.net/pub/routelist.txt
How I can clear old rules and create new rules automatically?
For example, write simple script, please,
how to clear top (ID 0-1) 2 rules
add 3 new rules on top (ID 0-2): allow all traffic for 41.220.80.0/21, 57.87.0.0/17 and 57.84.0.0/19
old rule with ID 2 should be now ID 3 or will be two rules with ID 2.
Do you want a script to change the settings in COMODO?
All of those Ip’s in that text file would be considered dodgy (Russain sites ??)
If you only want a certain list of IP’s, edit the rule that allows communications out, to the appropriate IP addresses instead of “Any”.
If you want a script to be written IMO you are going to have to be 100% clear as to what you want, let alone let anyone here decide whether it is possible.
I have my 1U sever on colocation in Corbina (Moscow) datacenter. I pay $45/month for colocation (All Russian and non Russian Out traffic is free, Russian In traffic is free too and $20/for-every-Gb-of-non-Russian-In-traffic).
So, I’d like to block all In non Russian traffic to my server or I’ll pay big sum every month to my provider.
Script should every 24 hours make first 0-1233 rules (number may changed) and change ID for rules after them (1234-1238).
So may be comodo makes fw-config.exe version with API for easy
creation new network rules
changing id
clear rules
another functions
Yes, I know, script can go to registery and manually create, change or del keys, but it is not bug-free solution. Becides, Comodo can change structure in new versions…
example:
0. Allow all In traffic for 41.220.80.0/21 (russian net)
Allow all In traffic for 57.87.0.0/17 (russtian net)
Allow all In traffic for 57.84.0.0/19 (russian net)
bla-bla-bla
… bla-bla-bla
bla-bla-bla
Allow all In traffic for comodo-update-IP (for comodo firewall updates)