View previous topic :: View next topic |
Author |
Message |
VanDan Guru
Joined: 30 Sep 2002 Posts: 586 Location: Australia
|
Posted: Sun Nov 17, 2002 8:33 am Post subject: Dial-in Server |
|
|
Hi all.
Setting up a ppp server is the ONLY thing I have never been able to do no matter what I try...
Here's what I've got at the moment:
/etc/inittab:
Code: |
d1:2345:respawn:/usr/sbin/mgetty ttyS0 -x 8 -D /dev/vc/0
|
/etc/mgetty+sendfax/login.config:
Code: |
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server
|
/etc/ppp/options.server:
Code: |
debug
-detach
asyncmap 0
modem
crtscts
lock
proxyarp
require-pap
refuse-chap
login
ms-dns 203.109.250.50
ms-dns 203.109.250.61
|
/etc/ppp/options.ttyS0:
Code: |
192.168.0.100:192.168.0.101
|
If I dial in from Win2k with the default settings, it tries to authenticate for 30 seconds or so, then hangs up and says that authentication fails. If I use a terminal log-in, I can log in and then strange characters start appearing in the terminal. I can start ppp by running /usr/sbin/pppd and this produces more characters but when I close the terminal window, the modem hangs up and I get various error messages ranging from:
Quote: |
Unable to determine IP address.
|
to
Quote: |
Loopback device detected. Characters are being echoed back from the device. Maybe the remote computer is using a tty login
|
to
Quote: |
The remote computer is not responding
|
On the Linux side, I get fewer error messages than failed login attempts, which is a little worrying, but anyway the ones I get are like:
Quote: |
Nov 17 17:12:51 [login(pam_unix)] session opened for user nunfamily by (uid=0)
Nov 17 17:13:02 [pppd] pppd 2.4.1 started by nunfamily, uid 1004
Nov 17 17:13:02 [pppd] Using interface ppp1
Nov 17 17:13:02 [pppd] Connect: ppp1 <--> /dev/tts/0
Nov 17 17:13:11 [modprobe] modprobe: Can't locate module ppp-compress-21
Nov 17 17:13:11 [kernel] PPP Deflate Compression module registered
Nov 17 17:13:11 [modprobe] modprobe: Can't locate module ppp-compress-21
Nov 17 17:13:12 [pppd] Modem hangup
Nov 17 17:13:12 [pppd] Connection terminated.
Nov 17 17:13:12 [pppd] Exit.
|
and
Quote: |
Nov 17 17:14:43 [login(pam_unix)] session opened for user nunfamily by (uid=0)
Nov 17 17:14:45 [pppd] pppd 2.4.1 started by nunfamily, uid 1004
Nov 17 17:14:45 [pppd] Using interface ppp1
Nov 17 17:14:45 [pppd] Connect: ppp1 <--> /dev/tts/0
Nov 17 17:14:58 [modprobe] modprobe: Can't locate module ppp-compress-21
Nov 17 17:14:58 [modprobe] modprobe: Can't locate module ppp-compress-21
Nov 17 17:14:58 [pppd] Could not determine local IP address
Nov 17 17:14:58 [pppd] Connection terminated.
Nov 17 17:14:58 [pppd] Connect time 0.3 minutes.
Nov 17 17:14:58 [pppd] Sent 104 bytes, received 100 bytes.
Nov 17 17:14:58 [pppd] Exit.
|
I have tried setting up the Win2k dial-up networking to use a fixed IP address (192.168.0.101) and this doesn't help. I actually got an error one time which said that this address was in use, and to contact the system administrator and tell them about it, but this address certainly was NOT in use - it was reserved for my dial-in connection.
So anyway, if anyone has a working setup, could you please post your config files? Or alternatively, can someone tell me WTF is up with what I'm doing. I have been trying to get this going on and off for 18 months now - since I was running Slackware 7.1!
I will be SOOOOOO grateful of someone can help. And believe me I've read all the HOW-TOs I can find on google... over and over ... |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Mon Jul 07, 2003 10:40 am Post subject: |
|
|
dude, how did you go ?
I'm trying to setup the same thing here.. noticed your post is getting old now, thought you might have had some success and could point me in the right direction...
hope you can _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
VanDan Guru
Joined: 30 Sep 2002 Posts: 586 Location: Australia
|
Posted: Mon Jul 07, 2003 11:03 am Post subject: Got it going ... |
|
|
Yeah I _finally_ got it going.
I'm using pppd and mgetty comiled by Gentoo's ebuilds, so there's no need to mess with the compilation...
I had a LOT of trouble with authentication. I tried all options. This is what works for me:
/etc/ppp/options.server:
Quote: |
debug
asyncmap 0
modem
crtscts
lock
require-pap
refuse-chap
auth
proxyarp
ms-dns 192.231.203.132
ms-dns 192.231.203.3
192.168.0.20:192.168.0.21
|
The 2 ms-dns entries are my dns servers in /etc/resolv.conf. The 2 ip addresses on the following line are the addresses of the dial-in modem, and the remote client.
/etc/mgetty+sendfax has the following line:
Quote: |
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server
|
/etc/inittab has the following line:
Quote: |
S2:2345:respawn:/usr/sbin/mgetty ttyS0 -D /dev/ttyS0
|
For the client side, you should be able to use the default settings in Windows.
I'm pretty sure this is all you need. If not, post back and tell me what's up.
Good luck!
Dan |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Mon Jul 07, 2003 12:12 pm Post subject: |
|
|
hey Dan,
I have set it up, but haven't had a chance to test it. I'll test it tomorrow from work
while I've got you though, I'd like to ask your advice.
I am setting up a linux server, and I wanted it to act as a fax server for sending and receiving, as an answering machine, and also as a dial in server for remote internet and file access.
I know mgetty+sendfax are bundled together, and there is also vgetty, but I think u can only use one or the other.
Can you use mgetty AND vgetty at the same time?
or is there someother way of of acomplishing this? or is it impossible!
many thanks
Chris _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
pengi n00b
Joined: 03 Apr 2003 Posts: 54 Location: Sweden
|
Posted: Mon Jul 14, 2003 8:22 pm Post subject: |
|
|
Whats the difference betwen the many versions of getty? Can I use agetty if a only want to access my server through a simple terminal? |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Tue Sep 23, 2003 3:31 am Post subject: |
|
|
dunno - maybe only mgetty supports autoppp ?
try and see _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
EugeneTSWong n00b
Joined: 18 Sep 2003 Posts: 45
|
Posted: Tue Sep 23, 2003 4:16 am Post subject: |
|
|
pengi wrote: | Whats the difference betwen the many versions of getty? Can I use agetty if a only want to access my server through a simple terminal? | I think that mingetty is the smallest of the bunch. I don't know about the rest, though. Maybe they have some extra sercurity features? _________________ Sincerely, & with thanks,
Eugene T.S. Wong |
|
Back to top |
|
|
Doctor n00b
Joined: 11 Feb 2003 Posts: 26
|
Posted: Sat Sep 27, 2003 4:16 pm Post subject: |
|
|
agetty comes with the util-linux ebuild and its what gentoo uses for the virtual consoles, or at least on my compy. |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Sun Dec 14, 2003 7:00 am Post subject: |
|
|
To answer some of your questions.
The reason you use mgetty as apposed to the other getty programs is it is the only one that can reconise ppp data coming in and start ppp for that. It can also tell when a fax is coming in or when some one is dialing in with just a terminal program.
Also instead of needing to add the extra part on the end of this line in mgetty.conf
/AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server
move the options.server file to options.serialport
so it would be called
options.ttyS1 or options.tts.1 for Com port 2
depending on whether you have a devfs or not.
This way pppd knows where to find the setting for just that port. This allows you to easlly add modems to your dialin server.
Hope this helps |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Sun Dec 14, 2003 9:56 am Post subject: |
|
|
anyway to tell mgetty to answer on different types of rings?
like:
ring ring ring [pause] ring ring ring [pause]
or
ring [pause] ring ring [pause] ring
etc..?
and can it tell the difference between a data call and a fax call, and if it is data to start ppp, and if it is a fax to receive it? |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Mon Dec 15, 2003 1:53 am Post subject: |
|
|
Don't know about the specific ring sequences. I've never tried that. I know it has ring back support and pickup after X rings.
Yes it can tell the difference between a data connection and fax connection. Then if it is a data connection it looks for ppp packets and if it see's some it starts pppd.
If you want I can post some of my config files. That are working for faxing and ppp dialup as well. |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Mon Dec 15, 2003 2:16 am Post subject: |
|
|
that would be great.
I'd like it to pick up after 6 rings, and calls may be either data or fax... if fax, to receive, and if data to start Autoppp
I wonder how to get it to work with distinctive ring.. I may have to look up their webpage unless someone knows..
cheers! _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Tue Dec 16, 2003 1:52 pm Post subject: |
|
|
Ok here's my configuration
/etc/inittab contains this
S1:345:respawn:/usr/sbin/mgetty -n 6 /dev/ttyS1
-n 6 means pickup after 6 rings
/etc/ppp/options.tts.1
192.168.0.1:192.168.0.20
proxyarp
idle 600
ms-dns 192.168.0.1
ms-wins 192.168.0.1
modem
crtscts
nodetach
asyncmap 0
auth
lock
debug
kdebug 1
I have devfs so that's why it is called options.tts.1 not options.ttyS1
/etc/ppp/pap-secrets contains the following line
* myservername "" *
/etc/mgetty+sendfax/login.conf contains the following line
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug
/etc/mgetty+sendfax/faxlist contains
id
print HP
delete
/etc/mgetty+sendfax/new_fax
must be edited to setup where the fax modules are kept
for printing/emailing/forwarding etc.
These are all part of the scripts that come with mgetty.
Also the username/password used to authenticate with ppp
must be a user on the system with a password.
(i.e) useradd someuser; passwd someuser ....
Hope this help
Let me know if you need any more help |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Tue Dec 16, 2003 8:18 pm Post subject: |
|
|
thanks for those
I have remote dial in working fine - it's the faxes that I'm not sure about.
I don't have this file: /etc/mgetty+sendfax/faxlist
do I just create it? does mgetty know to look for this particular file, or do I need to specify it somewhere?
could you give me a hand with the fax side of things?
also, mgetty logs to the console.. is there a way to change that to log to a file somewhere?
cheers _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Wed Dec 17, 2003 1:09 am Post subject: |
|
|
Ok for the logging side of things I had to make a directory
/var/log/mgetty
and then it will automatically write the log file in there
if you don't have faxlist you need to create it. It doesn't have to be in /etc/mgetty+sendfax but you must edit /etc/mgetty+sendfax/new_fax to setup where you have it. You may not have new_fax in your installation. It and the fax modules that you need are in the mgetty tarball under /sample/new_fax.all/
my new_fax file has at the top
# Do the settings here
home=/etc/mgetty+sendfax # The home directory
config=$home/faxlist # The configuration file
from="Fax Subsystem <faxadmin@xplor.ipf.de>" # From this user
log=/var/log/faxlog # logfile
This file must be in /etc/mgetty+sendfax.
Create faxlist as my other post. Each line except id in faxlist is a
module command. (I.E) print HP calls print.module to print the fax on HP printer. delete module deleted the fax. Other modules include archive and write. There is a sample faxlist in the tarball under /sample/new_fax.all/ which will give you some idea what you can do.
copy mgetty_tarball/sample/new_fax.all/*.module to the home directory you setup above. These are the modules I talked about above.
After that It should all work. Try receiving a fax! Let me know if you need anymore help
David |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Dec 17, 2003 2:43 am Post subject: |
|
|
great thanks.. I've done all you suggested, and I'm about to try and recieve a fax.
one question though, my printer is currently broken so I took "delete" and "print HP" out of faxlist, but added "archive"
where exactly will it store the faxes?
also, is there a way to tell it to forward ALL faxes to my email, rather than storing on file - no matter who the sender is?
cheers! _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Dec 17, 2003 2:49 am Post subject: |
|
|
hmm.. I asked my bro to send a fax, and mgetty answered, but didn't pick up that it was a fax - it seemed to think it was data.
is there a way to verify mgetty is auto diagnosing the type of call?
I changed my /etc/inittab to Code: | S1:345:respawn:/usr/sbin/mgetty -n 6 /dev/ttyS0 | based on what you posted.
before it was Code: | S2:2345:respawn:/usr/sbin/mgetty ttyS0 -D /dev/ttyS0 |
_________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Wed Dec 17, 2003 2:58 am Post subject: |
|
|
Hi,
The best way to figure why it didn't pickup your fax is have a look in the log file /var/log/mgetty/mgetty.yourserialport. It should give some details there.
my archive.module says faxes are archived to /var/spool/fax/archive
to mgetty to email you all your faxes you would something like this in faxlist
id
email you@youremailserver.com
delete
This assumes that you have set up your email server on your computer properly.
For me to actually receive faxes properly I had to add the following to /etc/mgetty+sendfax/mgetty.conf
port ttyS1 <-- serial port modem is on
switchbd 19200 <-- just this line
init-chat "" ATS0=0V1Q0&D3&K3%C1W1L0M0 OK <-- this so I don't get blasted all the time
See if that works |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Dec 17, 2003 3:19 am Post subject: |
|
|
Quote: | 12/17 13:25:36 yS0 mgetty: experimental test release 1.1.30-Dec16
12/17 13:25:36 yS0 check for lockfiles
12/17 13:25:36 yS0 locking the line
12/17 13:25:36 yS0 can't get group 'modem': No such file or directory
12/17 13:25:36 yS0 lowering DTR to reset Modem
12/17 13:25:37 yS0 send: \dATQ0V1H0[0d]
12/17 13:25:37 yS0 waiting for ``OK'' ** found **
12/17 13:25:38 yS0 send: ATS0=0Q0&D3&C1[0d]
12/17 13:25:38 yS0 waiting for ``OK'' ** found **
12/17 13:25:38 yS0 mdm_send: 'ATI'
12/17 13:25:38 yS0 unknown numerical modem id 57600
12/17 13:25:38 yS0 mdm_send: 'AT+FCLASS=2.0' -> ERROR
12/17 13:25:38 yS0 mdm_send: 'AT+FCLASS=2' -> ERROR
12/17 13:25:39 yS0 waiting...
12/17 13:34:16 yS0 wfr: waiting for ``RING''
12/17 13:34:16 yS0 wfr: waiting for ``RING''
12/17 13:34:19 yS0 wfr: waiting for ``RING''
12/17 13:34:22 yS0 wfr: waiting for ``RING''
12/17 13:34:25 yS0 wfr: waiting for ``RING''
12/17 13:34:28 yS0 wfr: waiting for ``RING''
12/17 13:34:31 yS0 send: ATA[0d]
12/17 13:34:31 yS0 waiting for ``CONNECT''
12/17 13:35:34 yS0 found action string: ``NO CARRIER''
12/17 13:35:34 ##### failed A_FAIL dev=ttyS0, pid=2080, caller='none', conn='', name=''
|
from that it looks like the modem doesn't support fax class 2 ?
[edit]
I've added "switchbd 19200" to my "/etc/mgetty+sendfax/mgetty.config".
also fyi it's an intel V.92 modem (SwanSmart Turbo)
[/edit]
thanks for your help.. I'd really like to nail this..! _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Wed Dec 17, 2003 3:31 am Post subject: |
|
|
Hey,
It looks your modem doesn't support faxing or maybe needs some deferent initilization settings. Trying do a search on google see what you can find about it.
David |
|
Back to top |
|
|
taskara Advocate
Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Dec 17, 2003 3:40 am Post subject: |
|
|
ok thanks David.
if I do find some initialization strings, where do I put them? under the port setting in mgetty.conf?
Thanks for your help.. I'll see how I go!
Chris _________________ Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer! |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Wed Dec 17, 2003 3:49 am Post subject: |
|
|
Hey,
Sorry I couldn't help you out more but if you do find anything for your modem, init strings go under the port settings in mgetty.conf
Good Luck
David |
|
Back to top |
|
|
Rooney Apprentice
Joined: 07 Aug 2003 Posts: 193 Location: Sheffield, UK
|
Posted: Sat Mar 18, 2006 5:33 pm Post subject: |
|
|
i am trying to setup a dialin server using a Vodafone 3G data card.
i currently only want to use the gsm side of this and have followed the basic config above but i have run mgetty manually to see what i get and it just dies pretty much straight away with the following output in
Code: | /var/log/mgetty/mgetty.ttyUSB0 |
Code: |
--
03/18 17:29:18 SB0 mgetty: interim release 1.1.34-Nov30
03/18 17:29:18 SB0 WARNING: parent process not init(pid=1), but pid=12668 (-bash)
03/18 17:29:18 SB0 check for lockfiles
03/18 17:29:18 SB0 locking the line
03/18 17:29:19 SB0 tio_get_rs232_lines: TIOCMGET failed: Invalid argument
03/18 17:29:19 SB0 WARNING: DSR is off - modem turned off or bad cable?
03/18 17:29:19 SB0 lowering DTR to reset Modem
03/18 17:29:19 SB0 TIOCMBIC failed: Invalid argument
03/18 17:29:19 SB0 send: \dATQ0V1H0[0d]
03/18 17:29:19 SB0 waiting for ``OK'' ** found **
03/18 17:29:20 SB0 send: ATS0=0Q0&D3&C1[0d]
03/18 17:29:20 SB0 waiting for ``OK''
03/18 17:29:20 SB0 found action string: ``ERROR''
03/18 17:29:20 SB0 init chat failed, exiting...: Invalid argument
03/18 17:29:20 ##### failed in mg_init_data, dev=ttyUSB0, pid=26111
|
is this just the card isent able to preform what i want? |
|
Back to top |
|
|
dhunt n00b
Joined: 11 Oct 2003 Posts: 46 Location: New Zealand
|
Posted: Mon Mar 27, 2006 1:20 am Post subject: |
|
|
Rooney wrote: | i am trying to setup a dialin server using a Vodafone 3G data card.
i currently only want to use the gsm side of this and have followed the basic config above but i have run mgetty manually to see what i get and it just dies pretty much straight away with the following output in
Code: | /var/log/mgetty/mgetty.ttyUSB0 |
Code: |
--
03/18 17:29:18 SB0 mgetty: interim release 1.1.34-Nov30
03/18 17:29:18 SB0 WARNING: parent process not init(pid=1), but pid=12668 (-bash)
03/18 17:29:18 SB0 check for lockfiles
03/18 17:29:18 SB0 locking the line
03/18 17:29:19 SB0 tio_get_rs232_lines: TIOCMGET failed: Invalid argument
03/18 17:29:19 SB0 WARNING: DSR is off - modem turned off or bad cable?
03/18 17:29:19 SB0 lowering DTR to reset Modem
03/18 17:29:19 SB0 TIOCMBIC failed: Invalid argument
03/18 17:29:19 SB0 send: \dATQ0V1H0[0d]
03/18 17:29:19 SB0 waiting for ``OK'' ** found **
03/18 17:29:20 SB0 send: ATS0=0Q0&D3&C1[0d]
03/18 17:29:20 SB0 waiting for ``OK''
03/18 17:29:20 SB0 found action string: ``ERROR''
03/18 17:29:20 SB0 init chat failed, exiting...: Invalid argument
03/18 17:29:20 ##### failed in mg_init_data, dev=ttyUSB0, pid=26111
|
is this just the card isent able to preform what i want? |
I would guess it probably can but you would have to look up the particular model and see what is specs says. The problem you are experiecing is that it doesn't like the init string ATS0=0Q0&D3&C1 you may just need to give it a better init string and it will work. Try playing round with a terminal program (minicom) and see if you get a RING command when you ring the card's phone number. |
|
Back to top |
|
|
snIP3r l33t
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Fri Feb 08, 2008 6:15 pm Post subject: |
|
|
hi all!
even if its long time ago since the last post i also have problems with setting up an dial-IN server.
i use a USR Sportster 56k Modem (exactly a U.S. Robotics 56K Voice EXT Rev. 12.1.1) with this config:
/etc/inittab:
Code: |
# SERIAL CONSOLES
#s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
#s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
#agetty for dial-in
s2:12345:respawn:/sbin/mgetty ttyS2
|
/etc/ppp/options.ttyS2
Code: |
asyncmap 0
netmask 255.255.255.0
proxyarp
lock
crtscts
modem
-auth
192.168.0.1:192.168.0.5
#ipcp-accept-local
#ipcp-accept-remote
|
/etc/mgetty+sendfax/mgetty.config
Code: |
# direct connection of a VT100 terminal which doesn't like DTR drops
# ("direct" meaning "*no* *modem*". NEVER enable "direct yes" on modem lines!)
#
#port ttyS3
# direct y
# speed 19200
# toggle-dtr n
#dial-in config
port ttyS2
speed 57600
data-only y
# direct n
# term vt100
#init-chat "" ATZ OK AT&F1M0E1Q0S0=0 OK
#answer-chat "" AT+FAA=1;A CONNECT \c \r
#
#try 16.50
init-chat "" AT&F1 OK ATS0=0 OK
answer-chat "" ATA CONNECT \c \r
|
/etc/mgetty+sendfax/login.config
Code: |
...
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
# Warning: Case is significant, AUTOPPP or autoppp won't work!
# Consult the "pppd" man page to find pppd options that work for you.
#
# NOTE: for *some* users, the "-detach" option has been necessary, for
# others, not at all. If your pppd doesn't die after hangup, try it.
#
# NOTE2: "debug" creates lots of debugging info. LOOK AT IT if things
# do not work out of the box, most likely it's a ppp problem!
#
# NOTE3: "man pppd" is your friend!
#
# NOTE4: max. 9 arguments allowed.
#
/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug 7
...
|
/etc/mgetty+sendfax/dialin.config
Code: |
...
#
#
# disallow all other calls
#!all
#
all
|
the ouput of mgetty looks like this:
Code: |
02/08 18:38:01 yS2 select returned 0
02/08 18:38:01 yS2 checking if modem is still alive
02/08 18:38:01 yS2 makelock(ttyS2) called
02/08 18:38:01 yS2 do_makelock: lock='/var/lock/LCK..ttyS2'
02/08 18:38:01 yS2 lock made
02/08 18:38:01 yS2 mdm_send: 'AT'
02/08 18:38:01 yS2 got:AT[0d]
02/08 18:38:01 yS2 mdm_command: string 'AT'
02/08 18:38:01 yS2 got:[0d][0a]OK[0d]
02/08 18:38:01 yS2 mdm_command: string 'OK' -> OK
02/08 18:38:01 yS2 waiting for line to clear (VTIME=3), read:
02/08 18:38:01 yS2 removing lock file
02/08 18:38:01 yS2 waiting...
02/08 18:58:08 yS2 select returned 1
02/08 18:58:08 yS2 checking lockfiles, locking the line
02/08 18:58:08 yS2 makelock(ttyS2) called
02/08 18:58:08 yS2 do_makelock: lock='/var/lock/LCK..ttyS2'
02/08 18:58:08 yS2 lock made
02/08 18:58:08 yS2 wfr: waiting for ``RING''
02/08 18:58:08 yS2 got: [0a][0d][0a]RING[0d]
02/08 18:58:08 yS2 CND: RING
02/08 18:58:08 yS2 wfr: rc=0, drn=0
02/08 18:58:08 yS2 CND: check no: 'none'
02/08 18:58:08 yS2 CND: check vs: all
02/08 18:58:08 yS2 send: ATA[0d]
02/08 18:58:08 yS2 waiting for ``CONNECT''
02/08 18:58:08 yS2 got: ATA[0d]
02/08 18:58:08 yS2 CND: OKATA[0d][0a]NO CARRIER
02/08 18:59:02 yS2 found action string: ``NO CARRIER''
02/08 18:59:02 ##### failed A_FAIL dev=ttyS2, pid=17793, caller='none', conn='', name=''
02/08 18:59:02 yS2 removing lock file
--
|
the problem is that if i try to dialin, i get the modem ringing but not answering. it rings till timeout. so i do not know what else to do. i've read many many sites for this config, but all seem to be the same that i have.
does anyone have any experience with this config and could help me?!?!?!?
thx in advance
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
|
|