How should I configure /etc/host.allow on OpenBSD to only allow given IP's?
0
votes
1
answer
1646
views
I have an OpenBSD 5.1 box that is running a static html based website.
I have a list of IP addresses that I want to allow, ex.:
...
78.128.49.0/24
78.128.50.0/24
...
It's a ~10 KByte. ~10 000 lines. I only want to allow these IP addresses, not else to contact the server (httpd, ssh, anything, even ports that aren't used).
***Q***: What is the best syntax to do this in the host.allow/host.deny file? (AFAIK it should be better to put 10 000 IP address ranges in a file then puting them in the firewall..)
Asked by gasko peter
(5634 rep)
Mar 21, 2013, 02:33 PM
Last activity: Apr 7, 2014, 02:36 PM
Last activity: Apr 7, 2014, 02:36 PM