Linux Netfilter discussions
 help / color / mirror / Atom feed
* How filter IP address if it *changes* often?? (think dhcp)
@ 2003-03-28  4:00 seberino
  2001-03-28 16:51 ` Rowan Reid
  2003-03-28  4:16 ` Steve Mickeler
  0 siblings, 2 replies; 8+ messages in thread
From: seberino @ 2003-03-28  4:00 UTC (permalink / raw)
  To: netfilter

My iptables script filters incoming packets.

One filter is whether the destination address is
MY machine.

How do this if IP address changes uncontrollably
like with DHCP??

Thanks,

Chris

-- 
_______________________________________

Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.

Phone: (619) 553-9973
Fax:   (619) 553-6521
Email: seberino@spawar.navy.mil
_______________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: How filter IP address if it *changes* often?? (think dhcp)
@ 2003-03-28 19:06 Tomasz Korycki
  0 siblings, 0 replies; 8+ messages in thread
From: Tomasz Korycki @ 2003-03-28 19:06 UTC (permalink / raw)
  To: netfilter

At 01:26 2003-03-28, you wrote:
>Steve
>
>Thanks for the email.  Let me rerephrase my question.
>Perhaps I wasn't clear....
>
>How can you have a rule on your INPUT chain that
>only allows your local box's IP address if "local box IP address" can
>change without notice due to your DSL ISP's decision?

1. install and configure dhcpcd
2. it will install /etc/dhcpc/dhcpcd.exe, which is a script
3. open dhcpcd.exe. Read it.
4. At the end, there is a switch case, where You can take different actions if:
   4.1. the if has been brought up with the same IP
   4.2. the if has been brought up with new IP
   4.3. the if has been brought down
5. Obviously, You're interested in 4.2. I just call another script there, 
called restart-fw
6. In restart-fw I:
   6.1. shut down routing
   6.2. get the if's new IP
   6.3. start firewall with that new IP
   6.4. enable routing
7. salt and pepper to taste...




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

end of thread, other threads:[~2003-03-28 19:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28  4:00 How filter IP address if it *changes* often?? (think dhcp) seberino
2001-03-28 16:51 ` Rowan Reid
2003-03-28  4:16 ` Steve Mickeler
2003-03-28  6:26   ` seberino
2003-03-28  8:15     ` Michael K
2003-03-28  9:31     ` Kim Jensen
2003-03-28 15:11     ` Joel Newkirk
  -- strict thread matches above, loose matches on Subject: below --
2003-03-28 19:06 Tomasz Korycki

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