The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"dial-in server после проверки юзера/пароля рвёт связь ... по..."
Вариант для распечатки Архивированная нить - только для чтения! 
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"dial-in server после проверки юзера/пароля рвёт связь ... по..."
Сообщение от zman emailИскать по авторуВ закладки on 01-Ноя-02, 16:46  (MSK)
suse 7.0
mgetty 1.1.21
ppp 2.4.1

в ядро вкомпилированна поддержка ppp

/etc/inittab
3:123:respawn:/usr/sbin/mgetty ttyS0


/etc/mgetty+sendfax/mgetty.config
port ttyS0                                                                                                                        
init-chat "" AT&FE0V1&C1&D2S95=47L0=0S0=3w2 OK
(это инит от модема eline)
data-only y
speed 57600
(делал и 38400 - разницы никакой)


/etc/mgetty+sendfax/login.config
/AutoPPP/ -     a_ppp   /usr/sbin/pppd -chap +pap

/etc/ppp/options
debug
kdebug 4
noauth
crtscts
lock
modem
asyncmap 0
nodetach


/etc/ppp/options.ttyS0
login                                                                                                                              
auth                                                                                                                              
modem                                                                                                                              
crtscts                                                                                                                            
refuse-chap                                                                                                                        
require-pap                                                                                                                        
mtu 576                                                                                                                            
mru 576                                                                                                                            
proxyarp                                                                                                                          
OUT_IP:MODEM_INTERNAL_NETWORK_IP
md-dns DNS_IP
(специально стёр файл chap-secrets)

/etc/ppp/pap-secrets
vasia * pupkin *


по идее всё?


при коннекте,
моедмы шипят, договариваются,
и на аторизации происходит дисконнект

а по идее должен произойти коннект
и выдаться апишник: MODEM_INTERNAL_NETWORK_IP

помогите разобраться, уж неделю туплю...


лог со стороный суси:

wfr: waiting for ``RING''                                                                                      
got: [0a][0d][0a]RING[0d]                                                                                    
  CND: RING                                                                                                    
wfr: rc=0, drn=0                                                                                              
send: ATA[0d]                                                                                                  
waiting for ``CONNECT''                                                                                        
got: [0d]                                                                                                    
  CND: OK[0a]CONNECT ** found **                                                                              
send:                                                                                                          
waiting for ``_''                                                                                              
got:  16800[0d]                                                                                              
  CND: CONNECT 16800                                                                                          
  CND: found: 16800[0a] ** found **                                                                            
waiting for line to clear (VTIME), read: ~[ff]}#[c0]!}!} } !}"}&} } } } }%}&`[b8]Y}<}'}"}(}"}1}$}&N}3})}#} P[f
  looking for utmp entry... (my PID: 3277)                                                                    
utmp + wtmp entry made                                                                                        
tio_set_flow_control( HARD )                                                                                  
print welcome banner (/etc/issue)                                                                            
getlogname (AUTO_PPP), read:~[ff]}#[c0]!                                                                      
input finished with '\r', setting ICRNL ONLCR                                                                
tio_get_rs232_lines: status: RTS CTS DSR DTR DCD                                                              
  login: use login config file /etc/mgetty+sendfax/login.config                                                
match: user='/AutoPPP/', key=''                                                                              
match: user='/AutoPPP/', key=''                                                                              
match: user='/AutoPPP/', key='/AutoPPP/'*** hit!                                                              
login: utmp entry: a_ppp                                                                                      
  looking for utmp entry... (my PID: 3277)                                                                    
utmp + wtmp entry made                                                                                        
calling login: cmd='/usr/sbin/pppd', argv[]='pppd -chap +pap'                                                
data dev=ttyS0, pid=3277, caller='none', conn='16800', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'        
                                                                                                              
setenv: 'CALLER_ID=none'                                                                                      
setenv: 'CALLED_ID='                                                                                          
setenv: 'CONNECT=16800'                                                                                      
                                                                                                              
mgetty: experimental test release 1.1.21-Jul24                                                                
check for lockfiles                                                                                            
checklock: no active process has lock, will remove                                                            
locking the line                                                                                              
makelock(ttyS0) called                                                                                        
do_makelock: lock='/var/lock/LCK..ttyS0'                                                                      
lock made                                                                                                    
tio_get_rs232_lines: status: RTS CTS DSR DTR                                                                  
lowering DTR to reset Modem                                                                                    
tss: set speed to 57600 (10001)                                                                              
tio_set_flow_control( HARD )                                                                                  
waiting for line to clear (VTIME), read: [0a][0a]OK[0a][0a]                                                  
send: AT&FE0V1&C1&D2S95=47L0=0S0=3w2[0d]                                                                      
waiting for ``OK''                                                                                            
got: [0d][0a]OK ** found **                                                                                  
waiting for line to clear (VTIME), read: [0d][0a]                                                            
removing lock file                                                                                            
waiting...

  Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Индекс форумов | Темы | Пред. тема | След. тема
Сообщения по теме

1. "RE: dial-in server после проверки юзера/пароля рвёт связь ....."
Сообщение от lavr emailИскать по авторуВ закладки on 01-Ноя-02, 16:53  (MSK)
>suse 7.0
>mgetty 1.1.21
>ppp 2.4.1
>
>в ядро вкомпилированна поддержка ppp
>
>/etc/inittab
>3:123:respawn:/usr/sbin/mgetty ttyS0
>
>
>/etc/mgetty+sendfax/mgetty.config
>port ttyS0
>init-chat "" AT&FE0V1&C1&D2S95=47L0=0S0=3w2 OK
>(это инит от модема eline)
>data-only y
>speed 57600
>(делал и 38400 - разницы никакой)
>
>
>/etc/mgetty+sendfax/login.config
>/AutoPPP/ -     a_ppp   /usr/sbin/pppd -chap +pap
>
>
>/etc/ppp/options
>debug
>kdebug 4
>noauth
>crtscts
>lock
>modem
>asyncmap 0
>nodetach
>
>
>/etc/ppp/options.ttyS0
>login
>auth
>modem
>crtscts
>refuse-chap
>require-pap
>mtu 576
>mru 576
>proxyarp
>OUT_IP:MODEM_INTERNAL_NETWORK_IP
>md-dns DNS_IP
>(специально стёр файл chap-secrets)
>
>/etc/ppp/pap-secrets
>vasia * pupkin *
>
>
>по идее всё?
>
>
>
>
>при коннекте,
>моедмы шипят, договариваются,
>и на аторизации происходит дисконнект
>
>а по идее должен произойти коннект
>и выдаться апишник: MODEM_INTERNAL_NETWORK_IP
>
>помогите разобраться, уж неделю туплю...
>
>
>
>
>
>
>лог со стороный суси:
>
>wfr: waiting for ``RING''
> got: [0a][0d][0a]RING[0d]
>  CND: RING
> wfr: rc=0, drn=0
>send: ATA[0d]
>waiting for ``CONNECT''
> got: [0d]
>  CND: OK[0a]CONNECT ** found **
>send:
>waiting for ``_''
> got:  16800[0d]
>  CND: CONNECT 16800
>  CND: found: 16800[0a] ** found **
> waiting for line to clear (VTIME), read: ~[ff]}#[c0]!}!} } !}"}&} }
>} } }%}&`[b8]Y}<}'}"}(}"}1}$}&N}3})}#} P[f
>  looking for utmp entry... (my PID: 3277)
> utmp + wtmp entry made
> tio_set_flow_control( HARD )
> print welcome banner (/etc/issue)
> getlogname (AUTO_PPP), read:~[ff]}#[c0]!
> input finished with '\r', setting ICRNL ONLCR
> tio_get_rs232_lines: status: RTS CTS DSR DTR DCD
>  login: use login config file /etc/mgetty+sendfax/login.config
> match: user='/AutoPPP/', key=''
> match: user='/AutoPPP/', key=''
> match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
> login: utmp entry: a_ppp
>  looking for utmp entry... (my PID: 3277)
> utmp + wtmp entry made
> calling login: cmd='/usr/sbin/pppd', argv[]='pppd -chap +pap'
> data dev=ttyS0, pid=3277, caller='none', conn='16800', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
>
> setenv: 'CALLER_ID=none'
> setenv: 'CALLED_ID='
> setenv: 'CONNECT=16800'
>
>mgetty: experimental test release 1.1.21-Jul24
>check for lockfiles
> checklock: no active process has lock, will remove
>locking the line
> makelock(ttyS0) called
> do_makelock: lock='/var/lock/LCK..ttyS0'
> lock made
> tio_get_rs232_lines: status: RTS CTS DSR DTR
>lowering DTR to reset Modem
> tss: set speed to 57600 (10001)
> tio_set_flow_control( HARD )
> waiting for line to clear (VTIME), read: [0a][0a]OK[0a][0a]
>send: AT&FE0V1&C1&D2S95=47L0=0S0=3w2[0d]
>waiting for ``OK''
> got: [0d][0a]OK ** found **
> waiting for line to clear (VTIME), read: [0d][0a]
> removing lock file
>waiting...


настрой модем чтобы полные сообщения выдавал error-correction & compression, ну и вобщем запрети сваливаться с compression на normal-link
плюс проверь chat

  Рекомендовать в FAQ | Cообщить модератору | Наверх

2. "RE: dial-in server после проверки юзера/пароля рвёт связь ....."
Сообщение от zman emailИскать по авторуВ закладки on 02-Ноя-02, 01:24  (MSK)
> настрой модем чтобы полные сообщения выдавал
> error-correction & compression, ну и вобщем

да я тормоз, а можно подетальнее? =)


вот получил статистику по соединению:

AT&V1&W1                                                                                                          
TERMINATION REASON.......... LOCAL REQUEST                                                                          
LAST TX data rate........... 28800 BPS                                                                              
HIGHEST TX data rate........ 28800 BPS                                                                              
LAST RX data rate........... 16800 BPS                                                                              
HIGHEST RX data rate........ 16800 BPS                                                                              
Error correction PROTOCOL... LAPM                                                                                  
Data COMPRESSION............ V42Bis                                                                                
Line QUALITY................ 031                                                                                    
Receive LEVEL............... 025                                                                                    
Highest SPX Receive State... 67                                                                                    
Highest SPX Transmit State.. 67                                                                                    
OK                                                                                                                  
ATZ                                                                                                                
OK


> запрети сваливаться с compression на normal-link

это как?
можно более подробно?
или в оригинальных(английских) терминах, что нужно сделать?
например: разрешить только v.42b и т.п.


> плюс проверь chat
блин баран я в этом,
и перепробовал массу, начиная от:
init-chat "" ATL0=0S0=4 OK
сейчас стоит:
init-chat "" \d+++\dATZM0L0X3V1W1*SPK+Ring OK  

  Рекомендовать в FAQ | Cообщить модератору | Наверх


Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру