Hi John.
> I am sure that I am not the only guy who dials into an ISP and
> receives an dynamic IP address for the outside interface with
> ipfwadm and running Amateur tcpip applications. Aside from hand
> editing source and destination address's each time the system
> kicks off, is there a better mouse trap? I tried the tunnel-
> munge script but could not get it to work.
I normally make use of the ip-up and ip-down scripts to deal with
problems like that. On one system I've set up, I have the following
/etc/ppp/if-up.local file:
Q> #!/bin/bash
Q>
Q> # Note: Command parameters (as supplied by pppd) are:
Q> #
Q> # $1 = Interface
Q> # $2 = TTY device
Q> # $3 = Speed
Q> # $4 = Local IP address
Q> # $5 = Remote IP address
Q> # $6 = -ipparam parameter (if any)
Q>
Q> echo "Connected on $1 at $3 Baud to $5 as $4." \
Q> | mail -s 'Haven High is online' [EMAIL PROTECTED]
The above command emails me with the relevant details every time the
system goes online, so I can get in and do the appropriate maintenance
despite my living some 450 miles from the school in question.
One could equally well add other commands in there to deal with
problems such as the one you mention.
Best wishes from Riley.
+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* ftp://ftp.MemAlpha.cx/pub/rhw/Linux
* http://www.MemAlpha.cx/kernel.versions.html