Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2000 13:44:50 +0800
From:      "Craig Beasland" <craig@hotmix.com.au>
To:        <freebsd-questions@freebsd.org>
Subject:   IPFW Rules
Message-ID:  <A1FB33621BC3D311872D004005F62F6C57B3@MANDELA>

next in thread | raw e-mail | index | archive | help
Hi there,

I am trying to set up IPFW rules for calculating traffic to each workstation
in my subnet.  Currently, we use 192.168.168.100 - 192.168.168.200 for the
workstations and 192.168.168.250 as the gateway.

The gateway is a freebsd box running ppp -ddial -alias myisp.  The
connection works great, but now I want to calculate who is using how much
internet so I set up IPFW rules like
	ipfw add allow tcp from 192.168.168.100 to any 80
	ipfw add allow tcp from 192.168.168.100 to any 25
	ipfw add allow tcp from 192.168.168.100 to any 21
	ipfw add allow ip from 192.168.168.100 to any
	ipfw add allow tcp from any to 192.168.168.100 80
	ipfw add allow tcp from any to 192.168.168.100 110
	ipfw add allow tcp from any to 192.168.168.100 21
	ipfw add allow ip  from any to 192.168.168.100

This FreeBSD box also runs an apache proxy server on port 80.

However, the "return" data does not seem to be calculated, all the values
for ipfw -a list show as 0.  Is this a problem with the -alias option to
ppp.  Should I use NATD for the aliasing instead?

Thanks
craig



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A1FB33621BC3D311872D004005F62F6C57B3>