Linux Netfilter discussions
 help / color / mirror / Atom feed
* Nat with a dynamic IP
@ 2003-09-05 13:34 Peter Marshall
  2003-09-05 14:05 ` Thorsten Scherf
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Marshall @ 2003-09-05 13:34 UTC (permalink / raw)
  To: netfilter

Hi.  I was wondering if someone could tell me what a good way is to set up
DNAT and SNAT on a firewall if the external IP is not static ....

I have a RH 8 box with 2 nic cards.  I have it working right now ... sort
of.  But I have to manually update my iptables file every time my external
ip changes ......

Any suggestions ?

Thanks

Peter Marshall



^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Nat with a dynamic IP
@ 2003-09-05 17:16 Daniel Chemko
  2003-09-05 17:47 ` Peter Marshall
  2003-09-05 19:13 ` Ramin Dousti
  0 siblings, 2 replies; 11+ messages in thread
From: Daniel Chemko @ 2003-09-05 17:16 UTC (permalink / raw)
  To: Ramin Dousti, Peter Marshall; +Cc: Thorsten Scherf, netfilter

Damn, guys, if you could set me up with a fantastic script that can do
multiple DHCP subscriptions on a single NIC, I could throw away my all
4-port NIC's. I'll hear offers for the cards 'after' I get this script
:-)



-----Original Message-----
From: Ramin Dousti [mailto:ramin@cannon.eng.us.uu.net] 
Sent: Friday, September 05, 2003 10:11 AM
To: Peter Marshall
Cc: Thorsten Scherf; netfilter@lists.netfilter.org
Subject: Re: Nat with a dynamic IP

On Fri, Sep 05, 2003 at 11:36:09AM -0300, Peter Marshall wrote:

> That is a pretty good solution for the SNAT.  I never thought about
MASQ.
> However .... I am not sure if the DNAT is the best solution ....  WHat
if
> you had multiple ip numbers on the external card ....

and they're all dynamic? Give us an example...

Ramin

> More importantly, what about trying to connect directly to the
firewall from
> an external address.



^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: Nat with a dynamic IP
@ 2003-09-05 19:23 Daniel Chemko
  2003-09-05 19:28 ` Peter Marshall
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel Chemko @ 2003-09-05 19:23 UTC (permalink / raw)
  To: Ramin Dousti; +Cc: Peter Marshall, Thorsten Scherf, netfilter

It is to an ISP, so no beans...

-----Original Message-----
From: Ramin Dousti [mailto:ramin@cannon.eng.us.uu.net] 
Sent: Friday, September 05, 2003 12:14 PM
To: Daniel Chemko
Cc: Peter Marshall; Thorsten Scherf; netfilter@lists.netfilter.org
Subject: Re: Nat with a dynamic IP

Here is an idea, It might cost you some vlanning efforts on both the
dhcp client and the dhcp server:

vconfig add eth2 10
vconfig add eth2 11
vconfig add eth2 12
vconfig add eth2 13

dhcpcd eth2.10
dhcpcd eth2.11
dhcpcd eth2.12
dhcpcd eth2.13
 


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

end of thread, other threads:[~2003-09-06  0:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-05 13:34 Nat with a dynamic IP Peter Marshall
2003-09-05 14:05 ` Thorsten Scherf
2003-09-05 14:36   ` Peter Marshall
2003-09-05 17:11     ` Ramin Dousti
  -- strict thread matches above, loose matches on Subject: below --
2003-09-05 17:16 Daniel Chemko
2003-09-05 17:47 ` Peter Marshall
2003-09-05 19:17   ` Ramin Dousti
2003-09-06  0:34   ` Jim Carter
2003-09-05 19:13 ` Ramin Dousti
2003-09-05 19:23 Daniel Chemko
2003-09-05 19:28 ` Peter Marshall

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