Re: OT - httpd/conf.d include questions - allowing only some addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 2014-10-07 at 09:47 -0400, Robert Moskowitz wrote:

> <Directory "/var/www/html">
>      Options Indexes FollowSymLinks
>      AllowOverride None
>      Order deny,allow
>      allow from 192.84.67.128/255.255.255.0
>      deny from all
> </Directory>

If you want to allow web site access from only

192.84.67.128/255.255.255.0

then do it in your firewall. The IPtables (ip4) commands would be
something like this:-

iptables -I {table name} {table position or line number} -p tcp --dport
80 -s 192.84.67.128/24 -j ACCEPT

iptables -I {table name} {table position AFTER previous line} -p tcp
--dport 80 -j DROP

-- 
Regards,

Paul.
England, EU.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux