creating a single client for a range of ip addresses

All languages are allowed, guests are free to write and create topics

creating a single client for a range of ip addresses

Postby tr3s » Thu Feb 04, 2010 10:27 am

Hi! First of all, i would like to say thanks for sharing this great piece of work. Good job. It will really help us (not too technical people) a lot.

Is it possible to create a client rule in webhtb for a range of ip addresses? I needed to know because I'm using dchp in providing ip address to workstations in the network.

Thanks a bunch!
tr3s
 
Posts: 7
Joined: Thu Feb 04, 2010 9:50 am

Re: creating a single client for a range of ip addresses

Postby daniel » Thu Feb 04, 2010 8:10 pm

for an ip class, example: 192.168.0.0
that meens from 192.168.0.1 to 192.168.0.254,
you can specify shosrt netmask also to reduce range, /24 example for all range like: 192.168.0.0/24
daniel
Site Admin
 
Posts: 68
Joined: Wed Nov 04, 2009 11:40 am
Location: Medgidia, Constanta, Romania

Re: creating a single client for a range of ip addresses

Postby daniel » Thu Feb 04, 2010 8:13 pm

and option 2 are to make the rule in iptables, with any range you want, set mark of that iptables rules and in webhtb put only that mark, not ip or ip class on src-ip`s or dst-ip`s, is very simple howto use mark on iptables
daniel
Site Admin
 
Posts: 68
Joined: Wed Nov 04, 2009 11:40 am
Location: Medgidia, Constanta, Romania

Re: creating a single client for a range of ip addresses

Postby tr3s » Fri Feb 05, 2010 3:33 am

if i set the limit to 256, will this apply to the whole ip range already or just for a single ip address in that range? i just noticed that the speed for the ip range doesn't exceed 256 even if there are many clients connected. what i would like to implement is set the limit for every computer in the network by just creating 1 client rule.

another is i don't want to manage the http traffic (port 80) since i already have squid delay pools handling the speed limit for that. is it possible to exempt port 80 from htb?

thanks for your time and effort. more power! i can't believe there are only few people in these forum :)
tr3s
 
Posts: 7
Joined: Thu Feb 04, 2010 9:50 am

Re: creating a single client for a range of ip addresses

Postby daniel » Fri Feb 05, 2010 7:46 am

to all ip range
daniel
Site Admin
 
Posts: 68
Joined: Wed Nov 04, 2009 11:40 am
Location: Medgidia, Constanta, Romania

Re: creating a single client for a range of ip addresses

Postby daniel » Fri Feb 05, 2010 7:49 am

for question 2: create a rule with more bandwidth or equal with delay pools, that will not affect measurement of delay pools
daniel
Site Admin
 
Posts: 68
Joined: Wed Nov 04, 2009 11:40 am
Location: Medgidia, Constanta, Romania

Re: creating a single client for a range of ip addresses

Postby tr3s » Fri Feb 05, 2010 8:51 am

got it. thank you
tr3s
 
Posts: 7
Joined: Thu Feb 04, 2010 9:50 am

Re: creating a single client for a range of ip addresses

Postby tr3s » Fri Feb 05, 2010 8:59 am

it is not possible to manipulate client connections by port? my set up with delay pools is a client can initially download a file at full speed and will eventually drop the bandwidth to 16KB/s after downloading 10MB. so i'm looking at the possible solution by exempting the http port.

any other workaround?
tr3s
 
Posts: 7
Joined: Thu Feb 04, 2010 9:50 am

Re: creating a single client for a range of ip addresses

Postby daniel » Sat Feb 06, 2010 12:29 am

it is posibile, an rule by port example:
src-ip`s: 0.0.0.0 src-ports: 80,443 dst-ip`s: 192.168.0.0/24

that will limit the web for ip`s range 192.168.0.1 - 192.168.0.254

you need imagination and science :P
daniel
Site Admin
 
Posts: 68
Joined: Wed Nov 04, 2009 11:40 am
Location: Medgidia, Constanta, Romania

Re: creating a single client for a range of ip addresses

Postby tr3s » Sat Feb 06, 2010 7:54 am

it is posibile, an rule by port example:
src-ip`s: 0.0.0.0 src-ports: 80,443 dst-ip`s: 192.168.0.0/24

that will limit the web for ip`s range 192.168.0.1 - 192.168.0.254


this is if i want to control traffic coming from port 80 and 443. how about the reverse, that is to control all other ports except port 80 and 443? let's say ports 1025-65535, i think this is the ports bit torrent and p2p applications are using. if i'm gonna do it the way you suggested, it will be a very long list of code to include all ports except 80 and 443 :)

thanks for your support and patience. by the way, is there a documentation on how to use webhtb? i'd like to know what src-ip's, src-ports, mark, etc are for
tr3s
 
Posts: 7
Joined: Thu Feb 04, 2010 9:50 am

Next

Return to WebHTB

Who is online

Users browsing this forum: No registered users and 1 guest

cron