Re: DUND pre-pppd script
"Brad Midgley" <[email protected]> Fri, 30 May 2008 09:51:18 -0600
| Newsgroups | gmane.linux.bluez.user |
|---|---|
| Message-ID | <[email protected]> |
fwiw, this does work with some mods since linux won't bridge ppp. you still have to ipmasq the 192.168.42.0 subnet in this example... but the mypppd script can be simplified to a sort of poor man's dhcp server. (trim the leases if you ever really connect 255 devices over the lifetime of the server :) #!/bin/sh LEASES=/var/run/mypppd.leases grep -q $DUN_BDADDR $LEASES || echo $DUN_BDADDR >>$LEASES LOCAL=192.168.32.10 REMOTE=192.168.42.`grep -n $DUN_BDADDR $LEASES | cut -d : -f1` pppd $LOCAL:$REMOTE $* -- Brad ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/