dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
1063
etisupport
join:2014-10-30

etisupport

Member

[Config] Clients can't get out on Cisco ASA 5505

I've set the static and I can run a packet trace on the cisco for both the inside and outside interface, but I clients can't get out. Any suggestions? What am I missing?

: Saved
:
ASA Version 8.2(5)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted passwd 2KFQnbNIdI.2KYOU encrypted names !
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
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.254.251 255.255.255.0 !
interface Vlan2
nameif outside
security-level 0
ip address 74.X.X.X 255.255.255.252 !
ftp mode passive
dns domain-lookup inside
dns domain-lookup outside
dns server-group DefaultDNS
name-server 8.8.8.8
name-server 8.8.4.4
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
access-list outside_access_in extended permit ip any any
access-list outside_access_in extended permit object-group TCPUDP any any
access-list inside_access_in extended permit ip any any
access-list inside_access_in extended permit object-group TCPUDP any any
access-list inside_access_in extended permit object-group TCPUDP any any eq www
access-list name extended permit icmp any interface outside
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
nat (inside) 0 192.168.254.0 255.255.255.0
nat (inside) 0 0.0.0.0 0.0.0.0
access-group inside_access_in in interface inside
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 74.X.X.X 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
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.1.0 255.255.255.0 inside
http 192.168.254.0 255.255.255.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 timeout 5
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 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 rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:a0b58a5a238f64c8fbd26463fc1915ee
: end
aryoba
MVM
join:2002-08-22

aryoba

MVM

said by etisupport:

access-list outside_access_in extended permit ip any any
access-list outside_access_in extended permit object-group TCPUDP any any
access-group outside_access_in in interface outside

Why do you open any access from outside coming in? Is it not beating the purpose of having a firewall then?

You may want to remove these three commands entirely.
said by etisupport:

access-list inside_access_in extended permit ip any any
access-list inside_access_in extended permit object-group TCPUDP any any
access-list inside_access_in extended permit object-group TCPUDP any any eq www
access-group inside_access_in in interface inside

You already permit anything from inside to go out. Why do you need additional permit rules?
said by etisupport:

http server enable
http 192.168.1.0 255.255.255.0 inside
http 192.168.254.0 255.255.255.0 inside

I don't think you have 192.168.1.0/24 subnet within the inside network. With that in mind, why do you implement this access?
said by etisupport:

nat (inside) 0 192.168.254.0 255.255.255.0
nat (inside) 0 0.0.0.0 0.0.0.0

Why do you implement NAT exemption? If I have to guess, this is what you need to implement instead.

nat (inside) 1 192.168.254.0 255.255.255.0
global (outside) 1 interface

After saving the configuration, make sure you issue clear xlate command to reset the NAT table. In addition, a show xlate command shows whether certain inside IP address is being NAT/PAT-ed as supposed to.
etisupport
join:2014-10-30

etisupport

Member

The reason I opened and tried all these commands is that I wasn't getting out from the clients side. I'll clean it up once I can get out. So basically it should work without those commands?
aryoba
MVM
join:2002-08-22

aryoba to etisupport

MVM

to etisupport
Based on your limited info, I'm guessing the following configuration should work. Mind the updated command lines.

: Saved
:
ASA Version 8.2(5)
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted passwd 2KFQnbNIdI.2KYOU encrypted names !
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
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.254.251 255.255.255.0 !
interface Vlan2
 nameif outside
 security-level 0
 ip address 74.X.X.X 255.255.255.252 !
ftp mode passive
dns domain-lookup inside
dns domain-lookup outside
dns server-group DefaultDNS
 name-server 8.8.8.8
 name-server 8.8.4.4
object-group protocol TCPUDP
 protocol-object udp
 protocol-object tcp
access-list inside_access_in extended permit object-group TCPUDP any any eq www 
access-list inside_access_in extended permit object-group TCPUDP any any 
access-list inside_access_in extended permit ip any any 
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
nat (inside) 1 192.168.254.0 255.255.255.0
global (outside) 1 interface
access-group inside_access_in in interface inside
route outside 0.0.0.0 0.0.0.0 74.X.X.X 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
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
http server enable
http 192.168.254.0 255.255.255.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 timeout 5
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 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 rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny
  inspect sunrpc
  inspect xdmcp
  inspect sip
  inspect netbios
  inspect tftp
  inspect ip-options
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:a0b58a5a238f64c8fbd26463fc1915ee
: end
 
Don't forget to issue the following commands afterwards.

write memory
clear xlate
show xlate
HELLFIRE
MVM
join:2009-11-25

HELLFIRE to etisupport

MVM

to etisupport
2nd aryoba See Profile , which direction are you trying to make traffic work from and to?

Looks like you got a standard INSIDE/OUTSIDE config with nat -- I'll defer to what aryoba See Profile mentioned about your NAT'ing, but the thing to keep
in mind is you've got the following access-groups configured

access-group inside_access_in in interface inside
 

access-group outside_access_in in interface outside
 

and the following access-list for INSIDE to OUTSIDE access

access-list inside_access_in extended permit ip any any
access-list inside_access_in extended permit object-group TCPUDP any any
access-list inside_access_in extended permit object-group TCPUDP any any eq www
 

and the following access-list for OUTSIDE to INSIDE access.

access-list outside_access_in extended permit ip any any
access-list outside_access_in extended permit object-group TCPUDP any any
 

Are you trying to restrict traffic in any way? Or are you intent on letting all traffic from INSIDE to OUTSIDE without restrictions, but not allow
any traffic from OUTSIDE to INSIDE at all?

I think the key question for you to answer at this point, OP

My 00000010bits

Regards
etisupport
join:2014-10-30

etisupport

Member

I was just looking up on forums what people tried. I added the access-groups and access-lists so that I could get out from the client side. I wasn't able to. I ran a packet trace on the Cisco ASA from both the outside and inside interface. I get no errors. When I try from a PC and ping 8.8.8.8 I get nothing. I can ping successfully from the ASA just fine.
HELLFIRE
MVM
join:2009-11-25

HELLFIRE to etisupport

MVM

to etisupport
May want to refer to this from Cisco in the future...

ASA Config Examples and Tech Notes

ASA Config Guides

Otherwise what aryoba See Profile gave you should start you off.

Regards