View Single Post
  #3   (View Single Post)  
Old 8th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default

Could you please provide some examples? I'm stuck. I either completely block the machine, give it unlimited bandwidth, or get it stuck with both limited bandwidth to the gateway and the internet.

I want unlimited bandwidth to the gateway but limited to the internet.

I think what I'm stuck on is the 'in/out' part. What does each refer to exactly? Does in mean into the network? Into the interface? From which direction? I've read the man page but it didn't help me understand.

Here's an example of what I tried based on what you said:
Quote:
Originally Posted by phoenix View Post
Add the interface names to your bandwidth rules. Packets should only be sent to the queues when leaving (out xmit) the external interface, and when entering (in recv) the external interface.
Code:
# Centrul - c8
${fwcmd} pipe 15 config bw 256Kbit/s
${fwcmd} pipe 16 config bw 85Kbit/s
${fwcmd} add 515 pipe 15 all from any to 192.168.2.10 via nfe0 out
${fwcmd} add 516 pipe 16 all from 192.168.2.10 to any via rl0 in
This just completely prevents the machine from accessing anything.
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.

Last edited by Weaseal; 8th August 2008 at 12:56 PM.
Reply With Quote