All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables modification
@ 2004-08-04  0:49 Ben Alabaster
  2004-08-04  8:25 ` m
  2004-08-04 14:42 ` Phil Oester
  0 siblings, 2 replies; 4+ messages in thread
From: Ben Alabaster @ 2004-08-04  0:49 UTC (permalink / raw)
  To: netfilter-devel

Hi,

I need to modify my iptables module so that it will store FQDN's in the
routing tables but I have no clue where to start.  I will give you an
example of what I'm trying to do to better help explain.

We have (currently) about 150 devices in the field that are assigned
their IP addresses via DHCP from the telephone provider servicing those
devices.  These devices poll our DNS server to update their host record
when their IP address changes so that our DNS server always has their
current IP address.

Also, we have about 80 clients who need to be able to poll these devices
in the field for data.  The software the clients must be preconfigured
with the IP addresses of these devices in the field (meaning that DHCP
is no good to them, they must use static IP) and don't have the ability
to use FQDN's only IP addresses.

Currently my iptables are configured using the following command:

iptables -t nat -A OUTPUT -d <static_ip> -j DNAT --to-destination
<Dynamic_IP>

This is great while the IP address of the remote device doesn't change,
but when it changes, we then have to update the NAT table.

Ideally, I need to be able to do this:

iptables -t nat -A OUTPUT -d <static_ip> -j DNAT --to-destination
<Remote_FQDN>

This will then not resolve the ip address of the remote host until the
packet is being sent out.

I know that I need to modify the command so that I can input an FQDN and
I also need to modify the service so that it will resolve the IP address
when it is actually NAT'ing the packet.

Can you give me some pointers on how I can achieve this please?

Many thanks in advance,

Ben Alabaster
Scorpio Computer & Consulting

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

end of thread, other threads:[~2004-08-19 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-04  0:49 iptables modification Ben Alabaster
2004-08-04  8:25 ` m
2004-08-04 14:42 ` Phil Oester
2004-08-19 11:47   ` Harald Welte

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.