Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to configure NAT dynamic ip connection

Reply
Thread Tools Display Modes

how to configure NAT dynamic ip connection

 
 
sureshprasanna
Guest
Posts: n/a

 
      12-15-2003, 01:10 PM
dear friends,
i having dynamic ip connection. i provide internet
connection to my clients through squid proxy server. how to configure
NAT with dynamic ip connection. i sucessed NAT with static ip. but i
am not clear in configuration NAT with dynamic ip. please help..

regards
prasanna
 
Reply With Quote
 
 
 
 
jack
Guest
Posts: n/a

 
      12-15-2003, 04:23 PM
sureshprasanna wrote:
> dear friends,
> i having dynamic ip connection. i provide internet
> connection to my clients through squid proxy server. how to configure
> NAT with dynamic ip connection. i sucessed NAT with static ip. but i
> am not clear in configuration NAT with dynamic ip. please help..


It's pretty much the same. Normally, You connect to Your ISP via pppd,
an then there are two scripts "/etc/ppp/ip-up" and "ip-down" that are
called from pppd upon establishing the connection and terminating it,
respectively. See "man pppd" for details on what arguments are passed
to those scripts. One of which is the dynamically assigned IP for that
connection, and You can modify Your script to add and remove rules to
and from Your iptables ruleset.

If You connect via pppd, though, it's by far simpler to define Your
masquerading (=NAT) rules solely on the interface name, e. g. ppp0.
This referrence is the same for every connection, no matter what IP
You will be assigned - this way, there's no need to modify the rule-
set after re- or disconnection.


Cheers, Jack.

--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection troubles, IEEE8021X, WEP with shared dynamic keys and certificates Paavo Heiskanen Linux Networking 0 10-17-2006 04:21 PM
How to configure Dynamic IP's in my linux server amit.tania@gmail.com Linux Networking 4 11-16-2005 03:24 AM
ssh dynamic port forwarding: works but getting connection errors Anthropic Aorta Linux Networking 0 10-30-2005 02:33 PM
ddclient to update dynamic DNS entries at a dynamic DNS service Larry Cohen Linux Networking 1 09-12-2004 01:47 AM
DSL Connection - Dynamic IP address Esta Vida Nueva Linux Networking 9 09-16-2003 02:51 AM



1 2 3 4 5 6 7 8 9 10 11