Todd Robinson wrote:
...
>client connects. A short script is available at the same location that
>would normally be attached to the ip-up script, but DL doesn't use
>that. It looks like there are no scripts (only daemons) that are
>executed, that I could modify to add the arp set command to.
>
>Has anyone out there come across this problem and how did you solve it?
>
>
Only a little piece of tour problems, Here is how you can use the ip-up f=
eature
of pppd :
mkdir /etc/ppp/ip-up.d
mkdir /etc/ppp/ip-down.d
vi /etc/ppp/ip-up :
--
#!/bin/sh
if [ -d /etc/ppp/ip-up.d ]; then
for SCRIPT in /etc/ppp/ip-up.d/*; do
[ -d $SCRIPT -o ! -x $SCRIPT ] && continue;
# ignore backup files and leftovers from rpm
case $SCRIPT in
*.old|*.bak|*~) continue ;;
esac
$SCRIPT "$@" | logger -p security.notice -t $SCRIPT > /dev/null &
done
fi
--
chmod +x /etc/ppp/ip-up
vi /etc/ppp/ip-down :
--
#!/bin/sh
if [ -d /etc/ppp/ip-down.d ]; then
for SCRIPT in /etc/ppp/ip-down.d/*; do
[ -d $SCRIPT -o ! -x $SCRIPT ] && continue;
# ignore backup files and leftovers from rpm
case $SCRIPT in
*.old|*.bak|*~) continue ;;
esac
$SCRIPT "$@" | logger -p security.notice -t $SCRIPT > /dev/null &
done
fi
--
chmod +x /etc/ppp/ip-down
No more things to do! I use this tip from a long time and it even is back=
ed-up
by the upgrade script when you change your DL version.
Don't forget to save-config -q
From now, you are able to run (m)any script(s) just after pppd came Up or=
Down
just put them like 1_firewall, 2_ez-ipupd, 3_ ... in the ip-up.d or ip-do=
wn.d
directories ...
Very usefull with dsl connections ;-)
I was just considering submiting this light add-on to DL developers ;-)
MaNU
--
|