Aiuto su configurazione 5505
Inviato: ven 11 dic , 2009 2:55 pm
Ciao a tutti, essendo la prima volta che configuro un dispositivo Cisco vorrei avere un vostro conforto in merito alla configurazione realizzata.
La configurazione dovrebbe provvedere a far si che le macchine interne alla LAN possono uscire verso Internet per l'accesso a siti web, non ci sono servizi pubblici da offrire mentre vi è un accesso remoto attraverso vpn/ipsec, infine da una macchina remota (e solo da un ip pubblico prefefinito) è possibile accedere alla configurazione, attraverso browser (quindi https) dell'asa 5505.
La rete interna ha base:
192.168.1.0
la rete esterna:
85.xx.xx.xx / 255.255.255.252
La configrazione è la seguente:
: Saved
:
ASA Version 8.2(1)
!
hostname ciscoasa
enable password yjWoTDJEsBZjH.DV encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.1.0 A-192.168.1.0 description Rete Locale
name 85.xx.xx.xx A-85.xx.xx.yy description IP Pubblico eth0
name 89.yy.yy.yy My description IP Pub di My
name 85.xx.xx.yy RetePubblica
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.100 255.255.255.0
!
interface Vlan2
no forward interface Vlan1
nameif outside
security-level 0
ip address A-85.xx.xx.yy 255.255.255.252
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
access-list inside_access_in remark Rules per far uscire le macchina interne alla LAN
access-list inside_access_in extended permit ip A-192.168.1.0 255.255.255.0 any
access-list acl_icmp extended permit icmp any any
access-list acl_icmp remark Accesso attraverso browser da My
access-list acl_icmp extended permit tcp host My host A-85.xx.xx.yy eq https
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool range_ip_remoti 192.168.1.200-192.168.1.210 mask 255.255.255.0
ip verify reverse-path interface inside
ip verify reverse-path interface outside
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
access-group inside_access_in in interface inside
access-group acl_icmp in interface outside
route outside 0.0.0.0 0.0.0.0 85.xx.xx.zz 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
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.1.16 255.255.255.255 inside
http A-192.168.1.0 255.255.255.255 inside
http A-85.xx.xx.yy 255.255.255.255 outside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set pfs group1
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh A-192.168.1.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
threat-detection basic-threat
threat-detection statistics port
threat-detection statistics protocol
threat-detection statistics access-list
threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
webvpn
group-policy remote_access internal
group-policy remote_access attributes
vpn-tunnel-protocol IPSec
username vpnaccessclient password iZ027791hFw/WBIp encrypted privilege 0
username vpnaccessclient attributes
vpn-group-policy remote_access
tunnel-group remote_access type remote-access
tunnel-group remote_access general-attributes
address-pool range_ip_remoti
default-group-policy remote_access
tunnel-group remote_access ipsec-attributes
pre-shared-key *
!
!
prompt hostname context
Cryptochecksum:75edd62bb5cdc3f1743d015bb9694b90
: end
asdm location My 255.255.255.255 inside
no asdm history enable
..credete sia corretta per i miei scopi ?
Grazie.
-
Salvatore.
La configurazione dovrebbe provvedere a far si che le macchine interne alla LAN possono uscire verso Internet per l'accesso a siti web, non ci sono servizi pubblici da offrire mentre vi è un accesso remoto attraverso vpn/ipsec, infine da una macchina remota (e solo da un ip pubblico prefefinito) è possibile accedere alla configurazione, attraverso browser (quindi https) dell'asa 5505.
La rete interna ha base:
192.168.1.0
la rete esterna:
85.xx.xx.xx / 255.255.255.252
La configrazione è la seguente:
: Saved
:
ASA Version 8.2(1)
!
hostname ciscoasa
enable password yjWoTDJEsBZjH.DV encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
name 192.168.1.0 A-192.168.1.0 description Rete Locale
name 85.xx.xx.xx A-85.xx.xx.yy description IP Pubblico eth0
name 89.yy.yy.yy My description IP Pub di My
name 85.xx.xx.yy RetePubblica
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.100 255.255.255.0
!
interface Vlan2
no forward interface Vlan1
nameif outside
security-level 0
ip address A-85.xx.xx.yy 255.255.255.252
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
!
interface Ethernet0/7
!
ftp mode passive
access-list inside_access_in remark Rules per far uscire le macchina interne alla LAN
access-list inside_access_in extended permit ip A-192.168.1.0 255.255.255.0 any
access-list acl_icmp extended permit icmp any any
access-list acl_icmp remark Accesso attraverso browser da My
access-list acl_icmp extended permit tcp host My host A-85.xx.xx.yy eq https
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool range_ip_remoti 192.168.1.200-192.168.1.210 mask 255.255.255.0
ip verify reverse-path interface inside
ip verify reverse-path interface outside
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
access-group inside_access_in in interface inside
access-group acl_icmp in interface outside
route outside 0.0.0.0 0.0.0.0 85.xx.xx.zz 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
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.1.16 255.255.255.255 inside
http A-192.168.1.0 255.255.255.255 inside
http A-85.xx.xx.yy 255.255.255.255 outside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set pfs group1
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh A-192.168.1.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!
threat-detection basic-threat
threat-detection statistics port
threat-detection statistics protocol
threat-detection statistics access-list
threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
webvpn
group-policy remote_access internal
group-policy remote_access attributes
vpn-tunnel-protocol IPSec
username vpnaccessclient password iZ027791hFw/WBIp encrypted privilege 0
username vpnaccessclient attributes
vpn-group-policy remote_access
tunnel-group remote_access type remote-access
tunnel-group remote_access general-attributes
address-pool range_ip_remoti
default-group-policy remote_access
tunnel-group remote_access ipsec-attributes
pre-shared-key *
!
!
prompt hostname context
Cryptochecksum:75edd62bb5cdc3f1743d015bb9694b90
: end
asdm location My 255.255.255.255 inside
no asdm history enable
..credete sia corretta per i miei scopi ?
Grazie.
-
Salvatore.