We have an application where the astaro surf protection filter is not in front of the users. We use iptables to forward port 80 to the content filter remotely. The problem is that we don't want the http proxy to be open to just anyone but the locations we do want it open to change all the time because they are on dynamic connections and spread across many service providers. This makes even listing the network ranges for each one a pain.
We do however have a list that can be wget'd that has the current IP addresses. I am wondering if there is a way we can (through a script) tell the http proxy about changes to the IP addresses? I thought about writing a script that wgets the file and rebuilds an iptables table allowing only our current IPs to access port 8080 whenever there are changes to this list, but I thought there might be some API calls or special files somewhere instead. Anyone have any idea if this is possible? I am looking to do something similar with the SMTP proxy.
Thanks.
This thread was automatically locked due to age.
