*BSD News Article 61879


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!yarrina.connect.com.au!news.mel.aone.net.au!imci4!newsfeed.internetmci.com!in1.uu.net!nectec!usenet
From: Ekasit Kijsipongse <ekasit@bisnews.co.th>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Does IP accounting on Slip interface work correctly?
Date: 13 Feb 1996 06:53:57 GMT
Organization: National Electronics and Computer Technology Center, Bangkok
Lines: 28
Message-ID: <4fpci5$jfr@senior.nectec.or.th>
NNTP-Posting-Host: darkstar.bisnews.co.th
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (Windows; I; 16bit)


     I've configured my freebsd 2.1.0 as a gateway from my lan to my ISP. 
 I recompiled the kernel including the IPFIREWALL and IPACCT options and 
I tried to account the packets that are passed into my lan and sent out 
through SLIP by using the commands:

ipfw adda single all from any to my.net.address.0 on sl0
ipfw adda single all from my.net.address.0 to any on sl0

and using the following command to print the accounting.

ipfw -as l a


     I found that the accounting was incorrect.  It accounted all packets 
regardless of on sl0 or ed0 (ethernet).  For example, when I telnet from 
other machines in the same network to the freebsd (it's on ed0), the IP 
accounting adds all packets as if it ignore the parameter "on sl0".

     Could anyone give me a recommendation?
     
Thank you,

Ekasit K.
ekasit@bisnews.co.th
Bisnews, Thailand