Tentando configurar o ASA5505. Semi trabalhando, mas tendo problemas com o acesso a serviços externos.
Licença básica do ASA5505, versão 8.2. (além de atualizar para hosts internos ilimitados).
Alerta: sou um Cisco Noob.
10.10.39.X é um espaço reservado para privacidade. (EDIT: para ser menos confuso)
Eu criei esta configuração e testei esta noite.
ASA Version 8.2(1)
!
hostname <removed>
domain-name <removed>
enable password <removed> encrypted
passwd <removed> encrypted
names
!
interface Vlan1
nameif inside
security-level 100
ip address 172.21.36.1 255.255.252.0
!
interface Vlan2
nameif outside
security-level 0
ip address 10.10.39.10 255.255.255.248
!
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
dns server-group DefaultDNS
domain-name <removed>
access-list outside_inbound extended permit tcp any host 10.10.39.10 eq pptp
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq https
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq 993
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq smtp
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq 1001
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq 465
access-list outside_inbound extended permit tcp any host 10.10.39.11 eq domain
access-list outside_inbound extended permit udp any eq domain host 10.10.39.11 eq domain
access-list outside_inbound extended permit tcp any host 10.10.39.12 eq www
access-list outside_inbound extended permit tcp any host 10.10.39.12 eq https
access-list outside_inbound extended permit tcp any host 10.10.39.13 eq www
access-list outside_inbound extended permit tcp any host 10.10.39.13 eq https
access-list outside_inbound extended permit icmp any any echo-reply
access-list outside_inbound extended permit icmp any any source-quench
access-list outside_inbound extended permit icmp any any unreachable
access-list outside_inbound extended permit icmp any any time-exceeded
access-list outside_inbound extended permit icmp any any traceroute
access-list outside_inbound extended permit icmp any any echo
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 2 10.10.39.11-10.10.39.14 netmask 255.255.255.248
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) tcp interface pptp 172.21.37.20 pptp netmask 255.255.255.255
static (inside,outside) 10.10.39.11 172.21.37.14 netmask 255.255.255.255
static (inside,outside) 10.10.39.12 172.21.37.24 netmask 255.255.255.255
static (inside,outside) 10.10.39.13 172.21.37.17 netmask 255.255.255.255
access-group outside_inbound in interface outside
route outside 0.0.0.0 0.0.0.0 10.10.39.9 1
route inside 192.168.15.0 255.255.255.0 172.21.36.52 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 172.21.36.0 255.255.252.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
telnet 172.21.36.0 255.255.252.0 inside
telnet timeout 60
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
webvpn
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
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 sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect pptp
inspect ipsec-pass-thru
inspect http
!
service-policy global_policy global
prompt hostname context
Os servidores que tinham forward estático não tinham acesso à rede externa. Não foi possível pingar google.com, por exemplo. servidor de e-mail não pôde Dominar POP o filtro de spam Barracuda do nosso ISP etc.
Então, depois de fazer algumas leituras, eu removi a estática de 10.10.39.11, 12 e 13, e substituí as três pelas que estão abaixo .. (Editar: IPs corrigidos nesta declaração.)
static (inside,outside) tcp 10.10.39.11 https 172.21.37.14 https netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.11 993 172.21.37.14 993 netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.11 smtp 172.21.37.14 smtp netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.11 1001 172.21.37.14 1001 netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.11 465 172.21.37.14 465 netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.11 domain 172.21.37.14 domain netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.12 www 172.21.37.24 www netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.12 https 172.21.37.24 https netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.13 www 172.21.37.17 www netmask 255.255.255.255
static (inside,outside) tcp 10.10.39.13 https 172.21.37.17 https netmask 255.255.255.255
Agora, os servidores (por exemplo, 172.21.37.14) podem fazer ping no mundo externo novamente. O mail começou a fluir (o domínio POP foi bem-sucedido) etc. etc. Mas eu esqueci de verificar se o webmail funcionava do lado de fora reconhecidamente.
Mas os servidores Web em 172.21.37.17 e 172.21.37.24 ainda não responderam do mundo exterior. Embora eu era capaz de VPN PPTP em 10.10.39.10 (interface), que é o endereço IP da interface externa. e é mapeado estático para 172.21.37.20.
Então, estou pensando que deve haver algo errado com o NAT em algum lugar? sem resposta de 10.10.39.11 a 10.10.39.14 ..
Alguém poderia ver a configuração e, por favor, me avisar o que eu fiz de errado? Existe algo que eu perdi? bem, obviamente, mas por favor me ajude! Obrigado.