1 |
For the limitation, I cannot help you. |
2 |
But allowing only an IP range, you can use iptables. You define the |
3 |
default rule for INPUT packets to DROP and allow only a range (e.g. |
4 |
192.168.0.0/24). |
5 |
|
6 |
That would give something like: |
7 |
|
8 |
iptables -A INPUT -p ALL -i <your_interface> -s <ip_address_or_range> |
9 |
--dport 80 -m tcp -j ACCEPT |
10 |
|
11 |
You can check the following links for more info on iptables: |
12 |
|
13 |
http://gentoo-wiki.com/HOWTO_Iptables_for_newbies |
14 |
http://iptables-tutorial.frozentux.net/iptables-tutorial.html |
15 |
|
16 |
HTH, |
17 |
|
18 |
Greg |
19 |
|
20 |
2008/9/12 Amar Cosic <amar.cosic@×××××.com>: |
21 |
> Hello all |
22 |
> |
23 |
> I am trying to limit upload speed from my server and also limit source IP's |
24 |
> .For ex. I want to give only 60K of my upload speed.Also I want to make |
25 |
> somekind of rule where only IP range that I chose can connect to port 80,and |
26 |
> all others to be rejected. I am using Apache as web server. Any hints on |
27 |
> this? Thanks |
28 |
> |
29 |
> |
30 |
> -- |
31 |
> Amar Æosiæ |
32 |
> amar.cosic@×××××.com |
33 |
> amar@××××.ba |
34 |
> +38761240095 |
35 |
> http://www.amar.ba |
36 |
> |