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