Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: IPTables Logging Problem.
@ 2002-12-03  8:43 mailinglists
  2002-12-03 10:28 ` Using PRIO qdisc Andreas Wright
  2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
  0 siblings, 2 replies; 7+ messages in thread
From: mailinglists @ 2002-12-03  8:43 UTC (permalink / raw)
  To: 'Amit Kumar Gupta', netfilter


Hi

> I am having a problem reg IPtables Logging. Suppose I want to LOG all
> the packets for a particular session. How I can do that? 
> (Here, Session
> say telnet is established b/w 2 hosts and I want to Log all 
> the packets
> on host A (say) i.e. the outgoing and incoming packets). 
> I know abt the commans :-
> 
> Iptables -A INPUT -s HOSTA -d HOSTB -p tcp -sport 21 -j LOG 

What kind of rule is that? does your client build up a connection from low
ports to low ports? My computer doesn't do that. But to answer your
question:

iptables -A OUTPUT -s HOSTB -d HOSTA -p 6 --dport 21 -j LOG

will solve your problem.

> But it logs only packets from HostA to HostB 

of course

> while I want the reverse
> also. 

put in that second rule.

Philipp


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-12-03 13:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-03  8:43 IPTables Logging Problem mailinglists
2002-12-03 10:28 ` Using PRIO qdisc Andreas Wright
2002-12-03 10:41 ` Multible Links with Transparent Cache hare ram
2002-12-03 13:02   ` Rasmus Reinholdt Nielsen
2002-12-03 13:06     ` hare ram
2002-12-03 13:26       ` Rasmus Reinholdt Nielsen
2002-12-03 13:41     ` Tc & Suse Linux Andreas Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox