[...]
Not ideal though, I still need a way to initiate PPP from a Windoze client without telnetting in and running my script...
Set up ip_masq'ing/nat, demand dialing with pppd and start/stop pppd from a crontab, configure windows to use the nix box as a dns and gateway.
Masq Working... but why would I want to start/stop pppd from cron? why not put it in a bootup rc somewhere?
The idea of starting/stopping from cron was to provide more control over when the box is dialed in. For example if you killed pppd at say midnight and started it at 9am, named or any other network daemon could not cause pppd to dial up, running up your phone bill (assuming you're using a pay per minute one). pppd also sometimes totally exits, so if you put it in the boot up scripts only it will not restart if it dies, unless you reboot or manually restart it.
BTW, which bootup rc file should it be, and which one is currently setting my /proc/sys/net/ipv4/ip_forward to 0 every restart?
With slackware /etc/rc.d/rc.inet2, under redhat /etc/rc.d/init.d/network.
It would be useful if there was a tool to tell Windoze when the link had gone up/down so that ICQ would take itself offline nicely and GetRight would stop/start its downloads...? Some sort of fake DUN tool?
I would think something that viewed the linux masq table (ipchains -ML) and killed each connection by spoofing the packets. You could write a simple shell script that uses the output from ipchains -ML, and nemesis (http://www.packetfactory.net/Projects/Nemesis), and send each tcp connection a spoofed RST, each udp connection an icmp port unreachable.. this is probably excessive for your purposes :)
There appear to be serveral programs that perform remote ppp link control from a win box at freshmeat.net. They may also create, as you put it, a fake DUN connection, hence something like ICQ would see the interface drop and restart (?)
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]