Disable ALTQ for internal network traffic
Posted
by
javanix
on Server Fault
See other posts from Server Fault
or by javanix
Published on 2011-01-04T00:46:36Z
Indexed on
2011/01/04
0:55 UTC
Read the original article
Hit count: 242
I currently have a FreeBSD 8.2 media server set up on my LAN that I use to stream my music from.
I also have an SSH login that I use to do file transfers to and from this server remotely. I would like to set up ALTQ (and have gotten this working) to limit my outgoing bandwidth from the server for SSH traffic. However, configuring ALTQ this way is also limiting my internal traffic (and thus interfering with my music streaming) since I am only using a single network interface.
Can anyone show me how I would use PF and ALTQ to limit outgoing WAN traffic while allowing all internal LAN traffic to go through unhindered?
ext_if="eth0"
int_if="eth0"
altq on eth0 cbq bandwidth 1Mb queue { std, ssh }
queue std bandwidth 80% cbq(default)
queue ssh bandwidth 20% cbq(ecn)
pass out on eth0 proto tcp to port 22 queue ssh
eth0 is my LAN interface, my total WAN bandwidth on my cable connection is 1Mb/s, and my internal network is 10/100.
© Server Fault or respective owner