Linux Netfilter discussions
 help / color / mirror / Atom feed
* Couple More Questions
@ 2003-10-30 18:57 David C. Hart
  2003-10-30 19:06 ` Robert P. J. Day
  2003-10-30 20:34 ` Jeffrey Laramie
  0 siblings, 2 replies; 5+ messages in thread
From: David C. Hart @ 2003-10-30 18:57 UTC (permalink / raw)
  To: iptables mailing list

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

I've read the tutorial but a couple of doubts linger.

1. Since I'm only logging rejected packets, any suggestions on getting
name resolution into the log?

2. I'm still a bit confused on the logging of the destination address.
With our one static IP, there are two possibilities. Either a packet is
intended for our IP or for another. Yet, the logs will always show the
destination address as the IP of the LAN interface. Any suggestions?

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Couple More Questions
  2003-10-30 18:57 Couple More Questions David C. Hart
@ 2003-10-30 19:06 ` Robert P. J. Day
  2003-10-30 19:14   ` David C. Hart
  2003-10-30 20:34 ` Jeffrey Laramie
  1 sibling, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2003-10-30 19:06 UTC (permalink / raw)
  To: David C. Hart; +Cc: iptables mailing list

On Thu, 30 Oct 2003, David C. Hart wrote:

> I've read the tutorial but a couple of doubts linger.
> 
> 1. Since I'm only logging rejected packets, any suggestions on getting
> name resolution into the log?

you don't need to log only rejected packets.  logging represents a
"non-terminating" rule.  you can log packets and they will continue
to be processed by subsequent rules until you decide what you want
to do with them.

rday



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

* Re: Couple More Questions
  2003-10-30 19:06 ` Robert P. J. Day
@ 2003-10-30 19:14   ` David C. Hart
  0 siblings, 0 replies; 5+ messages in thread
From: David C. Hart @ 2003-10-30 19:14 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: iptables mailing list

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

On Thu, 2003-10-30 at 14:06, Robert P. J. Day wrote:
> On Thu, 30 Oct 2003, David C. Hart wrote:
> 
> > I
Yes. I understand that. With full logging I would never attempt name
resolution but, given that we're only logging rejects, it shouldn't slow
things down to a crawl.
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Couple More Questions
  2003-10-30 18:57 Couple More Questions David C. Hart
  2003-10-30 19:06 ` Robert P. J. Day
@ 2003-10-30 20:34 ` Jeffrey Laramie
  1 sibling, 0 replies; 5+ messages in thread
From: Jeffrey Laramie @ 2003-10-30 20:34 UTC (permalink / raw)
  To: David C. Hart; +Cc: iptables mailing list

David C. Hart wrote:

>I've read the tutorial but a couple of doubts linger.
>
>1. Since I'm only logging rejected packets, any suggestions on getting
>name resolution into the log?
>  
>

I'm not clear what you want to do. Do you want to do a DNS lookup on the 
rejected packet source IP and log the source name rather than the IP? If 
so I don't know of any way to change the content of the log entries 
generated by netfilter. You could always write a script to parse the 
logs, resolve the IP, and re-log it with the name.

>2. I'm still a bit confused on the logging of the destination address.
>With our one static IP, there are two possibilities. Either a packet is
>intended for our IP or for another. Yet, the logs will always show the
>destination address as the IP of the LAN interface. Any suggestions?
>  
>
You're receiving packets from the outside world destined for your 
private lan IP address? Could you post the relevant rules from your 
chain and a few log entries that show this?

Jeff



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

* RE: Couple More Questions
@ 2003-10-30 21:04 Daniel Chemko
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Chemko @ 2003-10-30 21:04 UTC (permalink / raw)
  To: David C. Hart, iptables mailing list


2. I'm still a bit confused on the logging of the destination address.
With our one static IP, there are two possibilities. Either a packet is
intended for our IP or for another. Yet, the logs will always show the
destination address as the IP of the LAN interface. Any suggestions?

I imagine you are talking about the fact that the only packets getting
logged are those destined for the firewall machine itself. The reason
for this is that before you reach the (PREROUTING?) INPUT or FORWARD
chains, the IP layer analyses the packet to see if the packet is
destined for this machine or not. If it isn't, then the packet is
silently thrown away before reaching Netfilter.

If you DO want to receive packets in a IP layer promiscuous manner, then
you will have to set /proc/sys/net/ipv4/conf/*/rp_filter to 0. This
disables the destination IP filtering.



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

end of thread, other threads:[~2003-10-30 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-30 18:57 Couple More Questions David C. Hart
2003-10-30 19:06 ` Robert P. J. Day
2003-10-30 19:14   ` David C. Hart
2003-10-30 20:34 ` Jeffrey Laramie
  -- strict thread matches above, loose matches on Subject: below --
2003-10-30 21:04 Daniel Chemko

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