To dial up using FreeBSD.
Edit the ppp.conf file locate in /etc/ppp
It should look like the sample below.
You will need to edit the set device to the com port that you modem is installed.
/dev/cuaa0 = com1
/dev/cuaa1 = com2
/dev/cuaa2 = com3
/dev/cuaa3 = com4
You will also need to enter a local phone number beside set phone, also be sure to change USERNAME and PASSWORD to match your kconline account information.
By default the set reconnect is set to dial every 30 secs for up to 20 times, you may edit this to your desire.
To dial the connection issue the following command at the command prompt.
ppp -ddial kc
You may also add this line to your rc.local file (/etc/rc.local) this will dial automatically on boot up.
To disconnect you will need to do the following at the command prompt.
ps -aux | grep ppp
This should display something like the following.
root 111 0.0 1.1 2572 472 ?? Ss 3Mar00 14:16.55 ppp -ddial kc
Then you would type
kill -9 111 (Note: 111 should reflect the process ID number which is the first set of numbers in the above line, this will be most likely be different everytime)
You should now be disconnected.
NOTE: You will have to be root to dial and to kill the process.
# BEGIN ppp.conf file #
default:
ident user-ppp VERSION (built COMPILATIONDATE)
set log Phase Chat LCP IPCP CCP tun command
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
kc:
set device /dev/cuaa1
set phone PHONENUMBER
set authname USERNAME
set authkey PASSWORD
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
set default HISADDR
enable dns
set reconnect 30 20
|