I am required to block access to all web sites except selected ones. The built-in access restrictions cannot be used in this manner so it'll have to be done through a script.
I investigated the access restrictions in Tomato and it seems like each rule adds a new chain in iptables.
Chain rres00 (1 references)
target prot opt source destination
REJECT tcp — anywhere anywhere web —hore "blocked.com" reject-with tcp-reset
Does anyone know how to add rules in iptables to allow a given URL and block the others?