I've noticed that sometimes when I bring my laptop to campus and
use it with the wireless, that nothing seems to work. I get an
IP address via dhcp, but I can't ping or ssh anywhere. By chance
I noticed that opening a web browser cures the problem and
realized that the issue is Clean Access failing to recognize that
my computer is running Linux.
I found that using a simple script, I can automate the process of
being detected for my Ubuntu system. The same would work for a
Debian system. My script relies on curl, so you want to have
that installed:
$ sudo aptitude install curl
The script itself is,
----- begin /etc/network/if-up.d/local-cleanaccess -----
#!/bin/sh -e
# Description: Use curl to pull a web page on network startup
# to satisfy clean access.
if [ "$MODE" != start ]; then
exit 0;
fi
if [ "$IFACE" = lo ]; then
exit 0;
fi
if ip addr show $IFACE | grep -q 'inet 150\.243\.' ; then
curl -A 'Mozilla/5.0 (X11; U; Linux i686; en-US) Gecko Ubuntu Firefox' \
-s http://www.google.com/ > /dev/null
fi
----- end /etc/network/if-up.d/local-cleanaccess -----
Copy the script to /etc/network/if-up.d/local-cleanaccess and
make it executable:
$ sudo chmod 755 /etc/network/if-up.d/local-cleanaccess
It should run each time you bring up a Truman network interface
and load a web page (triggering Clean Access).
Don
--
Don Bindner <[EMAIL PROTECTED]>
-----------------------------------------------------------------
To get off this list, send email to [EMAIL PROTECTED]
with Subject: unsubscribe
-----------------------------------------------------------------