Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2002 18:44:32 +0200 (Central European Daylight Time)
From:      "Admin" <admin@ella.lt>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   IP loging
Message-ID:  <3D42CDF0.000007.00856@Minde>

index | next in thread | raw e-mail

[-- Attachment #1 --]
My network is not big. Only 5 computers:

192.168.110.1

192.168.110.2

192.168.110.3

192.168.110.4

192.168.110.5

The FreeBSD router is 192.168.110.100 with PPPoE, NAT and IPFW.



How can I log and resolve outgoing trafic in separate log files depending on
internal ip address



for example:

file 192.168.110.1.log

<date> <time> <destination address>

2002 jul 21   15:26:01   www.freebsd.org

2002 jul 21   15:26:05   www.freebsd.org\ports



file 192.168.110.2.log

2002 jul 21   12:26:10  www.sex.com

2002 jul 21   12:26:15  www.sex.com\blondies



and etc.



is it posible to make that kind of log file?
[-- Attachment #2 --]
<meta http-equiv="Content-Type" content="text/html; charset=windows-1257"><html>
<head>
<meta name="GENERATOR" content="IncrediMail 1.0">

<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER>2.0</X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->

</head>

<BODY background="" bgColor=#ffffff style="BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 10pt; MARGIN: 1px; FONT-FAMILY: Arial" scroll=yes ORGYPOS="0" X-FVER="2.0">
<TABLE border=0 cellPadding=0 cellSpacing=0 id=INCREDIMAINTABLE width="95%">
<TR>

<TD id=INCREDITEXTREGION width="100%" style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; FONT-SIZE: 10pt; FONT-FAMILY: Arial" 
   >
      <DIV>
      <TABLE id=INCREDIMAINTABLE cellSpacing=0 cellPadding=0 width="95%" 
      border=0>
        
        <TR>
          <TD id=INCREDITEXTREGION 
          style="PADDING-RIGHT: 7px; PADDING-LEFT: 7px; FONT-SIZE: 10pt; FONT-FAMILY: Arial" 
          width="100%">
            <DIV>My network is not big. Only 5 computers:</DIV>
            <DIV>192.168.110.1</DIV>
            <DIV>
            <DIV>192.168.110.2</DIV>
            <DIV>
            <DIV>192.168.110.3</DIV>
            <DIV>
            <DIV>192.168.110.4</DIV>
            <DIV>
            <DIV>192.168.110.5</DIV>
            <DIV>The FreeBSD router is 192.168.110.100 with PPPoE, NAT 
            and&nbsp;IPFW.</DIV>
            <DIV>&nbsp;</DIV>
            <DIV>How can I log and resolve&nbsp;outgoing trafic in separate log 
            files depending on internal&nbsp;ip address</DIV>
            <DIV>&nbsp;</DIV>
            <DIV>for example:</DIV>
            <DIV>file 192.168.110.1.log</DIV>
            <DIV>&lt;date&gt; &lt;time&gt; &lt;destination address&gt;</DIV>
            <DIV>2002 jul 21&nbsp;&nbsp; 15:26:01&nbsp;&nbsp; <A 
            title=http://www.freebsd.org/ 
            href="http://www.freebsd.org">www.freebsd.org</A></DIV>;
            <DIV>
            <DIV>2002 jul 21&nbsp;&nbsp; 15:26:05&nbsp;&nbsp; <A 
            title=http://www.freebsd.org/ports 
            href="http://www.freebsd.org\ports">www.freebsd.org\ports</A></DIV></DIV>;
            <DIV>&nbsp;</DIV>
            <DIV>file 192.168.110.2.log</DIV>
            <DIV>
            <DIV>2002 jul 21&nbsp;&nbsp; 12:26:10&nbsp;&nbsp;<A 
            title=http://www.sex.com/ 
            href="http://www.sex.com">www.sex.com</A></DIV>;
            <DIV>2002 jul 21&nbsp;&nbsp; 12:26:15&nbsp;&nbsp;<A 
            title=http://www.sex.com/blondies 
            href="http://www.sex.com\blondies">www.sex.com\blondies</A></DIV>;
            <DIV>&nbsp;</DIV>
            <DIV>and etc.</DIV>
            <DIV>&nbsp;</DIV>
            <DIV>is it posible to make that kind of log file?</DIV>
            <DIV>&nbsp;</DIV>
            <DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></TD></TR></TABLE></DIV></TD>
</TR>

<TR>
<TD id=INCREDIFOOTER width="100%">

	<TABLE cellPadding=0 cellSpacing=0 width="100%">
	<TR>
	<TD width="100%"></TD>
	<TD align=middle id=INCREDISOUND vAlign=bottom></TD>
	<TD align=middle id=INCREDIANIM vAlign=bottom></TD>
	</TR>
	</TABLE>

</TD>
</TR>

</TABLE>
</BODY>
</html>
help

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