Поиск по этому блогу

27.02.2010

Cisco ASA transparent mode

Пробую настроить ASA 5505 в transparent режиме.
Схема включения:
- ASA подключается портом 0 в коммутатор.
- В порт 1 подключаю ноут. Он получает адрес по dhcp.
- Шлюз по-умолчанию для сети 10.0.0.254.
- Для управления ASA выбран адрес 10.0.0.1.

Выделены сделанные изменения в конфигурации по-умолчанию:
ASA Version 8.0(4)
!
firewall transparent
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Vlan1
nameif inside
security-level 100
!
interface Vlan2
nameif outside
security-level 0

!
interface Ethernet0/0
switchport access vlan 2
speed 100
duplex full
!
interface Ethernet0/1
speed 100
duplex full

!
interface Ethernet0/2
shutdown
!
interface Ethernet0/3
shutdown
!
interface Ethernet0/4
shutdown
!
interface Ethernet0/5
shutdown
!
interface Ethernet0/6
shutdown
!
interface Ethernet0/7
!
ftp mode passive
same-security-traffic permit inter-interface
access-list ACL_OUT extended permit ip any any
access-list ACL_IN extended permit ip any any

pager lines 24
mtu inside 1500
mtu outside 1500
ip address 10.0.0.1 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
access-group ACL_IN in interface inside
access-group ACL_OUT in interface outside
route outside 0.0.0.0 0.0.0.0 10.0.0.254 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
dynamic-access-policy-record DfltAccessPolicy
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 timeout 5
ssh 10.0.0.0 255.255.255.0 inside
ssh 10.0.0.0 255.255.255.0 outside

ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
!
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 esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
!
service-policy global_policy global
prompt hostname context
Cryptochecksum:91d5ccfcb4475df4879932f7e77bdd89
: end

Чтобы работал ssh доступ, необходимо сгенерить ключи:
ciscoasa(config)# crypto key gen rsa
INFO: The name for the keys will be:
Keypair generation process begin. Please wait...

Еще порты по-умолчанию выключены все. Последние два порта с PoE.
У ASA иногда бывают проблемы с дуплексами, поэтому задано явно.