Re: limit ftp download

2011-11-03 Thread Camiel Dobbelaar
You can only start one ftp-proxy with rc.conf. Just start the other one like this in /etc/rc.local (example from my own system, where I bind them to other addresses, you just need the -q and the -p): # Add your local startup actions here. echo -n ' ftp-proxy' /usr/sbin/ftp-proxy -D6 -a Y -p 802

Re: limit ftp download

2011-11-03 Thread Wesley M.
I tried this : added a second ftpproxy_flags in my /etc/rc.conf.local So in the file, we have : ftpproxy_flags="-q ilimit" # Listen by default on 8021 ftpproxy_flags="-q istd" # It doesn't work, it use the last line in /etc/rc.conf.local : istd queue I suppose that it doesn't listen on the same

Re: limit ftp download

2011-11-03 Thread Camiel Dobbelaar
On 3-11-2011 9:01, Wesley M. wrote: > Thank you for your reply. > I read the man page of ftp-proxy. > There's an option like you said, "-q queue". > But in my way, i have 2 queue : ilimit and istd > ilimit : bandwidth -> 20Ko/s > istd : bandwidth -> 128 Ko/s > > So i just modified to my /etc/rc.co

Re: limit ftp download

2011-11-03 Thread Wesley M.
Thank you for your reply. I read the man page of ftp-proxy. There's an option like you said, "-q queue". But in my way, i have 2 queue : ilimit and istd ilimit : bandwidth -> 20Ko/s istd : bandwidth -> 128 Ko/s So i just modified to my /etc/rc.conf.local : ftpproxy_flags="" to ftpproxyflags="-q il

Re: limit ftp download

2011-11-03 Thread Stuart Henderson
On 2011-11-03, Wesley M. wrote: > > I'm using OpenBSD 5.0 > I'm testing traffic shapping using altq. > I can limit a user (his Ip address) to a 160Kb/s, it works great. > But when this user try to download a file using ftp, he downloads it at > 1024Kb/s. > > I suppose it is because traffic are

Re: limit ftp download

2011-11-02 Thread Camiel Dobbelaar
On 3-11-2011 6:07, Wesley M. wrote: > I suppose it is because traffic are redirect to 127.0.0.1 (ftpproxy) > > sample of my pf.conf: > ... > anchor "ftp-proxy/*" > pass in on $lan inet proto tcp from $limithost \ > to port 21 divert-to 127.0.0.1 port 8021 queue ilimit > ... > > Is there a

limit ftp download

2011-11-02 Thread Wesley M.
Hi, I'm using OpenBSD 5.0 I'm testing traffic shapping using altq. I can limit a user (his Ip address) to a 160Kb/s, it works great. But when this user try to download a file using ftp, he downloads it at 1024Kb/s. I suppose it is because traffic are redirect to 127.0.0.1 (ftpproxy) sample o