Contributed by jose on from the broadband-control dept.
So... I wanted to submit a tips to the people that uses ADSL connections were the login takes place in the client PC insted of the ADSL modem. I have set up a bunch of OpenBSD firewalls will the fantastic PF firewall to friends and smaller companies.
A lot of them have what I describe above. As most people know, there are some programs out there to take care of this annoying issue. But I have not yet seen a program that can run directly on OpenBSD. So I was thinking of writing my own when I found the http://www.lfdomain.com site. This software runs on windows, Linux and FreeBSD, but will run perfect on OpenBSD with the FreeBSD compatibility libs.
To let the OpenBSD firewall take care of the ADSL login do as follows...
- Download and install the FreeBSD "LF Connection Keeper" from http://www.lfdomain.com. It is only a binary and a config file.
- Install the freebsd_lib-4.0 libraries package from the ports tree.
-
Here is a possible way to make this daemon start during boot.
Add this to /etc/rc.conf.local
---- lfdom=YES # Tiscali login ----
Add this to /etc/rc.local---- if [ X"${lfdom}" == X"YES" -a -x /usr/local/bin/lfck -a -e /etc/lfck.conf ]; then echo -n ' lfdom'; /usr/local/bin/lfck start & fi ----
This is very cool, thanks Per-Olav.
(Comments are closed)
By A Non Moose Cow Herd () on
Of course they all required some tweaking and tuning (one way or the other) to work with my connection and my ISP.
But I managed to get a little bit of this and some more of that to finally do the trick for me.
The link to the webpage where I found some examples of how other people had solved the problem was, and still is: http://curl.haxx.se/curlprograms.html
Hopefully this will give some more input on how to solve things for oneself when having to do a "manual" login at your computer before accessing the Net.
I'm sorry if this post looks like something the cat got hold of. At least I tried to format it nicely...
Happy scripting
//A learing by doing type of person
By bards () bards1888@yahoo.com.au on mailto:bards1888@yahoo.com.au
Mind you it is 6:30am and I've been up half the night doing on-call work. ZZZzzzz.
Cheers.
Comments
By Anonymous Coward () on
while we're on the subject, anyone ever got a pci adsl modem running or heard of one with at least a BSD driver? I haven't checked for some time...
(yes I do know winmodems are resource-wasteful, but on edge routers that are 90% inactive, it doesn't really matter...)
By Matthew () on
I use pppoa (accessrunner) with a USB modem and don't need anything else: I don't see the point of introducing a new tool like this when it can be done with existing tools.
My approach: ADSL service defined in /etc/ppp/ppp.conf; configure /etc/hostname.tun0 to call ppp -ddial -quiet isp; this starts ppp on boot and keeps the connection up (a couple of service outages and kernel panics have been weathered).
If you need to use custom login scripts, then you can define them in ppp, and of course ppp has redial as well.
Am I missing something ?
Comments
By Stefan () stefanjo@telia.com on mailto:stefanjo@telia.com
By Anonymous Coward () on
I've always started it through /etc/rc.local with -ddial.
TIA.
By moo () on
Comments
By Anonymous Coward () on
#!/bin/ksh
USER="u1234567"
PASSWD="pAsWoRd"
lynx -dump "http://10.0.0.6/sd/init" >/dev/null 2>&1
lynx -dump "http://10.0.0.6/sd/login?username=${USER}&password=${PASSWD}" >/dev/null 2>&1