Greetings,
My dialin server config looks like this now, I have spent many hours trying and yet I can't get it working.
[root@preload ppp]# cat options.server noauth -chap +pap login asyncmap 0 :192.168.2.8 debug modem crtscts dns-addr 196.25.100.18 dns-addr 196.25.100.19 proxyarp [root@preload ppp]# cat pap-secrets ppp * "" ppp.teq.pinteq
[root@preload ppp]# cat /etc/mgetty+sendfax/mgetty. mgetty.config mgetty.oldcfg [root@preload ppp]# cat /etc/mgetty+sendfax/mgetty.config port ttyS0 data-only y direct y debug 5 speed 115200 login port-owner ppp port-group pppusers port-mode 0664
[root@preload ppp]# cat /etc/mgetty+sendfax/login.config /AutoPPP/ - ppp /usr/sbin/pppd file /etc/ppp/options.server [root@preload ppp]#cat /etc/ppp/options lock -detach asyncmap 0 proxyarp +pap crtscts pap-timeout 30 pap-max-authreq 20 modem noauth login 192.168.2.1:192.168.2.200 domain teq.pinteq
In my dns I have added records for ppp.teq.pinteq
The first part of the dial-up with Kppp set to terminal mode for goes smoothly,
here is the kppp console output
preload.teq.pinteq login: ppp Password: Last login: Sun Feb 13 10:53:07 on ttyS0
When I click continue or set kppp to PAP I get an error exit 1
Kppp spits out this error:
Feb 13 10:51:39 chadlap pppd[7494]: By default the remote system is required to authenticate itself Feb 13 10:51:39 chadlap pppd[7494]: (because this system has a default route to the internet) Feb 13 10:51:39 chadlap pppd[7494]: but I couldn't find any suitable secret (password) for it to use to do so.
I have treid many sugestions and config found on google and some suggestions from guys on this list and the man page and various how-to's
I am getting desperat now I needed this to be solved this weekend for Monday morning.
Not having much experience is the problem could somone please point out my error?
On Sunday 13 February 2005 10:57, Chadley Wilson wrote:
Greetings,
Termial login output:
ATZ OK
ATM1L1 OK
ATDT3194 CONNECT 33600
preload.teq.pinteq login: ppp ~}#@!}!}!} }8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~~}#@!}!}!} } 8}"}&} } } } }#}$@#}%}&}9}2/I}'}"}(}"}^f~
tail -f -n 20 /var/log/mgetty.log.ttyS0
02/13 11:31:08 yS0 login: use login config file /etc/mgetty+sendfax/login.config 02/13 11:31:08 yS0 match: user='ppp', key='ppp'*** hit! 02/13 11:31:08 yS0 login: utmp entry: a_ppp 02/13 11:31:08 yS0 looking for utmp entry... (my PID: 30750) 02/13 11:31:08 yS0 utmp + wtmp entry made 02/13 11:31:08 yS0 calling login: cmd='/usr/sbin/pppd', argv[]='pppd file /etc/ppp/options' 02/13 11:31:08 yS0 setenv: 'CALLER_ID=none' 02/13 11:31:08 yS0 setenv: 'CONNECT=33600/ARQ/V34/LAPM/V42BIS' 02/13 11:31:08 yS0 setenv: 'DEVICE=ttyS0' 02/13 11:31:08 ##### data dev=ttyS0, pid=30750, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/usr/sbin/pppd', user='ppp'
New configs look like this:
[root@preload ppp]# cat /etc/ppp/options lock modem -detach ms-dns 192.168.1.1 auth require-pap refuse-chap asyncmap 0 proxyarp defaultroute [root@preload ppp]# cat /etc/ppp/options.server noauth -chap +pap asyncmap 0 :192.168.2.8 debug modem crtscts dns-addr 196.25.100.18 dns-addr 196.25.100.19 proxyarp [root@preload ppp]# cat /etc/ppp/pap-secrets ppp * "" ppp.teq.pinteq
[root@preload ppp]# cat /etc/mgetty+sendfax/mgetty.config port ttyS0 data-only y direct n debug 5 speed 115200 port-owner ppp port-group pppusers port-mode 0664
[root@preload ppp]# cat /etc/mgetty+sendfax/login.config #/AutoPPP/ - u_ppp /usr/sbin/pppd file /etc/ppp/options.server ppp - a_ppp /usr/sbin/pppd file /etc/ppp/options [root@preload ppp]# cat /etc/passwd |grep ppp ppp:x:505:504::/dev/null:/usr/sbin/pppd [root@preload ppp]# cat /etc/group |grep pppusers pppusers:x:504:ppp [root@preload ppp]#
[root@preload ppp]# ls -la /etc/ppp/options* -rw------- 1 root root 100 Feb 13 11:22 /etc/ppp/options -rw------- 1 root root 145 Feb 13 11:09 /etc/ppp/options.server -rw------- 1 root root 2 Feb 13 11:09 /etc/ppp/options.ttyS0
[root@preload ppp]# ls -la /etc/mgetty+sendfax/* -rw------- 1 root root 122 Feb 13 11:34 /etc/mgetty+sendfax/login.config -rw------- 1 root root 0 Feb 13 11:08 /etc/mgetty+sendfax/mgetty.config [root@preload ppp]#
Now what could be the problem when I set kppp to PAP I still get an exit status 1
What is wrong with this config?
Feb 13 11:41:30 chadlap pppd[7673]: By default the remote system is required to authenticate itself Feb 13 11:41:30 chadlap pppd[7673]: (because this system has a default route to the internet) Feb 13 11:41:30 chadlap pppd[7673]: but I couldn't find any suitable secret (password) for it to use to do so. Feb 13 11:41:30 chadlap pppd[7673]: (None of the available passwords would let it use an IP address.)
On Sun, 2005-02-13 at 10:57 +0000, Chadley Wilson wrote:
Greetings,
My dialin server config looks like this now, I have spent many hours trying and yet I can't get it working.
[root@preload ppp]# cat options.server noauth -chap +pap login asyncmap 0 :192.168.2.8 debug modem crtscts dns-addr 196.25.100.18 dns-addr 196.25.100.19 proxyarp [root@preload ppp]# cat pap-secrets ppp * "" ppp.teq.pinteq
[root@preload ppp]# cat /etc/mgetty+sendfax/mgetty. mgetty.config mgetty.oldcfg [root@preload ppp]# cat /etc/mgetty+sendfax/mgetty.config port ttyS0 data-only y direct y debug 5 speed 115200 login port-owner ppp port-group pppusers port-mode 0664
[root@preload ppp]# cat /etc/mgetty+sendfax/login.config /AutoPPP/ - ppp /usr/sbin/pppd file /etc/ppp/options.server [root@preload ppp]#cat /etc/ppp/options lock -detach asyncmap 0 proxyarp +pap crtscts pap-timeout 30 pap-max-authreq 20 modem noauth login 192.168.2.1:192.168.2.200 domain teq.pinteq
---- Here's the config stuff that I had working - hasn't been used since I set up vpn...
# cat pap-secrets # Secrets for authentication using PAP # client server secret IP addresses user_name * pass_word 192.168.0.88 DOMAIN\user_name * pass_word 192.168.0.88 "DOMAIN\user_name" * pass_word 192.168.0.88 "User Name" * pass_word 192.168.0.88
I think I had to cover all eventualities of methods used to present a login name and I seem to recall the last one is what she ended up using.
# cat options -detach asyncmap 0 netmask 255.255.255.0 proxyarp lock crtscts modem noauth ms-dns 192.168.0.7 ms-dns 192.168.0.5 ms-wins 192.168.10.7
# cat options.ttyS0 192.168.0.7:192.168.0.88
# tail -n 1 /etc/hosts 192.168.0.88 dialin.my_domain.com dialin
I don't recall whether I created dns entry for this on the local dns server (probably)
This is a working configuration
Craig