分页: 1 / 1

[问题]对VPN彻底绝望了

发表于 : 2007-11-29 13:07
percy
详情请看这里
viewtopic.php?t=92184

下面是执行sudo pon vpnnet
后的结果
代码:
ifconfig
eth0 链路封装:以太网 硬件地址 00:E0:4D:1B:76:9C
inet 地址:10.0.1.112 广播:10.0.1.255 掩码:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 跃点数:1
接收数据包:65566 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:9448 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:15392674 (14.6 MB) 发送字节:2035599 (1.9 MB)
中断:16

lo 链路封装:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:73 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:73 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:6052 (5.9 KB) 发送字节:6052 (5.9 KB)

ppp0 链路封装:点对点协议
inet 地址:10.0.207.178 点对点:10.0.206.1 掩码:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 跃点数:1
接收数据包:9 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:111 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:3
接收字节:90 (90.0 b) 发送字节:9039 (8.8 KB)


VPN服务器IP是:210.29.96.58
我的电脑IP是手动设置的为:10.0.1.112
我这里局域网网关IP是:10.0.1.1
麻烦哪个高手看一个,不甚感激
代码:

sudo gedit /etc/ppp/peers/vpnnet

pty "pptp 210.29.96.58 --nolaunchpppd"
name test
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn




代码:
sudo gedit /etc/ppp/options.pptp
###############################################################################
# $Id: options.pptp,v 1.1 2005/02/18 01:40:23 quozl Exp $
#
# Sample PPTP PPP options file /etc/ppp/options.pptp
# Options used by PPP when a connection is made by a PPTP client.
# This file can be referred to by an /etc/ppp/peers file for the tunnel.
# 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 or later from http://ppp.samba.org/
# and the kernel MPPE module available from the CVS repository also on
# http://ppp.samba.org/, which is packaged for DKMS as kernel_ppp_mppe.
###############################################################################

# Lock the port
lock

# Authentication
# We don't need the tunnel server to authenticate itself
noauth

# We won't do EAP, CHAP, or MSCHAP, but we will accept MSCHAP-V2
refuse-eap
refuse-chap
refuse-mschap

# Compression
# Turn off compression protocols we know won't be used
nobsdcomp
nodeflate

# Encryption
# (There have been multiple versions of PPP with encryption support,
# choose with of the following sections you will use. Note that MPPE
# requires the use of MSCHAP-V2 during authentication)

# http://ppp.samba.org/ the PPP project version of PPP by Paul Mackarras
# ppp-2.4.2 or later with MPPE only, kernel module ppp_mppe.o
# {{{
# Require MPPE 128-bit encryption
require-mppe-128
# }}}

# http://polbox.com/h/hs001/ fork from PPP project by Jan Dubiec
# ppp-2.4.2 or later with MPPE and MPPC, kernel module ppp_mppe_mppc.o
# {{{
# Require MPPE 128-bit encryption
#mppe required,stateless
# }}}