由 zsjlover 在 11-11-2003 06:08 发表:
在使用(PoPToP v1.1.4-b4)(PPTP Server)中遇到的问题望高手帮忙!
我在使用中就是老报错!报错的信息是:
Nov 11 05:39:04 y520 pptpd[3081]: MGR: Bad IP address (192.168.1.1-244^M) in config file!
Nov 11 05:41:03 y520 11月 11 05:41:03 pptpd: pptpd shutdown failed
Nov 11 05:41:38 y520 pptpd[3195]: MGR: PPP options file not found!
我真的就是不明白,但我用命令方式又可以启动,我有的命令是:pptpd -c /etc/pptpd.conf -d -l 221.X.X.X -o /etc/ppp/options -p /var/run/pptpd.pid -s 115200
其中的 221.X.X.X 是我 eth1 的地址。如果把/etc/pptpd.conf中的 localip、remoteip 注解掉的话用这个命令也可以启动,pptpd -o /etc/ppp/options -p /var/run/pptpd.pid -s 115200
我的其他文件的内容,
/etc/pptpd.conf
speed 115200
option /etc/ppp/options.pptpd
pidfile /var/run/pptpd.pid
localip 221.x.x.x //这里如果是 192.168.0.1-244(内网) 就报错,
#remoteip 192.168.1.1-244 //这里不注解也会报错
/etc/ppp/pptpd.conf
lock
name x.x.x
proxyarp
bsdcomp 0
#chapms-strip-domain#-chap
#-chapms
#+chapms-v2
#mppe-128
#mppe-stateless
#ms-wins your.server.here
#ms-dns your.server.here
/etc/ppp/chap-secrets
Secrets for authentication using CHAP
client server secret IP addresses
liuhanxi * liuhanxi *
/etc/ppp/pap-secrets
Secrets for authentication using PAP
client server secret IP addresses
liuhanxi * liuhanxi *
望大侠能指出问题所在,小弟将万分感激。(搞这个东西我都一晚没有睡了!)
由 wangxiaohu 在 11-11-2003 09:03 发表:
You edited the config file under Windows, did you?
Nov 11 05:39:04 y520 pptpd[3081]: MGR: Bad IP address (192.168.1.1-244^M) in config file!
Notice there is '^M'. You edited the config file under Windows, did you?
Solution: Use VIM or EMACS to edit it.
由 大熊宝宝 在 11-11-2003 12:07 发表:
name x.x.x
localip 221.x.x.x //这里如果是 192.168.0.1-244(内网) 就报错,
pidfile /var/run/pptpd.pid
这些都可以注释掉不用
#remoteip 192.168.1.1-244 //这里不注解也会报错 不能注释
在/etc/pptpd.conf中加入
debug
enable chap
在/etc/ppp/pptpd.conf中加入
require-chap
auth
请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.
新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了
由 zsjlover 在 11-11-2003 14:29 发表:
谢谢楼上的两位朋友,按你们说的改动了哈就可以启动了,可以告诉我为什么吗?或者是具体的意思。还有一个问题就是对方拨入的时候不能给他指定 ip ,