cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1238
Views
0
Helpful
3
Replies

Cisco asa5505 as router + vpn ipsec + dhcp server

Greg Maaaag
Level 1
Level 1

Hello!

We've got cisco881w and now it reached it's brandwidth and we decided to change it to asa5505

I've never configured such devices and I got used to iOS and it's very difficult to get used to it's syntaxes

Config of 811 here:

version 15.1

no service pad

service timestamps debug datetime msec

service timestamps log datetime msec

service password-encryption

!

hostname Voznes

!

boot-start-marker

boot-end-marker

!

!

enable secret 5 *

!

no aaa new-model

memory-size iomem 10

crypto pki token default removal timeout 0

!

!

ip source-route

!

!

!

ip dhcp excluded-address 192.168.200.1 192.168.200.100

!

ip dhcp pool pool

network 192.168.200.0 255.255.255.0

default-router 192.168.200.12

dns-server 192.168.240.100 82.112.184.34 82.112.185.35

!

!

ip cef

no ip domain lookup

ip domain name office

no ipv6 cef

!

!

license udi pid CISCO881W-GN-E-K9 sn *

!

!

username b1_adm privilege 15 secret 5 *

username 1line privilege 15 secret 5 *

!

!

!

!

ip tcp synwait-time 5

!

!

crypto isakmp policy 10

encr aes

hash md5

authentication pre-share

group 2

crypto isakmp key 6 * address 89.223.6.92

!

!

crypto ipsec transform-set myset esp-aes esp-md5-hmac

!

crypto map vpn 80 ipsec-isakmp

set peer 89.223.6.92

set transform-set myset

match address 102

!

!

!

!

!

interface Loopback0

no ip address

!

interface FastEthernet0

no ip address

!

interface FastEthernet1

no ip address

!

interface FastEthernet2

no ip address

!

interface FastEthernet3

no ip address

!

interface FastEthernet4

ip address 89.104.102.226 255.255.255.240

ip nat outside

ip virtual-reassembly in

duplex auto

speed auto

crypto map vpn

!

interface wlan-ap0

description Service module interface to manage the embedded AP

ip address 192.168.254.99 255.255.255.0

arp timeout 0

!

interface Wlan-GigabitEthernet0

description Internal switch interface connecting to the embedded AP

switchport mode trunk

no ip address

!

interface Vlan1

ip address 192.168.200.12 255.255.255.0

ip nat inside

ip virtual-reassembly in

!

ip forward-protocol nd

no ip http server

no ip http secure-server

!

ip nat inside source list 100 interface FastEthernet4 overload

ip nat inside source static tcp 192.168.200.5 80 89.104.102.226 80 extendable

ip nat inside source static tcp 192.168.200.5 443 89.104.102.226 443 extendable

ip nat inside source static tcp 192.168.200.5 22 89.104.102.226 2222 route-map internal extendable

ip nat inside source static tcp 192.168.200.5 5060 89.104.102.226 5060 extendable

ip nat inside source static tcp 192.168.200.112 7000 89.104.102.226 7000 route-map internal extendable

ip nat inside source static tcp 192.168.200.110 7000 89.104.102.226 7001 route-map internal extendable

ip route 0.0.0.0 0.0.0.0 89.104.102.225

!

logging esm config

access-list 100 deny   ip 192.168.200.0 0.0.0.255 192.168.4.0 0.0.0.255

access-list 100 deny   ip 192.168.200.0 0.0.0.255 192.168.9.0 0.0.0.255

access-list 100 deny   ip 192.168.200.0 0.0.0.255 192.168.10.0 0.0.0.255

access-list 100 deny   ip 192.168.200.0 0.0.0.255 192.168.181.0 0.0.0.255

access-list 100 deny   ip 192.168.200.0 0.0.0.255 192.168.240.0 0.0.0.255

access-list 100 permit ip 192.168.200.0 0.0.0.255 any

access-list 102 permit ip 192.168.200.0 0.0.0.255 192.168.4.0 0.0.0.255

access-list 102 permit ip 192.168.200.0 0.0.0.255 192.168.9.0 0.0.0.255

access-list 102 permit ip 192.168.200.0 0.0.0.255 192.168.10.0 0.0.0.255

access-list 102 permit ip 192.168.200.0 0.0.0.255 192.168.181.0 0.0.0.255

access-list 102 permit ip 192.168.200.0 0.0.0.255 192.168.240.0 0.0.0.255

!

!

!

!

route-map vpn permit 10

match ip address 102

set interface FastEthernet4

!

snmp-server community mon_cacti RO

!

line con 0

exec-timeout 30 30

privilege level 15

password 7 *

logging synchronous

login

line aux 0

line 2

no activation-character

no exec

transport preferred none

transport input all

line vty 0 4

privilege level 15

password 7 *

login local

transport input all

!

end

On 5505 i've made:

ASA Version 9.1(1)

!

hostname Voznes

enable password 8Ry2YjIyt7RRXU24 encrypted

xlate per-session deny tcp any4 any4

xlate per-session deny tcp any4 any6

xlate per-session deny tcp any6 any4

xlate per-session deny tcp any6 any6

xlate per-session deny udp any4 any4 eq domain

xlate per-session deny udp any4 any6 eq domain

xlate per-session deny udp any6 any4 eq domain

xlate per-session deny udp any6 any6 eq domain

passwd 2KFQnbNIdI.2KYOU encrypted

names

!

interface Ethernet0/0

!

interface Ethernet0/1

!

interface Ethernet0/2

!

interface Ethernet0/3

!

interface Ethernet0/4

!

interface Ethernet0/5

!

interface Ethernet0/6

!

interface Ethernet0/7

!

interface Vlan1

nameif inside

security-level 100

ip address 192.168.200.13 255.255.255.0

!

interface Vlan2

nameif outside

security-level 0

ip address 89.104.102.226 255.255.255.240

!

boot system disk0:/asa911-k8.bin

ftp mode passive

object network obj_any

subnet 0.0.0.0 0.0.0.0

pager lines 24

logging asdm informational

mtu inside 1500

mtu outside 1500

no failover

icmp unreachable rate-limit 1 burst-size 1

asdm image disk0:/asdm-702.bin

no asdm history enable

arp timeout 14400

no arp permit-nonconnected

!

object network obj_any

nat (inside,outside) dynamic interface

route outside 0.0.0.0 0.0.0.0 89.104.102.225 1

timeout xlate 3:00:00

timeout pat-xlate 0:00:30

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

user-identity default-domain LOCAL

aaa authentication http console LOCAL

http server enable

http 0.0.0.0 0.0.0.0 inside

no snmp-server location

no snmp-server contact

snmp-server enable traps snmp authentication linkup linkdown coldstart warmstart

crypto ipsec security-association pmtu-aging infinite

crypto ca trustpoint _SmartCallHome_ServerCA

crl configure

crypto ca trustpool policy

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

    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

    6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28

    6c2527b9 deb78458 c61f381e a4c4cb66

  quit

telnet timeout 5

ssh timeout 5

console timeout 0

dhcpd dns 192.168.240.100

!

dhcpd address 192.168.200.100-192.168.200.254 inside

dhcpd enable inside

!

threat-detection basic-threat

threat-detection statistics access-list

no threat-detection statistics tcp-intercept

username b1_adm password wDZk1nEY6hhCN82f encrypted

!

!

prompt hostname context

call-home reporting anonymous

Cryptochecksum:e4240d63a2219e017830f7d48c454d20

: end

But DHCP doesn't work, I'm totally desperated:( What'm doing wrong, help me please!

3 Replies 3

olivergw1
Level 1
Level 1

Hi,

I believe you are missing the configuration to allow access to your routed VLAN interface. So to use port 'Ethernet 0/0' do the following

Conf t
Interface Ethernet 0/0
switchport access vlan 1

This will turn that port into a switch port and allow access to VLAN 1 which is the interface you have configured a DHCP pool for.

Ollie

Sent from Cisco Technical Support iPhone App

pope30349
Level 1
Level 1

Vlan 1 is the default so right now everything is in vlan 1, even your outside interface. You need:
Conf t
Interface Ethernet 0/0
Switchport access vlan 2

This will put Ethernet 0/0 in vlan 2 on the outside. Right now you have it on the inside. Also this is the Internet connection so this is the port the go's to your ISP.

Sent from Cisco Technical Support iPhone App

thank you for the answer!

i'w deleted vlan on eth 0/0 because i was testing dhcp.

When i connect to any ethernet interface my notebook can't obtaion IP address. If i use static i can ping asa's vlan 1 ip address but dhcp insn't working

P.S. does any one compared using like router asa 5505 or 1921, what's the difference?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card