Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: netfilter@lists.netfilter.org
Subject: Re: FORWARD to a dynamica ip address (ADSL)
Date: Wed, 17 Aug 2005 16:52:06 -0500	[thread overview]
Message-ID: <4303B186.6090908@riverviewtech.net> (raw)
In-Reply-To: <43031497.3090604@nobarrier.co.za>

> 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. . . .


  parent reply	other threads:[~2005-08-17 21:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-17 11:33 Jonathan X Peers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4303B186.6090908@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox