Support Yogyakarta <[EMAIL PROTECTED]> wrote:
>
> Is There anybody knows what script will automatically called when i
> dial to the isp and then the isp gives me an IP addess??

Yes, read 'man pppd', and you'll see about a script /etc/ppp/ip-up,
which runs whenever a link is established.  Another script,
/etc/ppp/ip-down runs when the link is terminated.

I do lots of stuff in my script; here's a good way to start it:

    #!/bin/sh

    ifname=$1
    ttydev=$2
    speed=$3
    localip=$4
    remoteip=$5

Then you can add commands to change things, like adding ipportfw rules,
which require you to know the "$localip" address.  Fortunately, the
script is supplied plenty of information in order to do whatever you
need.  :)

-- 
   [EMAIL PROTECTED] (Fuzzy Fox)      || "Nothing takes the taste out of peanut
sometimes known as David DeSimone  ||  butter quite like unrequited love."
  http://www.dallas.net/~fox/      ||                       -- Charlie Brown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to