Date: Fri, 14 Feb 2003 19:39:22 +1100 From: "J. 'LoneWolf' Mattsson" <lonewolf-freebsd@earthmagic.org> To: freebsd-stable@FreeBSD.ORG Subject: Re: ipfw1 or ipfw2 in STABLE? Message-ID: <5.1.0.14.2.20030214192353.02940dc8@helios.earthmagic.org> In-Reply-To: <20030214081544.33667.qmail@web14103.mail.yahoo.com> References: <97321400.1045177521@[192.168.0.2]>
next in thread | previous in thread | raw e-mail | index | archive | help
At 09:15 14/02/2003 +0100, Claus Guttesen wrote: >I wanted to prioritize both outcoming and returning >traffic, but ipfw (ver. 1) only allowed me to >prioritize on the port, but not distinguish on the >direction. Sure it does. If you want to distinguish direction based on the port numbers, just do something like: ipfw add allow tcp from any to 10.1.1.1 80 ipfw add allow tcp from 10.1.1.1 80 to any You can specify port numbers for the source ip as well, so just reverse the rule to match the return traffic. I.e. there is no need for the src-port directive, simply specify the source port number after the source ip :) Cheers, /Johny To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20030214192353.02940dc8>