All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables and hostnames.
@ 2006-10-04 13:12 gabrix
  2006-10-04 15:02 ` John A. Sullivan III
  0 siblings, 1 reply; 2+ messages in thread
From: gabrix @ 2006-10-04 13:12 UTC (permalink / raw)
  To: netfilter

What is the reason why if i use this iptables:
> # (APACHE)
> $IPT -A INPUT -p tcp -d x.gabrix.ath.cx --dport 80 -m state --state ! 
> INVALID -j ACCEPT
> $IPT -A INPUT -p tcp -d tor.gabrix.ath.cx --dport 443 -m state --state 
> ! INVALID -j ACCEPT
the hostnames you see get resolved to their pubblic ips.This is on an 
inside lan pc but this doesn't happen on the gateway pc right before it 
where iptables says it can't resolve the hostnames .Why this ?I have 
debian sarge kernel 2.6 on all machines.
Thanks !


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

* Re: iptables and hostnames.
  2006-10-04 13:12 iptables and hostnames gabrix
@ 2006-10-04 15:02 ` John A. Sullivan III
  0 siblings, 0 replies; 2+ messages in thread
From: John A. Sullivan III @ 2006-10-04 15:02 UTC (permalink / raw)
  To: gabrix; +Cc: netfilter

On Wed, 2006-10-04 at 15:12 +0200, gabrix wrote:
> What is the reason why if i use this iptables:
> > # (APACHE)
> > $IPT -A INPUT -p tcp -d x.gabrix.ath.cx --dport 80 -m state --state ! 
> > INVALID -j ACCEPT
> > $IPT -A INPUT -p tcp -d tor.gabrix.ath.cx --dport 443 -m state --state 
> > ! INVALID -j ACCEPT
> the hostnames you see get resolved to their pubblic ips.This is on an 
> inside lan pc but this doesn't happen on the gateway pc right before it 
> where iptables says it can't resolve the hostnames .Why this ?I have 
> debian sarge kernel 2.6 on all machines.
> Thanks !

What is the DNS for the gateway? Have you allowed the gateway to send
DNS in the OUTPUT chain? - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

If you would like to participate in the development of an open source
enterprise class network security management system, please visit
http://iscs.sourceforge.net



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

end of thread, other threads:[~2006-10-04 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-04 13:12 iptables and hostnames gabrix
2006-10-04 15:02 ` John A. Sullivan III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.