If setup my proftpd server and all is working fine on 'full' speed. but I want to limit a certain IP range to a speed limit.
So I've added the following lines to the proftpd.conf file:
<Class VLAN16> From 172.23.2.0/23 From !172.23.3.88 </Class> <Class VLAN17> From 172.23.4.0/23 </Class>
<IfClass VLAN16> MaxClientsPerHost 2 TransferRate APPE,RETR,STOR,STOU 1000 group speedlimit </IfClass> <IfClass VLAN17> TransferRate APPE,RETR,STOR,STOU 5000 group speedlimit </IfClass>
This way if some connection is made from the IP range 172.23.2.x then it should limit the speed to 1MiB/s and if a connection comes from 172.23.4.x the speed limit should be 5MiB/s
I already had it working using a speed limit group for a userid, but I want to limit a whole VLAN on speed instead of userid based.
It is as if it doesn't assign a class tag to a connection or the class is ignored or something.
Can anyone help...?