Now pppd thinks I have a modem hanging off the system using
/dev/latp/tty01. The problem is, I need to use a LINUX server for a
specific application and need to make pppd use TCP:PORT...
Help?
Thanks for your help and time,
Stephan
ab...@earthlink.net
you wrote:
> Is it possible to make pppd connect to a IP address and port?
See the option "pty" for pppd and the program "netcat". E.g.
pppd pty "netcat 10.10.10.1 3600"
Michael
It's one of the sadly undocumented options in pppd.
Use "socket host:port" to do this. As in:
socket 10.10.10.1:3600
--
James Carlson, Solaris Networking <james.d...@east.sun.com>
SUN Microsystems / 1 Network Drive 71.234W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.497N Fax +1 781 442 1677
OK
From here I can simply type in AT and recieve an "OK" response back...
I don't want to sound like a bonehead, but I've read all man pages and
have resorted to information on the web, but I can't seem to find
useful information. This newsgroup has a wealth of informaton thanks
to people like you:=)
I'll keep playing around but if there is anything that anyone can
think of to help me, I would truley appreciate it. When it's working
(hopefully soon) I'll post what I have learned and done.
Thanks again,
Stephan
ab...@earthlink.net
On 14 Jan 2002 06:55:16 -0500, James Carlson <james.d...@sun.com>
wrote:
$ pppd connect-delay 6000 lcp-max-configure 30 socket ttlcntl:6004
connect
'chat -v "" AT OK ATDTPHONENUMBER ogin: test word: testing' modem
crtscts
Jan 17 17:32:49 dazed pppd[7144]: pppd 2.4.1 started by xxx, uid 29
Jan 17 17:32:49 dazed chat[7146]: send (AT^M)
Jan 17 17:32:49 dazed chat[7146]: expect (OK)
Jan 17 17:32:49 dazed chat[7146]: ^?}^C^?{^C^?{^AAT^M^@^M^@
Jan 17 17:32:49 dazed chat[7146]: OK
Jan 17 17:32:49 dazed chat[7146]: -- got it
Jan 17 17:32:49 dazed chat[7146]: send (ATDTPHONNUMBER^M)
Jan 17 17:32:49 dazed chat[7146]: expect (ogin:)
Jan 17 17:32:49 dazed chat[7146]: ^M^@
Jan 17 17:33:04 dazed chat[7146]: ATDTPHONENUMBER^M^@^M^@
Jan 17 17:33:04 dazed chat[7146]: CONNECT^M^@
Jan 17 17:33:06 dazed chat[7146]: ^M^@
Jan 17 17:33:06 dazed chat[7146]: login:
Jan 17 17:33:06 dazed chat[7146]: -- got it
Jan 17 17:33:06 dazed chat[7146]: send (test^M)
Jan 17 17:33:06 dazed chat[7146]: expect (word:)
Jan 17 17:33:07 dazed chat[7146]: test^M^@
Jan 17 17:33:07 dazed chat[7146]: Password:
Jan 17 17:33:07 dazed chat[7146]: -- got it
Jan 17 17:33:07 dazed chat[7146]: send (testing^M)
Jan 17 17:33:07 dazed pppd[7144]: Serial connection established.
Jan 17 17:33:07 dazed pppd[7144]: Using interface ppp0
Jan 17 17:33:07 dazed pppd[7144]: Connect: ppp0 <--> /dev/pts/2
Jan 17 17:33:43 dazed pppd[7144]: LCP: timeout sending Config-Requests
Jan 17 17:34:04 dazed pppd[7144]: Terminating on signal 15.
Jan 17 17:34:04 dazed pppd[7144]: Connection terminated.
Like I said, I'm going to keep updating until I get this thing to
work!!
Any help still would be nice:)
C-YA,
Stephan