03-27-2013 05:47 AM - edited 03-11-2019 06:20 PM
Hello,
We have 2 subnets in differnet locations, both are connected via IPSec VPN, 192.168.1.0 and 192.168.2.0
Can access 192.168.1.2 to 192.168.2.2 and vice versa but from other IP not possible
x.x.x.x indicates public ip of HO
xx.xx.xx.xx indicates public ip of branch
In HO [192.168.1.0] using cisco 1941 please see the below config
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname HO
!
boot-start-marker
boot system flash0 c1900-universalk9-mz.SPA.152-2.T.bin
boot-end-marker
!
!
enable secret 5 $1$OAdT$6oO4MRgeqLLswhYJ1MrQ1/
!
no aaa new-model
!
!
no ipv6 cef
ip auth-proxy max-login-attempts 5
ip admission max-login-attempts 5
!
!
!
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.2 192.168.1.49
!
!
ip name-server x.x.x.x
ip name-server x.x.x.x
ip cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-4155682894
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-4155682894
revocation-check none
rsakeypair TP-self-signed-4155682894
!
!
crypto pki certificate chain TP-self-signed-4155682894
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 34313535 36383238 3934301E 170D3132 31313231 30323033
30345A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D34 31353536
38323839 3430819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100C569 6AE9BC8C B3151335 D5B65344 CE66C09D 21397F80 B61A1B88 18CD5647
2C17C13E 6E40BD61 CC40EB38 06C45B2E 9B90346D 93594CFC 104CD1F6 FC00ECA4
3849440F 81130037 7F4C8600 C59E8B2C 77D40781 55714284 CF3B1622 528A3B56
4CF2FA62 1AC88250 33C9D8E7 CF868D5F 456C8C03 3D387DD6 BB9F1405 6B713899
551D0203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 142A4B7F 1185A51A 72C6E1ED FB8C94A5 60FCA1FD 75301D06
03551D0E 04160414 2A4B7F11 85A51A72 C6E1EDFB 8C94A560 FCA1FD75 300D0609
2A864886 F70D0101 05050003 81810071 863A10FA 57C3350F 6D9D47C7 5CAF71FD
6C7B4E05 001CF020 FDD65D31 0222968A B5992645 89164D80 E3022EA4 2D0A4F66
5B0FC75D 98C3E547 07612401 FF90AED6 127C186C 6220E15C 7E8BB62A E2C6D151
09CDE38E FD5F1D4C 4F4137D7 45BE3B8C A6354921 784DD88A 75A95737 46D0BD36
A83F6B52 74C15C46 37C727ED 1569BC
quit
license udi pid CISCO1941/K9 sn FCZ1523C51L
license boot module c1900 technology-package datak9
!
!
username admin privilege 15 secret 5 $1$nZ..$VIWkm8aaxLSpX1M4EaQrc0
!
redundancy
crypto isakmp policy 2
authentication pre-share
crypto isakmp key cisco123 address xx.xx.xx.xx
!
!
crypto ipsec transform-set ASA-IPSEC esp-des esp-sha-hmac
crypto map SDM_CMAP_1 1 ipsec-isakmp
set peer xx.xx.xx.xx
set transform-set ASA-IPSEC
match address 100
interface Tunnel0
no ip address
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description connection to dreamnet
ip address x.x.x.x 255.255.255.252
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
crypto map SDM_CMAP_1
!
interface GigabitEthernet0/1
description local lan interface $ES_LAN$
ip address x.x.x.x 255.255.255.248
ip virtual-reassembly in
duplex auto
speed auto
!
interface FastEthernet0/1/0
ip address 192.168.1.7 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
ip forward-protocol nd
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
ip nat inside source route-map nonat interface GigabitEthernet0/0 overload
ip route 0.0.0.0 0.0.0.0 x.x.x.x
!
access-list 100 remark SDM_ACL category=4
access-list 100 remark IPSec Rule
access-list 100 permit ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 110 deny ip 192.168.1.0 0.0.0.255 192.168.2.0 0.0.0.255
access-list 110 permit ip 192.168.1.0 0.0.0.255 any
!
route-map nonat permit 10
match ip address 110
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
privilege level 15
login local
transport input telnet
!
scheduler allocate 20000 1000
!
end
In Branch [192.168.2.0] using cisco asa 5510 please see the below config
ASA Version 8.2(5)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
nameif Sat
security-level 0
ip address 192.168.3.200 255.255.255.0
!
interface Ethernet0/1
nameif Lan
security-level 100
ip address 192.168.2.1 255.255.255.0
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
nameif management
security-level 100
ip address 192.168.10.1 255.255.255.0
management-only
!
ftp mode passive
clock timezone AST 3
object-group protocol DM_INLINE_PROTOCOL_1
protocol-object ip
protocol-object icmp
access-list Sat_access_in extended permit object-group DM_INLINE_PROTOCOL_1 host x.x.x.x host xx.xx.xx.xx
access-list Lan_nat0_outbound extended permit ip any 192.168.2.192 255.255.255.224
access-list Lan_nat0_outbound extended permit ip 192.168.2.0 255.255.255.0 192.168.1.0 255.255.255.0
access-list Sat_1_cryptomap extended permit ip 192.168.2.0 255.255.255.0 192.168.1.0 255.255.255.0
pager lines 24
logging enable
logging asdm informational
mtu Sat 1500
<--- More --->
mtu Lan 1500
mtu Lan1 1500
mtu management 1500
ip local pool pool 192.168.2.201-192.168.2.210 mask 255.255.255.0
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (Sat) 1 interface
nat (Lan) 0 access-list Lan_nat0_outbound
nat (Lan) 1 0.0.0.0 0.0.0.0
route Sat 0.0.0.0 0.0.0.0 192.168.3.1 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 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.10.0 255.255.255.0 management
http 192.168.1.0 255.255.255.0 Sat
http x.x.x.x 255.255.255.240 Sat
<--- More --->
http xx.xx.xx.xx 255.255.255.0 Sat
http 192.168.2.0 255.255.255.0 Lan
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto map Sat_map 1 match address Sat_1_cryptomap
crypto map Sat_map 1 set pfs group1
crypto map Sat_map 1 set peer x.x.x.x
crypto map Sat_map 1 set transform-set ESP-DES-SHA
crypto map Sat_map interface Sat
crypto ca trustpoint _SmartCallHome_ServerCA
crl configure
<--- More --->
crypto ca certificate chain _SmartCallHome_ServerCA
certificate ca 6ecc7aa5a7032009b8cebcf4e952d491
308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130
0d06092a 864886f7 0d010105 05003081 ca310b30 09060355 04061302 55533117
30150603 55040a13 0e566572 69536967 6e2c2049 6e632e31 1f301d06 0355040b
13165665 72695369 676e2054 72757374 204e6574 776f726b 313a3038 06035504
0b133128 63292032 30303620 56657269 5369676e 2c20496e 632e202d 20466f72
20617574 686f7269 7a656420 75736520 6f6e6c79 31453043 06035504 03133c56
65726953 69676e20 436c6173 73203320 5075626c 69632050 72696d61 72792043
65727469 66696361 74696f6e 20417574 686f7269 7479202d 20473530 1e170d31
30303230 38303030 3030305a 170d3230 30323037 32333539 35395a30 81b5310b
30090603 55040613 02555331 17301506 0355040a 130e5665 72695369 676e2c20
496e632e 311f301d 06035504 0b131656 65726953 69676e20 54727573 74204e65
74776f72 6b313b30 39060355 040b1332 5465726d 73206f66 20757365 20617420
68747470 733a2f2f 7777772e 76657269 7369676e 2e636f6d 2f727061 20286329
3130312f 302d0603 55040313 26566572 69536967 6e20436c 61737320 33205365
63757265 20536572 76657220 4341202d 20473330 82012230 0d06092a 864886f7
0d010101 05000382 010f0030 82010a02 82010100 b187841f c20c45f5 bcab2597
a7ada23e 9cbaf6c1 39b88bca c2ac56c6 e5bb658e 444f4dce 6fed094a d4af4e10
9c688b2e 957b899b 13cae234 34c1f35b f3497b62 83488174 d188786c 0253f9bc
7f432657 5833833b 330a17b0 d04e9124 ad867d64 12dc744a 34a11d0a ea961d0b
15fca34b 3bce6388 d0f82d0c 948610ca b69a3dca eb379c00 48358629 5078e845
63cd1941 4ff595ec 7b98d4c4 71b350be 28b38fa0 b9539cf5 ca2c23a9 fd1406e8
18b49ae8 3c6e81fd e4cd3536 b351d369 ec12ba56 6e6f9b57 c58b14e7 0ec79ced
<--- More --->
4a546ac9 4dc5bf11 b1ae1c67 81cb4455 33997f24 9b3f5345 7f861af3 3cfa6d7f
81f5b84a d3f58537 1cb5a6d0 09e4187b 384efa0f 02030100 01a38201 df308201
db303406 082b0601 05050701 01042830 26302406 082b0601 05050730 01861868
7474703a 2f2f6f63 73702e76 65726973 69676e2e 636f6d30 12060355 1d130101
ff040830 060101ff 02010030 70060355 1d200469 30673065 060b6086 480186f8
45010717 03305630 2806082b 06010505 07020116 1c687474 70733a2f 2f777777
2e766572 69736967 6e2e636f 6d2f6370 73302a06 082b0601 05050702 02301e1a
1c687474 70733a2f 2f777777 2e766572 69736967 6e2e636f 6d2f7270 61303406
03551d1f 042d302b 3029a027 a0258623 68747470 3a2f2f63 726c2e76 65726973
69676e2e 636f6d2f 70636133 2d67352e 63726c30 0e060355 1d0f0101 ff040403
02010630 6d06082b 06010505 07010c04 61305fa1 5da05b30 59305730 55160969
6d616765 2f676966 3021301f 30070605 2b0e0302 1a04148f e5d31a86 ac8d8e6b
c3cf806a d448182c 7b192e30 25162368 7474703a 2f2f6c6f 676f2e76 65726973
69676e2e 636f6d2f 76736c6f 676f2e67 69663028 0603551d 11042130 1fa41d30
1b311930 17060355 04031310 56657269 5369676e 4d504b49 2d322d36 301d0603
551d0e04 1604140d 445c1653 44c1827e 1d20ab25 f40163d8 be79a530 1f060355
1d230418 30168014 7fd365a7 c2ddecbb f03009f3 4339fa02 af333133 300d0609
2a864886 f70d0101 05050003 82010100 0c8324ef ddc30cd9 589cfe36 b6eb8a80
4bd1a3f7 9df3cc53 ef829ea3 a1e697c1 589d756c e01d1b4c fad1c12d 05c0ea6e
b2227055 d9203340 3307c265 83fa8f43 379bea0e 9a6c70ee f69c803b d937f47a
6decd018 7d494aca 99c71928 a2bed877 24f78526 866d8705 404167d1 273aeddc
481d22cd 0b0b8bbc f4b17bfd b499a8e9 762ae11a 2d876e74 d388dd1e 22c6df16
b62b8214 0a945cf2 50ecafce ff62370d ad65d306 4153ed02 14c8b558 28a1ace0
5becb37f 954afb03 c8ad26db e6667812 4ad99f42 fbe198e6 42839b8f 8f6724e8
<--- More --->
6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28
6c2527b9 deb78458 c61f381e a4c4cb66
quit
crypto isakmp identity address
crypto isakmp enable Sat
crypto isakmp enable Lan
crypto isakmp policy 10
authentication crack
encryption aes-256
hash sha
group 2
lifetime 86400
crypto isakmp policy 20
authentication rsa-sig
encryption aes-256
hash sha
group 2
lifetime 86400
crypto isakmp policy 30
authentication pre-share
encryption aes-256
hash sha
group 2
lifetime 86400
<--- More --->
crypto isakmp policy 40
authentication crack
encryption aes-192
hash sha
group 2
lifetime 86400
crypto isakmp policy 50
authentication rsa-sig
encryption aes-192
hash sha
group 2
lifetime 86400
crypto isakmp policy 60
authentication pre-share
encryption aes-192
hash sha
group 2
lifetime 86400
crypto isakmp policy 70
authentication crack
encryption aes
hash sha
group 2
lifetime 86400
<--- More --->
crypto isakmp policy 80
authentication rsa-sig
encryption aes
hash sha
group 2
lifetime 86400
crypto isakmp policy 90
authentication pre-share
encryption aes
hash sha
group 2
lifetime 86400
crypto isakmp policy 100
authentication crack
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp policy 110
authentication rsa-sig
encryption 3des
hash sha
group 2
lifetime 86400
<--- More --->
crypto isakmp policy 120
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
crypto isakmp policy 130
authentication crack
encryption des
hash sha
group 2
lifetime 86400
crypto isakmp policy 140
authentication rsa-sig
encryption des
hash sha
group 2
lifetime 86400
crypto isakmp policy 150
authentication pre-share
encryption des
hash sha
group 2
lifetime 86400
<--- More --->
crypto isakmp policy 170
authentication pre-share
encryption des
hash sha
group 1
lifetime 86400
telnet xx.xx.xx.xx 255.255.255.224 Sat
telnet 192.168.10.0 255.255.255.0 management
telnet timeout 5
ssh xx.xx.xx.xx 255.255.255.224 Sat
ssh timeout 5
console timeout 0
dhcpd address 192.168.2.101-192.168.2.200 Lan
dhcpd dns 192.168.2.2 8.8.8.8 interface Lan
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
enable Sat
svc enable
group-policy DfltGrpPolicy attributes
vpn-tunnel-protocol IPSec l2tp-ipsec svc webvpn
group-policy KKKK_1 internal
<--- More --->
group-policy KKKK_1 attributes
dns-server value 8.8.8.8
vpn-tunnel-protocol IPSec
group-policy KKKK internal
group-policy KKKK attributes
vpn-tunnel-protocol svc webvpn
webvpn
url-list none
svc ask enable
username aslam password ZB9WJGrSUPUGLGwR encrypted privilege 0
username aslam attributes
vpn-group-policy KKKK
username aslu password /3qnLbX8e8tM0LIe encrypted
tunnel-group KKKK type remote-access
tunnel-group KKKK general-attributes
address-pool pool
default-group-policy KKKK_1
tunnel-group KKKK-1 type remote-access
tunnel-group KKKK-1 general-attributes
address-pool pool
tunnel-group x.x.x.x type ipsec-l2l
tunnel-group x.x.x.x ipsec-attributes
pre-shared-key *****
!
<--- More --->
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
<--- More --->
inspect ip-options
!
service-policy global_policy global
prompt hostname context
call-home reporting anonymous
Cryptochecksum:a0d50431d7d29fd35edf9fcabfa4434b
: end
Hope anybody can help on this matter...
03-27-2013 03:15 PM
What network/s do you want to access?
From what network do you want to access it/them?
03-28-2013 12:26 AM
I nedd to access 192.168.2.0 network from HO and 192.168.1.0 from branch
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide