LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OT : utvip connection script

[ILUG] OT : utvip connection script

Caolan McNamara caolan at csn.ul.ie
Tue Dec 31 14:28:03 GMT 2002


On Sun, Dec 29, 2002 at 06:38:08 +0000, Feroz F. Basir wrote:
> Hi all,
> 
> First of all, sorry about OT issue. I had a problem to
> dial to utvip using openbsd. The script worked before
> but since they upgraded their server, my script
> disconnected every time it successfully connect. 
> 
> Anybody out there use openbsd to dial to utvip? Can
> you help me on configuration side, please?

Well I don't use OpenBSD but I do use utvip and they changed their setup
twice recently, once to pap authentication and then back again to
"normal" mode, but unlike their original setup ppp is now started
automatically when you login as opposed to requiring you to launch it
manually.

For what its worth here is are my ppp scripts for utvip (republic
version)
/etc/ppp/ppp-on

#!/bin/sh
#
# Script to initiate a PPP connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=135131890927161 # The telephone number for utv
ACCOUNT=myaccount       # youraccount
PASSWORD=mypassword     # yourpassword
LOCAL_IP=0.0.0.0        # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0       # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0   # The proper netmask if needed
export TELEPHONE
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd multilink debug /dev/ttyS0 115200 lock \
        $LOCAL_IP:$REMOTE_IP noipdefault defaultroute connect
		$DIALER_SCRIPT

/etc/ppp/ppp-on-dialer

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
/usr/sbin/chat -v                                               \
        TIMEOUT                 30                              \
        ABORT                   '\nBUSY\r'                      \
        ABORT                   '\nNO ANSWER\r'                 \
        ABORT                   '\nRINGING\r\n\r\nRINGING\r'    \
        ''                      AT                              \
        OK-\d\d+++\d\d\c-OK     ATH0                            \
        OK                      ATM0                            \
        OK                      ATDT$TELEPHONE                  \
        CONNECT                 ''                              \
        ogin:--ogin:            $ACCOUNT                        \
        assword:                $PASSWORD

C.
-- 
Caolan McNamara               |  caolan at skynet.ie  
http://www.skynet.ie/~caolan  |  +353 86 8161184
Once my power is secure, I will destroy all those pesky time-travel devices



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell