Date: Sun, 17 Sep 2006 15:32:43 GMT From: Joćo Rocha Braga Filho <goffredo@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/103328: sugestions about ipfw table Message-ID: <200609171532.k8HFWhQN063019@www.freebsd.org> Resent-Message-ID: <200609171540.k8HFeNeL031444@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 103328 >Category: misc >Synopsis: sugestions about ipfw table >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Sep 17 15:40:23 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Joćo Rocha Braga Filho >Release: 6.1 >Organization: Paratyinfo >Environment: >Description: Why not a struct? Something like this: tablearg tablearg_2 tablearg_MAC_1 tablearg_MAC_2 tablearg_IP_2 It can be used like this: ipfw pipe 110 config mask src-ip 0xffffffff bw 64Kbit/s queue 10Kbytes ipfw pipe 112 config mask src-ip 0xffffffff bw 256Kbit/s queue 40Kbytes ipfw pipe 210 config mask dst-ip 0xffffffff bw 64Kbit/s queue 10Kbytes ipfw pipe 212 config mask dst-ip 0xffffffff bw 256Kbit/s queue 40Kbytes ... ipfw table 1 add 192.168.2.2 110 210 00:01:02:03:04:05 ipfw table 1 add 192.168.0.2 112 212 00:03:04:05:06:07 ... ipfw add pipe tablearg ip from table(1) to any MAC any tablearg_MAC_1 ipfw add pipe tablearg_2 ip from any to table(1) MAC tablearg_MAC_1 any ... ipfw add deny ip from any to any It can help against spoofing IPs and limiting traffic. thanks, Joćo Rocha. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609171532.k8HFWhQN063019>