Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm obviously not doing something right (and Cisco is definitely not my forte, so bare with me), but I'm not having any luck setting up egress filtering from the inside network to the outside, with the goal of denying all outbound traffic save for the HTTP Proxy (Squid) server that's also running DNS, NTP, etc.

If I remove all my ACL rules, it works fine: NAT's fine (double NAT's fine), I can surfing the web, etc.

However, what I thought was correct (and I've been through a pile of confusing documentation, some of it the wrong version, hence my woes in Cisco land), doesn't seem to work, albeit inconsistently.

Doing a telnet test, the first time I apply the access-group it works. Hit CTRL-] to escape, hit up key, run command again, times out. Remove all access-group assignments, doesn't work. Come back to verify (as I'm typing this) and telnet works again.

Turned on debug logging, show log confirms that the packets are being discarded, but it doesn't look right and I think I may be applying my rules to the wrong interface or the wrong direction.

Here's some relative info:

Server: Inside: Outside: (<-- test environment, has IP on my real LAN).

Here's my relative snippet of my config:

access-list server_out extended permit tcp host any eq www
global (outside) 10 interface
nat (inside) 10
access-group server_out in interface inside

Again, a few minutes ago I had no access-group line and it worked. I'm also trying this from several machines and another machine on worked once or twice (even a few minutes ago), even though there's no permit rule in there as you can see, and I assumed the default deny rule would apply once you create an ACL.


Here's some logging for your viewing pleasure -- this is a successful telnet to a webserver on my real LAN (

%ASA-6-305011: Built dynamic TCP translation from inside: to outside:
%ASA-6-302013: Built outbound TCP connection 172 for outside: (  to inside: (

Here's the same request, several seconds later, no changes to config:

%ASA-2-106001: Inbound TCP connection denied from to   flags FIN ACK  on interface outside
%ASA-2-106001: Inbound TCP connection denied from to flags SYN  on interface outside


: Saved
ASA Version 8.0(5)
terminal width 120
hostname some-host
enable password ***** encrypted
passwd ***** encrypted
interface Vlan1
 nameif dmz
 security-level 50
 ip address
interface Vlan2
 nameif inside
 security-level 100
 ip address
interface Vlan3
 nameif outside
 security-level 0
 ip address
interface Ethernet0/0
 switchport access vlan 3
interface Ethernet0/1
interface Ethernet0/2
 switchport access vlan 2
interface Ethernet0/3
 switchport access vlan 2
interface Ethernet0/4
 switchport access vlan 2
interface Ethernet0/5
 switchport access vlan 2
interface Ethernet0/6
 switchport access vlan 2
interface Ethernet0/7
 switchport access vlan 2
boot system disk0:/asa805-k8.bin
ftp mode passive
access-list inside_out extended permit tcp host any eq www
pager lines 24
logging enable
logging buffered debugging
mtu dmz 1500
mtu inside 1500
mtu outside 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 10 interface
nat (inside) 10
access-group inside_out in interface inside
route outside 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
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
class-map inspection_default
 match default-inspection-traffic
policy-map type inspect dns preset_dns_map
  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 netbios
  inspect rsh
  inspect rtsp
  inspect skinny
  inspect esmtp
  inspect sqlnet
  inspect sunrpc
  inspect tftp
  inspect sip
  inspect xdmcp
service-policy global_policy global
prompt hostname context
: end
share|improve this question
version's in the title: ASA 5505 8.0(5), added global line from config. – gravyface Aug 18 '10 at 20:18
What does the rest of your ACL look like? Do you have any fix-ups enabled? – Zypher Aug 18 '10 at 20:21
I'll vanilla it and post it in a second. – gravyface Aug 18 '10 at 20:32
FYI, I've included some logging snippets above. – gravyface Aug 18 '10 at 20:33
config posted in it's entirety. – gravyface Aug 18 '10 at 20:52
up vote 0 down vote accepted

Something is definitely wacky with my switch and/or cables: plugged machine directly into e0/2, works consistently, time after time. Plug it back in, intermittent. Odd that the log would show what it was showing, however.


Yup, loop city, I'm surprised I could even get any packets out. Word to the wise, kids: unplug your cables after you turn off port mirroring.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.