LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1040|回复: 6

在使用(PoPToP v1.1.4-b4)(PPTP Server)中遇到的问题望高手帮忙!

[复制链接]
发表于 2003-11-11 06:08:20 | 显示全部楼层 |阅读模式
我在使用中就是老报错!报错的信息是:
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        *

望大侠能指出问题所在,小弟将万分感激。(搞这个东西我都一晚没有睡了!)
发表于 2003-11-11 09:03:19 | 显示全部楼层

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.
发表于 2003-11-11 12:07:17 | 显示全部楼层
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
 楼主| 发表于 2003-11-11 14:29:57 | 显示全部楼层
谢谢楼上的两位朋友,按你们说的改动了哈就可以启动了,可以告诉我为什么吗?或者是具体的意思。还有一个问题就是对方拨入的时候不能给他指定 ip ,我现在想要对方拨入的时候给他指定 ip。(目前系统默认状态下分配的是192.168.1.1)我想分配的地址范围是 192.168.0.200-244,怎么改配置文件!谢谢了!我等回音!
发表于 2003-11-11 15:18:02 | 显示全部楼层
remoteip 192.168.0.200-244
 楼主| 发表于 2003-11-11 16:22:34 | 显示全部楼层
谢谢,我弄成功了,非常感谢大哥的帮助!
发表于 2003-11-11 17:40:39 | 显示全部楼层
恭喜你 PPTPD还是非常方便和好用的VPN软件 记得以前我在RH7.2上怎么弄也不成功。。。不知道是不是RH7.2的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表