From: Daniel Huhardeaux <daniel.huhardeaux@tootai.com>
To: netfilter@vger.kernel.org
Subject: Re: Dynamic IP address in a rule?
Date: Mon, 27 Apr 2009 10:52:26 +0200 [thread overview]
Message-ID: <49F5724A.80509@tootai.com> (raw)
In-Reply-To: <1822.192.168.1.3.1240821057.squirrel@webmail.decimal.pt>
Jorge Bastos a écrit :
>> [...]
>>
>> Another way is to set your after-dhcp script to reload your firewall!!
>>
>
> That is no solution. it may be for your cenario but not for the most of
> people. Just think, if who makes the connection is a modem, and you have
> your *unix machine on nat, that won't work
It works. You can:
a) run a script to connect to your modem via http (eg wget), extract
your IP and reload iptables rules
b) if you can't connect to your modem, run a script to go to
http://www.whatismyip.com/tools/ip-address-lookup.asp and do the same
that above
--
Daniel Huhardeaux _____ ____ ____ _____ _____ _
enum +33 368 460 088 (_ __) _ ) _ (_ __) _ _(_) +48 222 472 472
iaxtel 1-700-849-6983 / / / // / // / / / / /_/ / / GIZMO,SKYPE,GTALK
sip/iax:callto 101@sip./_/ ( ___( ___/ /_/ (_/ (_/_/.net tootaiNET
next prev parent reply other threads:[~2009-04-27 8:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-25 12:12 Dynamic IP address in a rule? Paddie O'Brien
2009-04-26 19:43 ` Jorge Bastos
2009-04-26 22:38 ` Bruno Moreira Guedes
2009-04-27 8:30 ` Jorge Bastos
2009-04-27 8:52 ` Daniel Huhardeaux [this message]
2009-04-27 8:56 ` Jorge Bastos
2009-04-27 11:48 ` Pascal Hambourg
2009-04-27 6:41 ` lists
2009-04-27 6:46 ` Ivan Petrushev
2009-04-27 6:56 ` lists
2009-04-27 7:08 ` Ivan Petrushev
2009-04-27 13:23 ` Bruno Moreira Guedes
2009-04-27 11:57 ` Pascal Hambourg
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=49F5724A.80509@tootai.com \
--to=daniel.huhardeaux@tootai.com \
--cc=netfilter@vger.kernel.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