For the limitation, I cannot help you.
But allowing only an IP range, you can use iptables. You define the
default rule for INPUT packets to DROP and allow only a range (e.g.
192.168.0.0/24).
That would give something like:
iptables -A INPUT -p ALL -i <your_interface> -s <ip_address_or_range>
--dport 80 -m tcp -j ACCEPT
You can check the following links for more info on iptables:
2008/9/12 Amar Cosic <amar.cosic@gmail.com>:
> Hello all
>
> I am trying to limit upload speed from my server and also limit source IP's
> .For ex. I want to give only 60K of my upload speed.Also I want to make
> somekind of rule where only IP range that I chose can connect to port 80,and
> all others to be rejected. I am using Apache as web server. Any hints on
> this? Thanks
>
>
> --
> Amar Ćosić
> amar.cosic@gmail.com
> amar@amar.ba
> +38761240095
> http://www.amar.ba
>