* iptables does not handle hostname with DNAT
@ 2004-05-21 13:17 Thomas Woerner
2004-05-21 22:39 ` Henrik Nordstrom
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Woerner @ 2004-05-21 13:17 UTC (permalink / raw)
To: netfilter-devel
Hello,
is there a reason why DNAT can only be used with ip adresses and not with
hostnames?
Thanks in advance,
Thomas
--
Thomas Woerner, Software Developer Phone: +49-711-96437-0
Red Hat GmbH Fax : +49-711-96437-111
Hauptstaetterstr. 58 Email: twoerner@redhat.com
D-70178 Stuttgart Web : http://www.redhat.de/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: iptables does not handle hostname with DNAT
2004-05-21 13:17 iptables does not handle hostname with DNAT Thomas Woerner
@ 2004-05-21 22:39 ` Henrik Nordstrom
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Nordstrom @ 2004-05-21 22:39 UTC (permalink / raw)
To: Thomas Woerner; +Cc: netfilter-devel
On Fri, 21 May 2004, Thomas Woerner wrote:
> is there a reason why DNAT can only be used with ip adresses and not with
> hostnames?
None other than the small fact that iptables can only operate on IP
addresses.. but I don't really see any reason why DNAT --to should not
accept host names much like any of the other IP address specifications in
iptables. Well, there is one.. DNAT can only accept a single IP address
but a host name may return multiple IP addresses but it is pretty trivial
to deal with so..
What is needed is to rewrite libipt_DNAT.c to use parse_hostnetworkmask
rater than dotted_to_addr. See libipt_conntrack.c for an example on how it
can be done.
Regards
Henrik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-21 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-21 13:17 iptables does not handle hostname with DNAT Thomas Woerner
2004-05-21 22:39 ` Henrik Nordstrom
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.