I've just send you a PM,
for learning purposes for other internet users;
Subject: Unable to connect IPSEC VPN PIX-to-PIX or Pix-to-DSL modemimamuzic wrote:
MonkeyBallz wrote:
well.. i think i was celebrating a bit too early...
the tunnel gets created when i send ICMP traffic from the A-end to the B-end.. and from there everything works.. but the tunnel disconnects after a certain amount of time..
when i try to re-establish a connection from the B-end to the A-end (as the B-end is a 24x7 site) the ICMP traffic times out..
looks to be a issue on the A-end.. but not sure..
Hi...sorry for the late response but I couldn't catch some free time to get to the forum.
Now regarding your issue... It must be something filtering out ISAKMP packets from B. It looks like statefull firewall behavior so you can only start ISAKMP communication from A and then A firewall will let returning packets from B to pass once you have "session" established.
You must syslog from A to see if something is blocking traffic. Send me your A outside interface config if you 're unable to do syslogging. Maybe I can spot the problem. Of course also send any access lists you have applied on A end outside interface (towards B).
hi Igor,
first off thank you for the help you've provided so far.. but i'm stuck now..
A-end (PIX 506E config)
Code:
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password ddOHAtqKycsZjCpQ encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname PIX506
domain-name TestingGroundForNuts
clock timezone CEST 1
clock summer-time CEDT recurring last Sun Mar 2:00 last Sun Oct 3:00
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
object-group service Mailserver tcp
port-object eq https
port-object eq smtp
access-list inside_access_in permit ip any any
access-list outside_access_in permit tcp any host A.A.A.121 eq 442
access-list outside_access_in permit tcp any host A.A.A.121 eq 444
access-list outside_access_in permit tcp any host A.A.A.121 eq https
access-list outside_access_in permit tcp any host A.A.A.122 object-group Mailserver
access-list outside_access_in remark RDP Toegang FuTec
access-list outside_access_in deny tcp 193.172.85.0 255.255.255.0 host A.A.A.122 eq 3389
access-list outside_access_in permit icmp any host A.A.A.123 echo
access-list 120 permit ip 192.168.1.0 255.255.255.0 192.168.3.0 255.255.255.0
access-list 120 permit icmp any any
access-list 100 permit ip 192.168.1.0 255.255.255.0 192.168.3.0 255.255.255.0
access-list 100 permit icmp any any
pager lines 24
logging on
logging timestamp
logging standby
logging console informational
logging monitor debugging
logging buffered debugging
logging trap emergencies
logging history emergencies
logging queue 0
mtu outside 1500
mtu inside 1500
ip address outside A.A.A.123 255.255.255.248
ip address inside 192.168.1.71 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool ippool 192.168.10.1-192.168.10.100
pdm location W2k3server1 255.255.255.255 inside
pdm location Citrix01 255.255.255.255 inside
pdm location 0.0.0.0 255.255.255.248 inside
pdm location 193.172.85.0 255.255.255.0 outside
pdm location 192.168.1.0 255.255.255.255 inside
pdm location 0.0.0.0 255.255.255.255 inside
pdm location 172.16.1.0 255.255.255.240 outside
pdm location 192.168.2.0 255.255.255.0 outside
pdm location 192.168.3.0 255.255.255.0 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list 100
nat (inside) 1 192.168.1.0 255.255.255.0 0 0
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) A.A.A.121 Citrix01 netmask 255.255.255.255 0 0
static (inside,outside) A.A.A.122 W2k3server1 netmask 255.255.255.255 0 0
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 A.A.A.126 1
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout sip-disconnect 0:02:00 sip-invite 0:03:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set myset esp-des esp-md5-hmac
crypto ipsec security-association lifetime seconds 3600
crypto map test 20 ipsec-isakmp
crypto map test 20 match address 120
crypto map test 20 set peer B.B.B.B
crypto map test 20 set transform-set myset
crypto map test interface outside
isakmp enable outside
isakmp key ******** address B.B.B.B netmask 255.255.255.255 no-xauth no-config-mode
isakmp identity address
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption des
isakmp policy 10 hash md5
isakmp policy 10 group 1
isakmp policy 10 lifetime 86400
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.1.0 255.255.255.0 inside
ssh timeout 5
management-access inside
console timeout 0
dhcpd address 192.168.1.101-192.168.1.254 inside
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
username jasair password cBeo0AYYNWfWJt3h encrypted privilege 15
terminal width 80
Cryptochecksum:0e55e482acba654ab9785a9897454aee
: end
B-end config:
Code:
no parser cache
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname B-End
!
boot-start-marker
boot-end-marker
!
logging buffered 4096 debugging
no logging console
enable password ij553l
!
no aaa new-model
!
resource policy
!
ip subnet-zero
ip cef
!
!
ip dhcp use vrf connected
ip dhcp excluded-address 192.168.197.1 192.168.197.100
!
ip dhcp pool local
network 192.168.3.0 255.255.255.0
default-router 192.168.3.71
dns-server 194.151.228.18 194.151.228.34
!
!
ip inspect name myfw cuseeme timeout 3600
ip inspect name myfw ftp timeout 3600
ip inspect name myfw rcmd timeout 3600
ip inspect name myfw realaudio timeout 3600
ip inspect name myfw smtp timeout 3600
ip inspect name myfw tftp timeout 30
ip inspect name myfw udp timeout 15
ip inspect name myfw tcp timeout 3600
!
!
!
!
!
controller DSL 0
mode atm
line-term cpe
line-mode auto
dsl-mode shdsl symmetric annex B
line-rate 2304
!
!
crypto isakmp policy 20
hash md5
authentication pre-share
crypto isakmp key ************ address A.A.A.123
!
!
crypto ipsec transform-set myset esp-des esp-md5-hmac
!
!
crypto map vpnset 10 ipsec-isakmp
set peer A.A.A.123
set transform-set myset
match address 100
!
bridge irb
!
!
!
interface Tunnel1
no ip address
!
interface Loopback0
no ip address
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface ATM0
no ip address
loopback
no atm ilmi-keepalive
!
interface ATM0.1 point-to-point
description To IAS over ADSL Access Router
pvc 2/32
ubr 500
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface FastEthernet0
no cdp enable
hold-queue 32 in
hold-queue 100 out
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface Virtual-Template2
no ip address
!
interface Virtual-Template3
no ip address
!
interface Virtual-Template1
no ip address
loopback
!
interface Vlan1
description *** LAN IP ***
ip address 192.168.3.71 255.255.255.0
ip nat inside
ip inspect myfw in
ip virtual-reassembly
no ip mroute-cache
hold-queue 32 in
hold-queue 100 out
!
interface Dialer0
description *** WAN IP xxx.xxx.xxx.xxx ***
ip address negotiated
ip access-group 111 in
ip verify unicast reverse-path
ip mtu 1492
ip nat outside
ip inspect myfw in
ip inspect myfw out
ip virtual-reassembly
encapsulation ppp
ip tcp adjust-mss 1452
loopback
dialer pool 1
dialer-group 1
no cdp enable
ppp authentication chap pap callin
ppp chap hostname *********
ppp chap password 0 *********
ppp pap sent-username ********* password 0 *********
ppp ipcp dns request
ppp ipcp mask request
ppp ipcp address accept
crypto map vpnset
hold-queue 224 in
!
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
ip route 192.168.3.0 255.255.255.255 192.168.1.0
ip route 192.168.3.0 255.255.255.255 A.A.A.123
!
!
no ip http server
no ip http secure-server
ip nat inside source list 101 interface Vlan1 overload
!
logging history emergencies
logging trap emergencies
access-list 23 permit A.A.A.126
access-list 23 remark ***CK to Cisco***
access-list 23 permit A.A.A.0 0.0.0.255
access-list 23 permit 192.168.1.0 0.0.0.255
access-list 23 permit 192.168.3.0 0.0.0.255
access-list 23 permit 192.168.2.0 0.0.0.255
access-list 100 permit ip 192.168.3.0 0.0.0.255 192.168.1.0 0.0.0.255
access-list 101 deny ip 192.168.3.0 0.0.0.255 192.168.0.0 0.0.0.255
access-list 101 permit ip 192.168.3.0 0.0.0.255 any
access-list 111 remark *** Van internet naar binnen ***
access-list 111 permit tcp any any eq telnet
access-list 111 permit udp any any eq bootpc
access-list 111 permit udp any any eq isakmp
access-list 111 permit esp any any
access-list 111 permit ip A.A.A.0 0.0.0.255 any
access-list 111 remark *** Van internet naar binnen ***
dialer-list 1 protocol ip permit
!
route-map nonat permit 10
match ip address 101
!
!
control-plane
The problems that i have now is that the tunnel gets created from the A-end only,
if i try to create the tunnel from the inside address of the B-end
Code:
B-end#ping 192.168.1.1 source 192.168.3.71
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.3.71
.....
Success rate is 0 percent (0/5)
Outside addresses are unavailable as soon as the tunnel gets created:
Code:
PING 192.168.3.71 (192.168.3.71): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
64 bytes from 192.168.3.71: icmp_seq=2 ttl=255 time=120.984 ms
64 bytes from 192.168.3.71: icmp_seq=3 ttl=255 time=176.553 ms
64 bytes from 192.168.3.71: icmp_seq=4 ttl=255 time=217.298 ms
64 bytes from 192.168.3.71: icmp_seq=5 ttl=255 time=274.388 ms
64 bytes from 192.168.3.71: icmp_seq=6 ttl=255 time=107.458 ms
-------
PING B.B.B.B (B.B.B.B.): 56 data bytes (public ip)
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
and last but not least.. as the tunnel is created.. ping goes trough from internal address to internal addres.. but no other traffic.. from the B-end all other connectivity drops.. so the VPN light is nice and green but the internet and other services are unavailable...
---
my 2 cents;
from my point of view it looks like a route on the B-end is incorrect and from the A-end it's the ACL, the only thing is that i'm confused on whats what.. :S