Linux Netfilter discussions
 help / color / mirror / Atom feed
* FORWARD to a dynamica ip address (ADSL)
@ 2005-08-17 10:42 Jonathan X Peers
  2005-08-17 11:44 ` Ruprecht Helms
  2005-08-17 21:52 ` Taylor, Grant
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan X Peers @ 2005-08-17 10:42 UTC (permalink / raw)
  To: netfilter

Hi all

how would a forward to add dynamic ipaddress (how would i tell iptables 
about the new number, what can I use)

can IPTABLES forward to a host name

Thank You
Jonathan X Peers

______________________________________
XamimeLT - installed on mailserver for domain @nobarrier.co.za
Queries to: postmaster@nobarrier.co.za


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

* FORWARD to a dynamica ip address (ADSL)
@ 2005-08-17 11:33 Jonathan X Peers
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan X Peers @ 2005-08-17 11:33 UTC (permalink / raw)
  To: netfilter

Hi all

how would a forward to add dynamic ipaddress (how would i tell iptables 
about the new number, what can I use)

can IPTABLES forward to a host name

Thank You
Jonathan X Peers

______________________________________
XamimeLT - installed on mailserver for domain @nobarrier.co.za
Queries to: postmaster@nobarrier.co.za


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

* Re: FORWARD to a dynamica ip address (ADSL)
  2005-08-17 10:42 FORWARD to a dynamica ip address (ADSL) Jonathan X Peers
@ 2005-08-17 11:44 ` Ruprecht Helms
  2005-08-17 21:52 ` Taylor, Grant
  1 sibling, 0 replies; 4+ messages in thread
From: Ruprecht Helms @ 2005-08-17 11:44 UTC (permalink / raw)
  To: jonathan; +Cc: netfilter

Jonathan X Peers wrote:
> Hi all
> 
> how would a forward to add dynamic ipaddress (how would i tell iptables 
> about the new number, what can I use)
> 
> can IPTABLES forward to a host name

You have to use a variable and a script with grep-command.
In the case of adsl you have to act the script shortly after connection
or in the case of ipdelivery to services via dhcp a shortly after the
adress-refreshprocess defined in the dhcp-service.

Regards,
Ruprecht

------------------------------------------------------------------------------------------
Ruprecht Helms IT-Service & Softwareentwicklung

Tel./Fax  +49[0]7621 16 99 16
Web:       htp://www.rheyn.de


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

* Re: FORWARD to a dynamica ip address (ADSL)
  2005-08-17 10:42 FORWARD to a dynamica ip address (ADSL) Jonathan X Peers
  2005-08-17 11:44 ` Ruprecht Helms
@ 2005-08-17 21:52 ` Taylor, Grant
  1 sibling, 0 replies; 4+ messages in thread
From: Taylor, Grant @ 2005-08-17 21:52 UTC (permalink / raw)
  To: netfilter

> how would a forward to add dynamic ipaddress (how would i tell iptables
> about the new number, what can I use)

I would recommend that you have your forward rule in a sub-chain of it's own.  This way you could write a fairly simple external daemon (shell script) that could flush the sub-chain and insert the new rule.  Or if you are really paranoid (not to mention the fact that there is DNS cache timeouts, if you are updating the pointer the old pointer is likely no longer valid, etc) you could insert the new pointer rule at the top of the sub-chain via "-I <sub-chain-name> 1 ..." and then subsequently delete all remaining rules in that sub-chain as it would be used for just that one rule.  This will effectively make it safe for a script to work with the chain with out fear of messing up other things in the firewall.

> can IPTABLES forward to a host name

No.  IPTables will only forward to an IP as far as I'm aware of.



Grant. . . .


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

end of thread, other threads:[~2005-08-17 21:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-17 10:42 FORWARD to a dynamica ip address (ADSL) Jonathan X Peers
2005-08-17 11:44 ` Ruprecht Helms
2005-08-17 21:52 ` Taylor, Grant
  -- strict thread matches above, loose matches on Subject: below --
2005-08-17 11:33 Jonathan X Peers

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