Dialup to RAS - but with callback
Hi, list members! I use SuSE Linux 7.3 Pro. Started using SuSE with 6.3 and still like it very much. It was maybe a year ago when I had this question on this list, but without any answer. Now I am trying again, after a lot of investigating and unsuccessful experimenting. I played with pppd and chat scripts and this didn't work. Now this is the question: How can I set up my ppp dialup to RAS (Win NT - like) so that RAS hangs up and calls me back to my number? I set up RAS already, and my Win 98 dials up and accepts callback OK. Now I would like my Linux to dial and receive call back the same way. It is much secure way to connect to office LAN and also a matter of call charges. Hope someone would come with a solution for me. TIA Best regards to all the list members R.Soskic
Hi, list users, I finally managed to set all things up and get my callback working. For those of you that may be interested, here are the contents of the scripts (one shell script and two chat scripts): ----------------------------------------------------------------- 1. shell script for making the call (named callback) #!/bin/bash echo "Calling to server..." /usr/sbin/pppd /dev/modem 115200 crtscts lock \ noipdefault name "sole" logfile /root/test-path/mylog \ -detach receive-all callback 3304504:sole \ connect '/usr/sbin/chat -v -f /test-path/dialup.chat' echo "Now wait for a callback..." /usr/sbin/pppd -detach user sole lock modem \ crtscts /dev/modem 115200 defaultroute logfile /test-path/mylog \ connect '/usr/sbin/chat -v -f /test-path/callback.chat' & ------------------------------------------------------------------ 2. chat script for dial up (win-nt.chat) ## dialup.chat ## TIMEOUT 4 ABORT BUSY ABORT "NO DIALTONE" ABORT ERROR ABORT "NO CARRIER" '' AT OK 'ATH0' OK 'AT&FZX7E0' OK 'ATV1&D2&C1S0=0&LS38.3=1S84.4=1' OK 'ATS118.3=1S7=60S50=0L2M1&K3&K00' OK 'AT&H3B40' TIMEOUT 30 OK ATDT3303028 CONNECT "" -------------------------------------------------------------------- 3. chat script that waits for a callback (callback.chat) ## callback.chat ## TIMEOUT 120 #ABORT "NO CARRIER" ABORT "BUSY" ABORT "NO DIALTONE" ABORT "ERROR" '' AT OK 'ATS0=0' OK 'AT&FZX7E0' OK 'ATV1&D2&C1S0=0&LS38.3=1S84.4=1' OK 'ATS118.3=1S7=60S50=0L2M1&K3&K00' OK 'AT&H3B40' OK AT RING ATA CONNECT "" --------------------------------------------------------------------- The call is initiated by invoking: ./callback The call is disconnected by: killall pppd --------------------------------------------------------------------- Now, don't be scared by these AT commands - they are specific to my ZyXEL Omni TA 128 (external ISDN adapter). Just put instead the commands that are needed by your modem. Here, "sole" is the user name - there must be an entry for that in your /etc/ppp/chap-secrets (there must be your password, too - see the comments in the chap-secrets file for explanation) Also - 3303028 is an example phone number of access server, while 3304504 is phone number of the client who calls and waits to be called back. Hope this might be helpful. E.g. the outside calls to office LAN are more secure when callback is mandatory, and also the office is charged for the call duration - not the home. Best regards, Radule Soskic
participants (2)
-
R.Soskic
-
Radule Soskic