
After doing some looking through the misc -at- openbsd -dot- org archives, I found someone that came up with a quick, simple solution to this problem.
At the bottom of his post, Daniel Melameth posts a script that I've since instituted on my gateway:
#!/bin/sh
#
# NAME
# pppoecheck - attempt to restart pppoe interface if it is down
# Contributed by dmelameth@mba-cpa.com on misc @ openbsd . org
# http://marc.theaimsgroup.com/?l=openbsd-misc&m=112481353413978&w=2
# pppoe0 interface exists
if [ -f /etc/hostname.pppoe0 ]; then
down=`ifconfig pppoe inet | fgrep 0.0.0.0`
if [ "$down" ]; then
logger -p user.err pppoe0: phase restart
sudo /sbin/ifconfig pppoe0 up
fi
fi
Then, with the following line in my crontab:
*/5 * * * * /home/mike/bin/pppoecheck > /dev/null 2>&1
And the following line in my /etc/sudoers:
mike ALL=NOPASSWD:/sbin/ifconfig pppoe0 up
My OpenBSD gateway should reconnect within 5 minutes of losing it's connection.
We'll see if it works when it goes down... Thanks, Daniel.