FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-12-2008, 11:41 AM
"Gregory SACRE"
 
Default Limit upload and source IP

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:

http://gentoo-wiki.com/HOWTO_Iptables_for_newbies
http://iptables-tutorial.frozentux.net/iptables-tutorial.html

HTH,

Greg

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
>
 

Thread Tools




All times are GMT. The time now is 05:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org