打印

help: pix525 vpn接入的问题

help: pix525 vpn接入的问题

user---internet---pix525---lan(130.58.1.0;10.0.0.0)
: Saved
: Written by enable_15 at 23:18:58.823 UTC Fri Jun 16 2006
!
PIX Version 7.1(2)
!
hostname mypix
enable password YNSAwVBizR encrypted
names
!
interface Ethernet0
nameif outside
security-level 0
ip address 220.106.217.44 255.255.255.0
!
interface Ethernet1
nameif inside
security-level 100
ip address 130.58.1.248 255.255.255.0
!
interface Ethernet2
shutdown
nameif intf2
security-level 4
no ip address
!
passwd YNSAwfBizR encrypted
boot system flash:/image.bin
ftp mode passive
same-security-traffic permit intra-interface
access-list 101 extended permit ip 130.0.0.0 255.0.0.0 130.58.1.0 255.255.255.0
access-list 101 extended permit ip 10.0.0.0 255.0.0.0 130.58.1.0 255.255.255.0
pager lines 24
mtu outside 1500
mtu inside 1500
mtu intf2 1500
ip local pool local_pool 130.58.1.65-130.58.1.126
asdm history enable
arp timeout 14400
nat-control
global (outside) 2 interface
nat (inside) 0 access-list 101
route outside 0.0.0.0 0.0.0.0 220.106.217.44 1
route inside 130.0.0.0 255.0.0.0 130.58.1.253 1
route inside 10.0.0.0 255.0.0.0 130.58.1.253 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00
timeout mgcp-pat 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server pix protocol radius
aaa-server pix host 130.58.1.10
key cisco
group-policy pix2 internal
group-policy pix2 attributes
dns-server value 10.210.1.25
vpn-idle-timeout 30
ipsec-udp enable
split-tunnel-policy tunnelall
nem enable
aaa accounting include tcp/0 outside 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 pix
http server enable
no snmp-server location
no snmp-server contact
snmp-server community public
snmp-server enable traps snmp authentication linkup linkdown coldstart
auth-prompt prompt Welcome to jybc!
auth-prompt accept welcome,body.
auth-prompt reject sorry,body.
crypto ipsec transform-set myset esp-3des esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 set transform-set myset
crypto map outside_map 20 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map interface outside
isakmp identity address
isakmp enable outside
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
isakmp policy 65535 authentication pre-share
isakmp policy 65535 encryption 3des
isakmp policy 65535 hash sha
isakmp policy 65535 group 2
isakmp policy 65535 lifetime 86400
isakmp nat-traversal 20
isakmp ipsec-over-tcp port 10000
tunnel-group pix2 type ipsec-ra
tunnel-group pix2 general-attributes
address-pool local_pool
authentication-server-group (outside) pix
default-group-policy pix2
tunnel-group pix2 ipsec-attributes
pre-shared-key pixcisco
telnet 130.58.1.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
ssh version 1
console timeout 0
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map global_policy
class inspection_default
inspect dns maximum-length 512
inspect ftp
inspect h323 h225
inspect h323 ras
inspect http
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
!
service-policy global_policy global
Cryptochecksum:25e703e58d40ddfabb39a
: end

问题是用户通过使用vpn client4.7软件拨入vpn服务器(pix)没问题,而且可以ping的通里面的服务器,但是不能访问里面的服务器的服务(比如80,21,23等),里面的lan也能ping通用户从地址池自动获得的地址,如果该用户使用了netmeeting,里面的lan还可以拨入。请问是哪里出问题了呢?sb help me,thank you in advance.

TOP

VPN client4.7装在哪个系统上?有可能是MTU问题
www.one-tom.com 本人为ITAA成员
Email:gotolab#Gmail.com
MSN:gotolab#hotmail.com
QQ:200306

TOP

Contents - IP Fragmentation and MTU Path Discovery with VPN
IP Fragmentation Issues

The IP protocol family was designed to use a wide variety of transmission links. The maximum IP packet length is 65000+ bytes. Most transmission links enforce a smaller maximum packet length limit, called maximum transmission unit, or MTU, which varies with the type of the transmission link. The design of IP accommodates link packet length limits by allowing intermediate routers to fragment IP packets as necessary for their outgoing links. The final destination of an IP packet is responsible for reassembling its fragments as necessary.

For example, the MTU for the most common encapsulation of IP over an Ethernet transmission link (RFC 894) is 1500 bytes. By convention the MTU includes the entire IP datagram, including all IP headers, but excludes link encapsulation headers. The extra link-level headers for the RFC 894 encapsulation comprise 18 bytes, for a maximum Ethernet frame size of 1518 bytes.

In theory fragmentation should be at worst a fairly minor performance issue, but in practice it can lead to a complete inability to communicate using long packets. Path MTU discovery, a common technique for avoiding fragmentation that is discussed below, can fail catastrophically.

A TCP connection has two ends, and fragmentation could occur in either direction. Two factors limit the maximum TCP packet length in each direction: the MTU of the source computer's outgoing interface, as seen by its IP stack, and the Maximum Segment Size (MSS), if any, that was announced by the destination computer during TCP setup. (MSS numbers are normally 40 bytes smaller than MTU numbers, since MSS excludes the 20-byte IP header and 20-byte TCP header.)

IPSec can make fragmentation problems worse, because it lengthens each IP packet by one, or possibly two, IP headers. These added headers vary in length by choice of IPSec protocols (and whether IntraPort's "NAT transparency" is also in use), but empirically they do not exceed 80 bytes per packet. For the most common encapsulation of IP over Ethernet, the standard MTU is 1500 bytes. But if an application emitted a 1500-byte packet that needed to travel though an IPSec tunnel, the added IPSec headers would require fragmentation of each packet. A good technique (the best technique, really) of avoiding fragmentation with IPSec is reducing the interface MTU that applications and the IP protocol stack see on both ends of the TCP connection. If the applications and the IP protocol stack think the interface MTU is 1420 bytes or less, they will not emit packets that need to be fragmented after IPSec encapsulation for transport through Ethernet-size-capable routers and links.

Path MTU Discovery

Path MTU discovery (PMTUD) is an optimization whereby a TCP connection attempts to send the longest packets that will not be fragmented along the path from source to destination. It does this by using a flag, DontFragment, in the IP packet. This flag is supposed to alter the behavior of an intermediate router that cannot send the packet across a link because it is too long. Normally the flag is off and the router should fragment the packet and send the fragments. But if the DontFragment flag is on, the router should discard the packet and return an error packet explaining the difficulty to the source of the original packet. PMTUD is a good idea in principle, but fragile in practice. With poor or badly configured TCP implementations and poorly-implemented routers or badly-configured firewalls, it can devolve to a persistent state in which each end of a TCP connection is waiting for the other end to say something. (A router / firewall where this problem occurs is amusingly called a path MTU discovery black hole.)

A source doing PMTUD starts with a maximum packet length that is the minimum of the outbound MTU of the interface and the announced MSS during TCP setup (if any) + 40, and works downward from that length to find a packet length that will arrive at the recipient even if the packet's DontFragment flag is set. If you've chosen your outbound MTU carefully (and your ISP carefully), packets of the initial maximum packet length will survive the trip without fragmentation. So if PMTUD is causing a problem, you can just turn it off with no performance penalty at all.

The IntraPort line of products support Path MTU Discovery. This can be turned on by configuring the following Keyword=value pairs in the General section: PreTunnelFragmentation=true, and MTUDiscoveryTimeout=10 .

More information regarding PMTUD can be found in RFC 1191, in the IETF web site.

Diagnosis

Suppose your remote computer is named Alpha, you're trying to access a server named Bravo through the IntraPort Client, and it's not working. Default ping packets are very short. If Bravo doesn't respond to "ping" (but bravo does respond to a "ping" from a computer on the local LAN), fragmentation is not the problem. Check basic connectivity. See if traceroute (or, under windows, tracert) to the IntraPort's IP address takes you through the right routers, or if it gets stuck in a "router loop" (ie, does it repeatedly bounce between the same couple of servers).

If Bravo does respond to a default ping, and if Alpha is a Windows computer, you can now try (from a DOS prompt) "ping -l 2000 Bravo's IP address". If you get a very high percentage of good replies (>95%), you know that fragmentation and reassembly must be working properly, since 2000-byte IP packets can't possibly travel unfragmented on an Ethernet. If you get no replies, or the percentage of lost replies greatly exceeds the percentage of lost replies for default-length ping packets, it is plausible that your problem is being caused by fragmentation.

When playing with Windows ping, be aware that when you specify "-l <n>", the IP packets you generate are actually <n> + 28 bytes long, by the same convention used in calculating MTU: all IP headers, no link level headers. Also be aware that you can set the DontFragment flag in your ping packets: it's the "-f" parameter. If you send a long packet with the "-f" flag set and you hear no apology and no reply, you might be seeing a PMTUD black hole. You might even locate it by using "tracert" (Windows traceroute) to analyze the router chain between you and your destination, and "ping" to investigate each router.

Fragmentation-Related Configuration Parameters for Various Client Computer Operating Systems

Windows 9x

An optional registry parameter MaxMTU can be associated with adapter bindings. It apparently influences the outbound MTU as seen by the IP protocol stack, and the announced MSS during TCP setup. If MaxMTU is missing from a binding, the default MTU for the adapter (1500 for Ethernet) is assumed. If you're seeing fragmentation troubles, set MaxMTU on your active TCP network interface to 1420. If you've done that (rebooted) and you're still having trouble, I suggest that you set the registry parameter PMTUDiscovery explicitly to 0.

For details on where to find the parameters, read the Microsoft knowledgebase article Q158474. The MaxMTU parameter is tricky: it's not easy to figure out which binding (indexed by four decimal digits) is the one you want (hint: look for the IP address), and fairly minor changes in your networking configuration can make the parameter disappear. You can try the trialware utility TweakDUN or the optionware utility MTUSpeed if you'd prefer not to risk your OS installation with manual registry-hacking.

Windows NT4.0

For general information on NT IP registry parameters, read the Microsoft knowledgebase article Q120642. Article Q183229 goes into specific detail about the interactions of MTU with Remote Access Services, which IntraPort Client's up to version 3.3.x uses. The article seems to suggest that you are stuck with an MTU of 1500 for RAS unless you install at least SP4 and then make the indicated registry changes. You can try the trialware utility TweakDUN if you'd prefer not to risk your OS installation with manual registry-hacking.

MacOS

There doesn't seem to be a manual way of adjusting MTU on a Macintosh. Fortunately, there's the trialware utility OT Advanced Tuner, which bears remarkable similarity to Solaris' ndd below.

Unix

Different flavors of Unix do it differently. The utility ifconfig can be used (as root) to alter an interface's MTU. With older Unix's changing other parameters usually requires recompiling the kernel. With newer Unix's the parameter values are typically changeable at runtime using administrative utilities. Solaris 2.2 and later, for example, has an administrative utility ndd, while 4.4BSD and later uses the utility sysctl. Check your man pages, and/or read "TCP/IP Illustrated, Volume 1", by W. Richard Stevens, an excellent book that covers the subject.
www.one-tom.com 本人为ITAA成员
Email:gotolab#Gmail.com
MSN:gotolab#hotmail.com
QQ:200306

TOP

装的是winxp sp2,mtu默认的,

TOP

你看上面那个文档能否解决问题
www.one-tom.com 本人为ITAA成员
Email:gotolab#Gmail.com
MSN:gotolab#hotmail.com
QQ:200306

TOP

没用,试过了mtu设置为1500

TOP

引用:
原帖由 hotmango 于 2006-6-19 19:10 发表
没用,试过了mtu设置为1500
上面的文档即指出MTU设置为1500会引起问题。
www.one-tom.com 本人为ITAA成员
Email:gotolab#Gmail.com
MSN:gotolab#hotmail.com
QQ:200306

TOP

在windows下ping x.x.x.x 加上参数 -l 2000,如果能够收到正常回复,即MTU算是没问题。
www.one-tom.com 本人为ITAA成员
Email:gotolab#Gmail.com
MSN:gotolab#hotmail.com
QQ:200306

TOP