Search This Blog

Wednesday, 22 August 2012

ENABLE SSH ON ASA 5505



asa5505#conf t
asa5505(config)#username ccie password 4u
asa5505(config)#passwd  "your password"
ssh x.x.x.x x.x.x.x [inside/outside]<-- The network that is allowed to ssh : EX: ssh 10.10.10.1 255.255.255.255 outside
crypto key generate rsa modulus {512/768/1024/2048}
aaa authentication ssh console LOCAL    ß This “LOCAL” to be CAPITAL LETTERS

DHCP SERVER ASA5505


Below a quick dhcp server config for asa !


ASA5505(config)#dhcpd address  192.168.1.1 - 192.168.1.50 inside

ASA5505 (config)#dhcpd dns 8.8.8.8 9.9.9.9ASA5505 (config)#dhcpd enable inside


ASA5505 (config)#sh dhcpd binding

Tuesday, 21 August 2012

ASA Failover with 2 ISP's and SLA's


: Saved
: Written by enable_15 at 00:45:15.499 UTC Tue Aug 21 2012
!
ASA Version 8.2(5)
!
hostname ASA1
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Ethernet0/0
 shutdown
!
interface Ethernet0/1
 switchport access vlan 200
!
interface Ethernet0/2
 shutdown
!
interface Ethernet0/3
 switchport access vlan 80
!
interface Ethernet0/4
 switchport access vlan 90
!
interface Ethernet0/5
 shutdown
!
interface Ethernet0/6
 shutdown
!
interface Ethernet0/7
 switchport access vlan 100
!
interface Vlan1
 no nameif
 no security-level
 no ip address
!
interface Vlan80
 nameif outside
 security-level 0
 ip address 20.20.20.1 255.255.255.252
!
interface Vlan90
 nameif outside2
 security-level 0
 ip address 172.16.0.217 255.255.255.0
!
interface Vlan100
 description LAN Failover Interface
!
interface Vlan200
 description INTERNAL_LAN
 nameif inside
 security-level 100
 ip address 192.168.1.1 255.255.255.0
!
ftp mode passive
pager lines 24
mtu outside 1500
mtu outside2 1500
mtu inside 1500
failover
failover lan unit primary
failover lan interface failover-link Vlan100
failover interface ip failover-link 10.10.10.1 255.255.255.252 standby 10.10.10.2
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
global (outside2) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0
route outside 0.0.0.0 0.0.0.0 20.20.20.2 1 track 1
route outside2 0.0.0.0 0.0.0.0 172.16.0.100 2 track 2
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
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sla monitor 1
 type echo protocol ipIcmpEcho 8.8.8.8 interface outside
sla monitor schedule 1 life forever start-time now
sla monitor 2
 type echo protocol ipIcmpEcho 8.8.8.8 interface outside2
sla monitor schedule 2 life forever start-time now
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
!
track 1 rtr 1 reachability
!
track 2 rtr 2 reachability
telnet timeout 5
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 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 ip-options
  inspect netbios
  inspect rsh
  inspect rtsp
  inspect skinny 
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip 
  inspect xdmcp
  inspect icmp
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
call-home
 profile CiscoTAC-1
  no active
  destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
  destination address email callhome@cisco.com
  destination transport-method http
  subscribe-to-alert-group diagnostic
  subscribe-to-alert-group environment
  subscribe-to-alert-group inventory periodic monthly
  subscribe-to-alert-group configuration periodic monthly
  subscribe-to-alert-group telemetry periodic daily
Cryptochecksum:52d9cb2e2214493c3f293194951ba5ed
: end