/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */

James B. Hiller <[EMAIL PROTECTED]> wrote:
>
> Finally I got it narrowed down, and got past the problem by calling
> the script twice - once from /etc/rc.d/rc.local, and then again by
> /etc/ppp/ip-up.

This is what I did in my own custom setup.  Call the script once at boot
time to set up forwarding, and then again whenever the IP changes on the
interface.

> I'd say that this script needs to be broken into two pieces - one that
> sets up forwarding and one that sets up masquerading.

That's not a bad idea; the rules could be broken out into sub-chains
which can be flushed and rewritten when an IP changes, while the parent
chains retain their configurations loaded at boot time.

In my own opinion, reloading the entire set of chains is not a major
performance hit, which is why I never implemented it.

-- 
   [EMAIL PROTECTED] (Fuzzy Fox)     || "Good judgment comes from experience.
sometimes known as David DeSimone  ||  Experience comes from bad judgment."
_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- 
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to