论坛风格切换切换到宽版
  • 833阅读
  • 9回复

[问题求助]vpn求助!!! [复制链接]

上一主题 下一主题
离线cnstwb.
 
发帖
2149
C币
-235019
威望
398
贡献值
1
银元
-2
铜钱
4856
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
我在REDHAT AS. 4 UP4下做的.PPTP服务器,安装了MS的加密补丁,可是在WINXP下连接不上,到了“正在验证用户名及密码”就过不去了,一会就断开连接了,请高手帮忙呀!.!--- 印刷


评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线xunleifilm.
发帖
2062
C币
-152450
威望
382
贡献值
1
银元
-1
铜钱
4740
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
###############################################################################
# $Id: pptpd.conf,v 1.10 2006/09/04 23:30:57 quozl Exp $
#
# Sample Poptop configuration file /etc/pptpd.conf
#
# Changes are effective when pptpd is restarted.
###############################################################################

# TAG: ppp
#        Path to the pppd program, default '/usr/sbin/pppd' on Linux
#
#ppp /usr/sbin/pppd

# TAG: option
#        Specifies the location of the PPP options file.
#        By default PPP looks in '/etc/ppp/options'
#
option /etc/ppp/options.pptpd

# TAG: debug
#        Turns on (more) debugging to syslog
#
#debug

# TAG: stimeout
#        Specifies timeout (in seconds) on starting ctrl connection
#
# stimeout 10

# TAG: noipparam
#       Suppress the passing of the client's IP address to PPP, which is
#       done by default otherwise.
#
#noipparam

# TAG: logwtmp
#        Use wtmp(5) to record client connections and disconnections.
#
logwtmp

# TAG: bcrelay <if>
#        Turns on broadcast relay to clients from interface <if>
#
#bcrelay eth1

# TAG: delegate
#        Delegates the allocation of client IP addresses to pppd.
#
#       Without this option, which is the default, pptpd manages the list of
#       IP addresses for clients and passes the next free address to pppd.
#       With this option, pptpd does not pass an address, and so pppd may use
#       radius or chap-secrets to allocate an address.
#
#delegate

# TAG: connections
#       Limits the number of client connections that may be accepted.
#
#       If pptpd is allocating IP addresses (e.g. delegate is not
#       used) then the number of connections is also limited by the
#       remoteip option.  The default is 100.
#connections 100

# TAG: localip
# TAG: remoteip
#        Specifies the local and remote IP address ranges.
#
#        These options are ignored if delegate option is set.
#
#       Any addresses work as long as the local machine takes care of the
#       routing.  But if you want to use MS-Windows networking, you should
#       use IP addresses out of the LAN address space and use the proxyarp
#       option in the pppd options file, or run bcrelay.
#
#        You can specify single IP addresses seperated by commas or you can
#        specify ranges, or both. For example:
#
#                192.168.0.234,192.168.0.245-249,192.168.0.254
#
#        IMPORTANT RESTRICTIONS:
#
#        1. No spaces are permitted between commas or within addresses.
#
#        2. If you give more IP addresses than the value of connections,
#           it will start at the beginning of the list and go until it
#           gets connections IPs.  Others will be ignored.
#
#        3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
#           you must type 234-238 if you mean this.
#
#        4. If you give a single localIP, that's ok - all local IPs will
#           be set to the given one. You MUST still give at least one remote
#           IP for each simultaneous client.
#
# (Recommended)
#localip 10.55.0.18
#remoteip 10.55.0.234-238,10.55.0.245
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245

离线粉妮.
发帖
2012
C币
-235746
威望
342
贡献值
1
银元
-3
铜钱
4435
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
# Secrets for authentication using CHAP
# client        server        secret                        IP addresses
qditnet  pptpd   "34566"  "*"
jacksun  pptpd  "645645"  "*"

离线wing.
发帖
2050
C币
-60802
威望
371
贡献值
1
银元
-3
铜钱
4533
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
###############################################################################
# $Id: options.pptpd,v 1.11 2005/12/29 01:21:09 quozl Exp $
#
# Sample Poptop PPP options file /etc/ppp/options.pptpd
# Options used by PPP when a connection arrives from a client.
# This file is pointed to by /etc/pptpd.conf option keyword.
# Changes are effective on the next connection.  See "man pppd".
#
# You are expected to change this file to suit your system.  As
# packaged, it requires PPP 2.4.2 and the kernel MPPE module.
###############################################################################


# Authentication

# Name of the local system for authentication purposes
# (must match the second field in /etc/ppp/chap-secrets entries)
name pptpd

# Strip the domain prefix from the username before authentication.
# (applies if you use pppd with chapms-strip-domain patch)
#chapms-strip-domain


# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use.)


# BSD licensed ppp-2.4.2 upstream with MPPE only, kernel module ppp_mppe.o
# {{{
refuse-pap
refuse-chap
refuse-mschap
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
require-mschap-v2
# Require MPPE 128-bit encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
require-mppe-128
# }}}


# OpenSSL licensed ppp-2.4.1 fork with MPPE only, kernel module mppe.o
# {{{
#-chap
#-chapms
# Require the peer to authenticate itself using MS-CHAPv2 [Microsoft
# Challenge Handshake Authentication Protocol, Version 2] authentication.
#+chapms-v2
# Require MPPE encryption
# (note that MPPE requires the use of MSCHAP-V2 during authentication)
#mppe-40        # enable either 40-bit or 128-bit, not both
#mppe-128
#mppe-stateless
# }}}


# Network and Routing

# If pppd is acting as a server for Microsoft Windows clients, this
# option allows pppd to supply one or two DNS (Domain Name Server)
# addresses to the clients.  The first instance of this option
# specifies the primary DNS address; the second instance (if given)
# specifies the secondary DNS address.
#ms-dns 10.0.0.1
#ms-dns 10.0.0.2

# If pppd is acting as a server for Microsoft Windows or "Samba"
# clients, this option allows pppd to supply one or two WINS (Windows
# Internet Name Services) server addresses to the clients.  The first
# instance of this option specifies the primary WINS address; the
# second instance (if given) specifies the secondary WINS address.
#ms-wins 10.0.0.3
#ms-wins 10.0.0.4

# Add an entry to this system's ARP [Address Resolution Protocol]
# table with the IP address of the peer and the Ethernet address of this
# system.  This will have the effect of making the peer appear to other
# systems to be on the local ethernet.
# (you do not need this if your PPTP server is responsible for routing
# packets to the clients -- James Cameron)
proxyarp

# Normally pptpd passes the IP address to pppd, but if pptpd has been
# given the delegate option in pptpd.conf or the --delegate command line
# option, then pppd will use chap-secrets or radius to allocate the
# client IP address.  The default local IP address used at the server
# end is often the same as the address of the server.  To override this,
# specify the local IP address here.
# (you must not use this unless you have used the delegate option)
#10.8.0.100


# Logging

# Enable connection debugging facilities.
# (see your syslog configuration for where pppd sends to)
#debug

# Print out all the option values which have been set.
# (often requested by mailing list to verify options)
#dump


# Miscellaneous

# Create a UUCP-style lock file for the pseudo-tty to ensure exclusive
# access.
lock

# Disable BSD-Compress compression
nobsdcomp

# Disable Van Jacobson compression
# (needed on some networks with Windows 9x/ME/XP clients, see posting to
# poptop-server on 14th April 2005 by Pawel Pokrywka and followups,
# http://marc.theaimsgroup.com/?t=111343175400006&r=1&w=2 )
novj
novjccomp

# turn off logging to stderr, since this may be redirected to pptpd,
# which may trigger a loopback
nologfd

# put plugins here
# (putting them higher up may cause them to sent messages to the pty)

离线2006195113.
发帖
2126
C币
-235311
威望
395
贡献值
1
银元
0
铜钱
4650
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
###############################################################################
# $Id: pptpd.conf,v 1.10 2006/09/04 23:30:57 quozl Exp $
#
# Sample Poptop configuration file /etc/pptpd.conf
#
# Changes are effective when pptpd is restarted.
###############################################################################

# TAG: ppp
#        Path to the pppd program, default '/usr/sbin/pppd' on Linux
#
#ppp /usr/sbin/pppd

# TAG: option
#        Specifies the location of the PPP options file.
#        By default PPP looks in '/etc/ppp/options'
#
option /etc/ppp/options.pptpd

# TAG: debug
#        Turns on (more) debugging to syslog
#
#debug

# TAG: stimeout
#        Specifies timeout (in seconds) on starting ctrl connection
#
# stimeout 10

# TAG: noipparam
#       Suppress the passing of the client's IP address to PPP, which is
#       done by default otherwise.
#
#noipparam

# TAG: logwtmp
#        Use wtmp(5) to record client connections and disconnections.
#
logwtmp

# TAG: bcrelay <if>
#        Turns on broadcast relay to clients from interface <if>
#
#bcrelay eth1

# TAG: delegate
#        Delegates the allocation of client IP addresses to pppd.
#
#       Without this option, which is the default, pptpd manages the list of
#       IP addresses for clients and passes the next free address to pppd.
#       With this option, pptpd does not pass an address, and so pppd may use
#       radius or chap-secrets to allocate an address.
#
#delegate

# TAG: connections
#       Limits the number of client connections that may be accepted.
#
#       If pptpd is allocating IP addresses (e.g. delegate is not
#       used) then the number of connections is also limited by the
#       remoteip option.  The default is 100.
#connections 100

# TAG: localip
# TAG: remoteip
#        Specifies the local and remote IP address ranges.
#
#        These options are ignored if delegate option is set.
#
#       Any addresses work as long as the local machine takes care of the
#       routing.  But if you want to use MS-Windows networking, you should
#       use IP addresses out of the LAN address space and use the proxyarp
#       option in the pppd options file, or run bcrelay.
#
#        You can specify single IP addresses seperated by commas or you can
#        specify ranges, or both. For example:
#
#                192.168.0.234,192.168.0.245-249,192.168.0.254
#
#        IMPORTANT RESTRICTIONS:
#
#        1. No spaces are permitted between commas or within addresses.
#
#        2. If you give more IP addresses than the value of connections,
#           it will start at the beginning of the list and go until it
#           gets connections IPs.  Others will be ignored.
#
#        3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
#           you must type 234-238 if you mean this.
#
#        4. If you give a single localIP, that's ok - all local IPs will
#           be set to the given one. You MUST still give at least one remote
#           IP for each simultaneous client.
#
# (Recommended)
localip 10.55.0.18
remoteip 10.55.0.234-238,10.55.0.245
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245

离线dummy111.
发帖
1989
C币
-605070
威望
359
贡献值
4
银元
0
铜钱
4426
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
客户端拨号是选择的“可选加密”。而且选择了“chap"

发帖
2005
C币
-235756
威望
360
贡献值
2
银元
-4
铜钱
4376
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
无防火。端口在听!

离线tks1000.
发帖
2165
C币
-234974
威望
412
贡献值
1
银元
-4
铜钱
4945
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
gre 管道的问题
贴 Linux 的 iptables-save 看一下
另外,再贴 /var/log/messages 看一下
还有,winxp 是与 linux 直接二层直连的吗?若中间跨路由了,则也有可能是其他防火设备的问题

离线daofeng99.
发帖
2012
C币
-152620
威望
379
贡献值
1
银元
-5
铜钱
4612
人人网人气币
0
只看该作者 8楼 发表于: 2010-04-13
[root@jacksun ~]# iptables -save
iptables v1.2.11: no command specified
Try `iptables -h' or 'iptables --help' for more information.
[root@jacksun ~]#

离线caicuc.
发帖
2046
C币
-152383
威望
390
贡献值
1
银元
-1
铜钱
4661
人人网人气币
0
只看该作者 9楼 发表于: 2010-04-13
Apr  3 06:57:11 jacksun pptpd[10418]: CTRL: Client 60.209.209.171 control connection started
Apr  3 06:57:11 jacksun pptpd[10418]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 06:57:11 jacksun pppd[10419]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 06:57:11 jacksun pppd[10419]: pppd 2.4.3 started by root, uid 0
Apr  3 06:57:11 jacksun pppd[10419]: Using interface ppp0
Apr  3 06:57:11 jacksun pppd[10419]: Connect: ppp0 <--> /dev/pts/3
Apr  3 06:57:41 jacksun pppd[10419]: LCP: timeout sending Config-Requests
Apr  3 06:57:41 jacksun pppd[10419]: Connection terminated.
Apr  3 06:57:41 jacksun pppd[10419]: Using interface ppp0
Apr  3 06:57:41 jacksun pppd[10419]: Connect: ppp0 <--> /dev/pts/3
Apr  3 06:57:41 jacksun pppd[10419]: tcflush failed: Bad file descriptor
Apr  3 06:57:41 jacksun pppd[10419]: tcsetattr: Invalid argument (line 1016)
Apr  3 06:57:41 jacksun pppd[10419]: Exit.
Apr  3 06:57:41 jacksun pptpd[10418]: GRE: read(fd=6,buffer=804e5a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Apr  3 06:57:41 jacksun pptpd[10418]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Apr  3 06:57:41 jacksun pptpd[10418]: CTRL: Client 60.209.209.171 control connection finished
Apr  3 07:00:16 jacksun sysctl: kernel.sysrq = 0
Apr  3 07:00:16 jacksun sysctl: net.ipv4.ip_forward = 1
Apr  3 07:00:16 jacksun sysctl: net.ipv4.conf.default.accept_source_route = 0
Apr  3 07:00:16 jacksun sysctl: net.ipv4.conf.default.rp_filter = 1
Apr  3 07:00:16 jacksun sysctl: kernel.core_uses_pid = 1
Apr  3 07:00:16 jacksun NetworkManager: Setting network parameters:  succeeded
Apr  3 07:00:16 jacksun NetworkManager: starting...
Apr  3 07:00:17 jacksun kernel: MSI INIT SUCCESS
Apr  3 07:00:17 jacksun NetworkManager: nm_create_device_and_add_to_list(): adding device 'eth1' (wired)
Apr  3 07:00:17 jacksun NetworkManager: Nothing to flush.
Apr  3 07:00:17 jacksun NetworkManager: Error: network configuration for device 'eth0' was invalid (non-DCHP configuration, but no address/gateway specificed).  Will use DHCP instead.
Apr  3 07:00:17 jacksun NetworkManager: nm_create_device_and_add_to_list(): adding device 'eth0' (wired)
Apr  3 07:00:17 jacksun NetworkManager: RTNETLINK answers: File exists
Apr  3 07:00:17 jacksun NetworkManager: AUTO: Best wired device = eth0
Apr  3 07:00:17 jacksun NetworkManager: AUTO: Best wireless device = (null)  (null)
Apr  3 07:00:17 jacksun NetworkManager:     SWITCH: best device changed
Apr  3 07:00:17 jacksun NetworkManager: nm_state_modification_monitor(): beginning activation for device 'eth0'
Apr  3 07:00:17 jacksun NetworkManager: NetworkManager startup succeeded
Apr  3 07:00:18 jacksun NetworkManager: nm_state_modification_monitor() activated device eth0
Apr  3 07:01:26 jacksun pptpd[10633]: CTRL: Client 60.209.209.171 control connection started
Apr  3 07:01:26 jacksun pptpd[10633]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 07:01:26 jacksun pppd[10634]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 07:01:26 jacksun pppd[10634]: pppd 2.4.3 started by root, uid 0
Apr  3 07:01:26 jacksun pppd[10634]: Using interface ppp0
Apr  3 07:01:26 jacksun pppd[10634]: Connect: ppp0 <--> /dev/pts/3
Apr  3 07:01:56 jacksun pppd[10634]: LCP: timeout sending Config-Requests
Apr  3 07:01:56 jacksun pppd[10634]: Connection terminated.
Apr  3 07:01:56 jacksun pppd[10634]: Using interface ppp0
Apr  3 07:01:56 jacksun pppd[10634]: Connect: ppp0 <--> /dev/pts/3
Apr  3 07:01:56 jacksun pppd[10634]: tcflush failed: Bad file descriptor
Apr  3 07:01:56 jacksun pppd[10634]: tcsetattr: Invalid argument (line 1016)
Apr  3 07:01:56 jacksun pppd[10634]: Exit.
Apr  3 07:01:56 jacksun pptpd[10633]: GRE: read(fd=6,buffer=804e5a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Apr  3 07:01:56 jacksun pptpd[10633]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Apr  3 07:01:56 jacksun pptpd[10633]: CTRL: Client 60.209.209.171 control connection finished
Apr  3 07:02:06 jacksun hal.hotplug[10685]: timout(10000 ms) waiting for /class/net/ppp0
Apr  3 07:02:42 jacksun pptpd[10711]: CTRL: Client 60.209.209.171 control connection started
Apr  3 07:02:42 jacksun pptpd[10711]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 07:02:42 jacksun pppd[10712]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 07:02:42 jacksun pppd[10712]: pppd 2.4.3 started by root, uid 0
Apr  3 07:02:42 jacksun pppd[10712]: Using interface ppp0
Apr  3 07:02:42 jacksun pppd[10712]: Connect: ppp0 <--> /dev/pts/3
Apr  3 07:03:10 jacksun pppd[10712]: Modem hangup
Apr  3 07:03:10 jacksun pppd[10712]: Connection terminated.
Apr  3 07:03:10 jacksun pppd[10712]: Exit.
Apr  3 07:03:10 jacksun pptpd[10711]: CTRL: Client 60.209.209.171 control connection finished
Apr  3 07:03:23 jacksun pptpd[10751]: CTRL: Client 60.209.209.171 control connection started
Apr  3 07:03:23 jacksun pptpd[10751]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 07:03:23 jacksun pppd[10752]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 07:03:23 jacksun pppd[10752]: pppd 2.4.3 started by root, uid 0
Apr  3 07:03:23 jacksun pppd[10752]: Using interface ppp0
Apr  3 07:03:23 jacksun pppd[10752]: Connect: ppp0 <--> /dev/pts/3
Apr  3 07:03:28 jacksun pppd[10752]: Modem hangup
Apr  3 07:03:28 jacksun pppd[10752]: Connection terminated.
Apr  3 07:03:28 jacksun pppd[10752]: Exit.
Apr  3 07:03:28 jacksun pptpd[10751]: CTRL: Client 60.209.209.171 control connection finished
Apr  3 07:05:31 jacksun pptpd[10810]: CTRL: Client 60.209.209.171 control connection started
Apr  3 07:05:31 jacksun pptpd[10810]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 07:05:31 jacksun pppd[10811]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 07:05:31 jacksun pppd[10811]: pppd 2.4.3 started by root, uid 0
Apr  3 07:05:31 jacksun pppd[10811]: Using interface ppp0
Apr  3 07:05:31 jacksun pppd[10811]: Connect: ppp0 <--> /dev/pts/3
Apr  3 07:06:00 jacksun pppd[10811]: Modem hangup
Apr  3 07:06:00 jacksun pppd[10811]: Connection terminated.
Apr  3 07:06:00 jacksun pppd[10811]: Exit.
Apr  3 07:06:00 jacksun pptpd[10810]: CTRL: Client 60.209.209.171 control connection finished
Apr  3 07:08:25 jacksun pptpd[10879]: CTRL: Client 60.209.209.171 control connection started
Apr  3 07:08:26 jacksun pptpd[10879]: CTRL: Starting call (launching pppd, opening GRE)
Apr  3 07:08:26 jacksun pppd[10880]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Apr  3 07:08:26 jacksun pppd[10880]: pppd 2.4.3 started by root, uid 0
Apr  3 07:08:26 jacksun pppd[10880]: Using interface ppp0
Apr  3 07:08:26 jacksun pppd[10880]: Connect: ppp0 <--> /dev/pts/3
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
上一个 下一个