On 9/6/10 3:16 PM, Ricardo Kleemann wrote:
> Hi,
> 
> I'm trying to setup accounting, but I want to get it down to a
> particular IP behind the firewall.
> 
> As an example, I could have a simple smtp accounting rule like this:
> 
> smtp:COUNT       -       eth0    eth1            tcp             25
> smtp:COUNT       -       eth1    eth0            tcp            
> -               25
> DONE            smtp
> 
> But I want to have smtp accounting specific to different hosts, so
> create separate rules for each host.
> 
> I tried a couple of examples with a couple of varations of this:
> 
> smtp2:COUNT       -       eth0    192.168.1.245           
> tcp             25
> smtp2:COUNT       -       192.168.1.245    eth0           
> tcp             -               25
> DONE            smtp2
> 
> But it doesn't work.

'It doesn't work' might get you sympathy but it won't get you any help.

Look at your post -- How are we supposed to know what eth0 and eth1 are?
Internet, Local, DMZ, ...?

What smtp traffic are you trying to account for? Internet<->DMZ?
Internet<->Local LAN? Your Wife's computer<->Your girlfriend's computer?

-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to