Cisco 877 <-> iphone dynamic-vpn con ipsec
Inviato: lun 01 feb , 2010 3:22 pm
Ciao,
è da qualche giorno che stò litigando con il mio 877 e l'iphone per creare una vpn tra i due. L'iphone si collega ma dopo non riesce a raggiungere nessuna delle macchine in lan. Se provo a collegarmi tramite vpnc o client ufficiale cisco ottengo:
S4.5 AM_packet3
[2010-02-01 15:10:34]
NAT status: this end behind NAT? YES -- remote end behind NAT? no
NAT-T mode, adding non-esp marker
vpnc: no response from target
vedo i pacchetti dalla mia adsl di casa arrivare ma il client sembra non interpretarli. Che sia un problema di nat-traversal ?
A seguito la mia configurazione:
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp keepalive 10
crypto isakmp nat keepalive 20
crypto isakmp xauth timeout 90
crypto isakmp client configuration group remote-vpn
key ZHZxZfu2S1L7GKN3d6j
dns 212.216.112.112
pool remote-pool
acl 158
save-password
max-users 3
max-logins 2
!
crypto ipsec security-association idle-time 3600
!
crypto ipsec transform-set VPN-CLI-SET esp-3des esp-md5-hmac
!
crypto dynamic-map remote-dyn 10
set transform-set VPN-CLI-SET
!
!
crypto map remotemap local-address Dialer0
crypto map remotemap client authentication list userauthen
crypto map remotemap isakmp authorization list groupauthor
crypto map remotemap client configuration address respond
crypto map remotemap 65535 ipsec-isakmp dynamic remote-dyn
interface Loopback0
no ip address
interface Dialer0
description Alice
ip address negotiated
ip access-group 131 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip verify unicast reverse-path
ip nat outside
ip inspect Firewall out
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname aliceadsl
crypto map remotemap
!
!
ip local pool remote-pool 10.0.69.0 10.0.69.7
p nat pool pool1 10.0.77.0 10.0.78.0 netmask 0.0.0.255
ip nat inside source list 1 interface Dialer0 overload
ip nat inside source static tcp 192.168.1.75 80 interface Dialer0 80
ip nat inside source static tcp 10.0.77.13 60000 interface Dialer0 60000
ip nat inside source static tcp 10.0.77.13 22 interface Dialer0 60022
ip nat inside source static tcp 10.0.77.13 9000 interface Dialer0 9000
ip nat inside source static tcp 10.0.77.13 60009 interface Dialer0 60009
ip nat inside source static udp 10.0.77.13 60009 interface Dialer0 60009
ip nat inside source static udp 10.0.77.13 60012 interface Dialer0 60012
ip route 0.0.0.0 0.0.0.0 Dialer0
ip route 10.0.69.0 255.255.255.248 Dialer0
!
!
access-list 1 permit 10.0.77.0 0.0.0.255
access-list 100 permit ip any any
access-list 100 permit icmp any any
access-list 101 permit ip any any
access-list 101 permit icmp any any
access-list 110 remark *** ACL nonat ***
access-list 110 deny ip 10.0.77.0 0.0.0.255 10.0.69.0 0.0.0.248
access-list 110 permit ip 10.0.77.0 0.0.0.255 any
access-list 131 remark *** ACL outside ***
access-list 131 permit icmp any any echo
access-list 131 permit icmp any any echo-reply
access-list 131 permit icmp any any time-exceeded
access-list 131 permit icmp any any unreachable
access-list 131 permit icmp any any administratively-prohibited
access-list 131 permit icmp any any packet-too-big
access-list 131 permit icmp any any traceroute
access-list 131 deny icmp any any
access-list 131 permit tcp 84.247.192.0 0.0.63.255 any eq 22
access-list 131 permit tcp any any eq 60009
access-list 131 permit udp any any eq 60009
access-list 131 permit udp any any eq 60012
access-list 131 permit udp any any eq isakmp
access-list 131 permit ip 10.0.69.0 0.0.0.248 10.0.77.0 0.0.0.255
access-list 158 remark *** ACL split-tunnel vpnclient ***
access-list 158 permit ip 10.0.77.0 0.0.0.255 10.0.69.0 0.0.0.248
access-list 180 permit ip any any
dialer-list 1 protocol ip permit
dialer-list 2 protocol ip permit
!
!
!
!
route-map nonat permit 10
match ip address 110
è da qualche giorno che stò litigando con il mio 877 e l'iphone per creare una vpn tra i due. L'iphone si collega ma dopo non riesce a raggiungere nessuna delle macchine in lan. Se provo a collegarmi tramite vpnc o client ufficiale cisco ottengo:
S4.5 AM_packet3
[2010-02-01 15:10:34]
NAT status: this end behind NAT? YES -- remote end behind NAT? no
NAT-T mode, adding non-esp marker
vpnc: no response from target
vedo i pacchetti dalla mia adsl di casa arrivare ma il client sembra non interpretarli. Che sia un problema di nat-traversal ?
A seguito la mia configurazione:
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
lifetime 3600
crypto isakmp keepalive 10
crypto isakmp nat keepalive 20
crypto isakmp xauth timeout 90
crypto isakmp client configuration group remote-vpn
key ZHZxZfu2S1L7GKN3d6j
dns 212.216.112.112
pool remote-pool
acl 158
save-password
max-users 3
max-logins 2
!
crypto ipsec security-association idle-time 3600
!
crypto ipsec transform-set VPN-CLI-SET esp-3des esp-md5-hmac
!
crypto dynamic-map remote-dyn 10
set transform-set VPN-CLI-SET
!
!
crypto map remotemap local-address Dialer0
crypto map remotemap client authentication list userauthen
crypto map remotemap isakmp authorization list groupauthor
crypto map remotemap client configuration address respond
crypto map remotemap 65535 ipsec-isakmp dynamic remote-dyn
interface Loopback0
no ip address
interface Dialer0
description Alice
ip address negotiated
ip access-group 131 in
no ip redirects
no ip unreachables
no ip proxy-arp
ip verify unicast reverse-path
ip nat outside
ip inspect Firewall out
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname aliceadsl
crypto map remotemap
!
!
ip local pool remote-pool 10.0.69.0 10.0.69.7
p nat pool pool1 10.0.77.0 10.0.78.0 netmask 0.0.0.255
ip nat inside source list 1 interface Dialer0 overload
ip nat inside source static tcp 192.168.1.75 80 interface Dialer0 80
ip nat inside source static tcp 10.0.77.13 60000 interface Dialer0 60000
ip nat inside source static tcp 10.0.77.13 22 interface Dialer0 60022
ip nat inside source static tcp 10.0.77.13 9000 interface Dialer0 9000
ip nat inside source static tcp 10.0.77.13 60009 interface Dialer0 60009
ip nat inside source static udp 10.0.77.13 60009 interface Dialer0 60009
ip nat inside source static udp 10.0.77.13 60012 interface Dialer0 60012
ip route 0.0.0.0 0.0.0.0 Dialer0
ip route 10.0.69.0 255.255.255.248 Dialer0
!
!
access-list 1 permit 10.0.77.0 0.0.0.255
access-list 100 permit ip any any
access-list 100 permit icmp any any
access-list 101 permit ip any any
access-list 101 permit icmp any any
access-list 110 remark *** ACL nonat ***
access-list 110 deny ip 10.0.77.0 0.0.0.255 10.0.69.0 0.0.0.248
access-list 110 permit ip 10.0.77.0 0.0.0.255 any
access-list 131 remark *** ACL outside ***
access-list 131 permit icmp any any echo
access-list 131 permit icmp any any echo-reply
access-list 131 permit icmp any any time-exceeded
access-list 131 permit icmp any any unreachable
access-list 131 permit icmp any any administratively-prohibited
access-list 131 permit icmp any any packet-too-big
access-list 131 permit icmp any any traceroute
access-list 131 deny icmp any any
access-list 131 permit tcp 84.247.192.0 0.0.63.255 any eq 22
access-list 131 permit tcp any any eq 60009
access-list 131 permit udp any any eq 60009
access-list 131 permit udp any any eq 60012
access-list 131 permit udp any any eq isakmp
access-list 131 permit ip 10.0.69.0 0.0.0.248 10.0.77.0 0.0.0.255
access-list 158 remark *** ACL split-tunnel vpnclient ***
access-list 158 permit ip 10.0.77.0 0.0.0.255 10.0.69.0 0.0.0.248
access-list 180 permit ip any any
dialer-list 1 protocol ip permit
dialer-list 2 protocol ip permit
!
!
!
!
route-map nonat permit 10
match ip address 110