Thanks to Mark and Mike to getting me looking in the right place.  Here is what
I have done to get this working if anyone is interested

looking at /etc/ppp/ip-up I noticed that there is a call to ip-up.local if it
exists
sooo, not wanting to make any changes that would get overriden when I upgrade:

moved rc.firewall to /etc/ppp/ppp.firewall
created ip-up.local and call my ppp.firewall from there

eureka! it works.

I noticed that the call to ip-up.local passes all args to ip-up on to
ip-up.local so now I can get rid of the cludgy greping and cutting from the
output of ifconfig and use the arguments instead in my ppp.firewall script

anyone see any pitfalls with this scenario?

I will probably put a little smarts into ip-up.local and only call the firewall
if I am connecting to my ISP since I am working on getting a dialup into a
remote lan working.

btw the args to ip-up appear to be as follows
interface_name device speed inet_addr  P-t-P_addr my_interface name

ex. ppp0 /dev/modem 115200 123.123.123.50 123.123.123.51 ppp1

I added the following line to ip-up to figure this out

echo "$*" > /var/run/ipup-args

Anyone know what the speed variable is?  Is it merely what I requested the
connection to be made at or what was acually negotiated?

Thanks and I hope this helps someone.


Bret
Mark Cooke wrote:

> On Sat, 3 Apr 1999, Bret Hughes wrote:
>
> > I would like to know if there is a standard place to place local
> > configuration scripts into the dialup process.
>
> Hi Bret,
>
> As you're running RedHat 5.0, you can look in
> /etc/sysconfig/network-scripts.
>
> In 5.2, a script called ifup-post is called after an interface is
> brought up, and you could use this script to setup the firewall
> rules. ISTR this was there in 5.0 as well (though it's been a while
> since I had a 5.0 box)
>
> 5.2 also sends a SIGIO to all programs having a file in
> /var/run/netreport containing their pid. (See network-functions'
> do_netreport function)
>
> Regards,
>
> Mark
>
> +-------------------------------------------------------------------------+
> Mark Cooke                  The views expressed above are mine and are not
> Systems Programmer          necessarily representative of university policy
> University Of Birmingham    URL: http://www.sr.bham.ac.uk/~mpc/
> +-------------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to