How do I restrict my website to certain IP ranges?ZXTM allows you to easily and efficiently control which source IP ranges are allowed to access your website. This could be really useful within an intranet environment where only specific IP ranges of your business are allowed access. A quick trafficscript such as the below accomplishes this.
or to add specific, individual, IPs: You first need to create a file within $ZEUSHOME/zxtm/conf/extra/ called 'trusted_ips'. Within that file input:
We advise that you perform the below commands to only allow ZXTM's user/group to read and/or write to the file. You can edit the file as root if you need to perform update maintenance.
Now, apply this trafficscript to the relevant virtual server:
Comments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
Craig [Visitor]
Hi,
we want to restrict some parts of our site to trusted IP addresses. We currently peak to about 500 requests/sec and hope for this to increase. would there be much performance degradation in creating a "trusted_ips" type file and then processing it for every single request our website receives?
Comment from:
Craig [Visitor]
Further to this, How would I modify the second script so that I could load a list of CIDR definitions from a text file?
i.e. 10.100.1.0/24 10.102.8.0/24 10.100.12.0/24 192.168.2.0/24 ... etc. Thanks. |
Recently...
Other Resources
|





