06-20-2007
2,
0
Join Date: Jun 2007
Last Activity: 25 July 2008, 8:21 PM EDT
Posts: 2
Thanks Given: 0
Thanked 0 Times in 0 Posts
Bandwith Control...
## EXAMPLE ONE
-f flush
add 150 allow ip from any to any layer2 mac-type arp
add 160 allow all from 10.0.1.1 to 192.168.1.0/24
add 161 deny tcp from 10.0.1.0/24 to 192.168.1.0/24
add 162 deny udp from 10.0.1.0/24 to 192.168.1.0/24
#
#MAC ADDRESS USERS
#
#User 1
add 180 skipto 201 MAC any 00:30:f2:c4:09:02 in via vr0 layer2
#Deny all other mac address
add 200 deny MAC any any in recv vr0 layer2
add 201 divert natd all from any to any via rl0
#
#BANDWITH
#
#
add pipe 1 MAC 00:30:f2:c4:09:02 any
add pipe 2 MAC any 00:30:f2:c4:09:02
pipe 1 config bw 10KBytes/s
pipe 2 config bw 10KBytes/s
# other rules...