Maxim Belooussov escribis:
Hi,
I have a little problem when trying to setup a altq bandwidth shape with
pf. My intention is to give Joe only 100Kbs (bits) of the Internet total
bandwidth, and also I have set some local local servers on my OpenBSD to
give some services to Joe, but I also want to give it at the 100Kbs
speed mentioned before, even beign local network (up to 100Mbs).
<snip>
my pf.conf (very simple, very unsafe, just to try this)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ext_if="rl0"
int_if="sk0"
scrub in all
altq on $int_if cbq bandwidth 100Kb queue main
queue main bandwidth 100% cbq(default)
nat on $ext_if from $int_if:network -> $ext_if
block all
pass queue main
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Have you tried tagging the traffic for Joe and then altq it on tag?
or, first, you could try this one first:
pass out on $int_if queue main
(sorry if it didn't help, I haven't played with altq since I left adsl
world three years ago)
Max
I will try, thanks for the info. Just to make sure I'm not dealing with
a bug
can anyone try this??... just set a global limit to a interface
($int_if), then do
a ftp transfer to the gateway ( the one with the PF+ALTQ) and time the
put and get transfers with a large file.
When I get a download time of 3 minutes, the upload is of 10 seconds... :s
Thanks for your time.
-Jesus