Re: freebsd-isp Digest, Vol 52, Issue 3
From: Karan Gupta (kgupta_at_edgefocus.com)
Date: 03/17/04
- Previous message: Francisco Reyes: "Internet billing"
- Next in thread: Sherwin: "Re: freebsd-isp Digest, Vol 52, Issue 3"
- Maybe reply: Sherwin: "Re: freebsd-isp Digest, Vol 52, Issue 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <freebsd-isp@freebsd.org> Date: Wed, 17 Mar 2004 12:52:20 -0800
The following is the ruleset im using:
what i want to achieve is
1.IP traffic on the network to get shaped to 1024kbits/s
2.Kazaa/e-donkey, gnutella traffic to be shaped at 128kbits/s
3.ICMP traffic shaped to 8kbits/s
will this work??
ipfw -f flush
ipfw add pipe 5 tcp from x.x.x.1/23 to any 6881-6889,1214,4661,4662
ipfw add pipe 6 udp from x.x.x.1/23 to any 6881-6889,1214,4661,4662
ipfw add pipe 7 tcp from any 6881-6889,1214,4661,4662 to x.x.x.1/23
ipfw add pipe 8 udp from any 6881-6889,1214,4661,4662 to x.x.x.1/23
ipfw add pipe 1 ip from any to any in recv rl1
ipfw add pipe 2 ip from any to any out xmit rl1
ipfw add pipe 3 icmp from any to any in recv rl1
ipfw add pipe 4 icmp from any to any out xmit rl1
ipfw pipe 1 config mask src-ip 0xffffffff bw 1024kbits/s queue 50Kbytes
ipfw pipe 2 config mask dst-ip 0xffffffff bw 1024kbits/s queue 50kbytes
ipfw pipe 3 config mask src-ip 0xffffffff bw 8kbits/s queue 50kbytes
ipfw pipe 4 config mask dst-ip 0xffffffff bw 8kbits/s queue 50kbytes
ipfw pipe 5 config mask src-ip 0xffffffff bw 128kbit/s queue 50kbytes
ipfw pipe 6 config mask src-ip 0xffffffff bw 128kbit/s queue 50kbytes
ipfw pipe 7 config mask dst-ip 0xffffffff bw 128kbit/s queue 50kbytes
ipfw pipe 8 config mask dst-ip 0xffffffff bw 128kbit/s queue 50kbytes
k
_______________________________________________
freebsd-isp@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
- Previous message: Francisco Reyes: "Internet billing"
- Next in thread: Sherwin: "Re: freebsd-isp Digest, Vol 52, Issue 3"
- Maybe reply: Sherwin: "Re: freebsd-isp Digest, Vol 52, Issue 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: Packet loss with traffic shaper and routing
... ${fwcmd} pipe 1 config bw 512Kbit/s ... ipfw add 1012 skipto 1021
ip from any to 1.1.1.4./30 ... (freebsd-net) - Re: Packet loss with traffic shaper and routing
... ${fwcmd} pipe 1 config bw 512Kbit/s ... ipfw add 1012 skipto 1021
ip from any to 1.1.1.4./30 ... (freebsd-net) - Re: Packet loss with traffic shaper and routing
... ${fwcmd} pipe 1 config bw 512Kbit/s ... what I am saying is that even if we
use skipto rules to create ... ipfw add 1000 skipto 1110 ip from any to 1.1.1.16/28
... (freebsd-net) - Re: Packet loss with traffic shaper and routing
... ${fwcmd} pipe 1 config bw 512Kbit/s ... ipfw add 1012 skipto 1021
ip from any to 1.1.1.4./30 ... (freebsd-net) - FW: [5.2.1-RC, IPFW] Traffic Shaping
... I'm running IPFW on 4.9 and inbound traffic shaping does work, ... ipfw pipe
1 config bw 100Kbit/s ... ipfw add pipe 4 tcp from spock pop3 to any out ...
(freebsd-questions)