Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

What is wrong with this config?

I am trying to block all but specified ports outbound as well as inbound. I did this config in PDM and had it output to a web page.

The PIX is not passing traffic ether way now.

Building configuration...

: Saved

:

PIX Version 6.3(1)

interface ethernet0 auto

interface ethernet1 auto

nameif ethernet0 outside security0

nameif ethernet1 inside security100

enable password xxxx

passwd xxxx

hostname xxxxxxx

domain-name xxxxxxx.com

fixup protocol ftp 21

fixup protocol h323 h225 1720

fixup protocol h323 ras 1718-1719

fixup protocol http 80

fixup protocol ils 389

fixup protocol rsh 514

fixup protocol rtsp 554

fixup protocol sip 5060

fixup protocol sip udp 5060

fixup protocol skinny 2000

fixup protocol smtp 25

fixup protocol sqlnet 1521

names

name 10.0.2.13 xxxxxxx

name 10.0.2.5 IT-PC

object-group service FTP_ports tcp

description Combines FTP and FTP Data ports.

port-object eq ftp

port-object eq ftp-data

access-list outside_access_in remark ICMP allow in.

access-list outside_access_in permit icmp any any

access-list outside_access_in remark DNS inbound allow rule.

access-list outside_access_in permit tcp any eq domain any eq domain

access-list outside_access_in remark Allow FTP in.

access-list outside_access_in permit tcp any object-group FTP_ports any object-group FTP_ports

access-list outside_access_in remark Allow all traffic from IT PC.

access-list outside_access_in permit tcp any eq aol any eq aol

access-list outside_access_in remark IT PC allow in.

access-list outside_access_in permit ip host IT-PC any

access-list outside_access_in remark AOL IM allow inbound.

access-list outside_access_in remark Allow all traffic from Bedford-Domain.

access-list outside_access_in permit ip host Bedford-Domain any

access-list outside_access_in deny ip any any

access-list inside_access_in remark block Http test.

access-list inside_access_in permit tcp any eq www any

access-list inside_access_in remark Allow ICMP out.

access-list inside_access_in permit icmp any any

access-list inside_access_in remark DNS Allow

access-list inside_access_in permit tcp any eq domain any

access-list inside_access_in remark Allows FTP out.

access-list inside_access_in permit tcp any object-group FTP_ports any object-group FTP_ports

access-list inside_access_in remark AOL IM Allow.

access-list inside_access_in permit tcp any eq aol any eq aol

access-list inside_access_in remark Allow all traffic to Bedford Domain.

access-list inside_access_in permit ip any host Bedford-Domain

access-list inside_access_in remark Allow all traffic to IT PC.

access-list inside_access_in permit ip any host IT-PC

access-list inside_access_in deny ip any any

pager lines 24

mtu outside 1500

mtu inside 1500

ip address outside 10.0.2.42 255.255.255.0

ip address inside 192.168.2.1 255.255.255.0

ip audit info action alarm

ip audit attack action alarm

pdm location 0.0.0.0 255.255.255.0 outside

pdm location IT-PC 255.255.255.255 outside

pdm location 192.168.2.0 255.255.255.0 outside

pdm location xxxxxxx 255.255.255.255 outside

pdm logging informational 100

pdm history enable

arp timeout 14400

global (outside) 1 interface

nat (inside) 1 0.0.0.0 0.0.0.0 0 0

access-group outside_access_in in interface outside

access-group inside_access_in in interface inside

route outside 0.0.0.0 0.0.0.0 10.0.2.1 1

timeout xlate 0:05:00

timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00

timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00

timeout uauth 0:05:00 absolute

aaa-server TACACS+ protocol tacacs+

aaa-server RADIUS protocol radius

aaa-server LOCAL protocol local

http server enable

http IT-PC 255.255.255.255 outside

http 192.168.2.0 255.255.255.0 inside

no snmp-server location

no snmp-server contact

snmp-server community public

no snmp-server enable traps

floodguard enable

telnet timeout 5

ssh timeout 5

console timeout 0

dhcpd address 192.168.2.2-192.168.2.254 inside

dhcpd dns xxxxxxx

dhcpd lease 3600

dhcpd ping_timeout 750

dhcpd domain xxxxxxxx.com

dhcpd auto_config outside

terminal width 80

Cryptochecksum:xxxxx

: end

[OK]

5 REPLIES
Gold

Re: What is wrong with this config?

Hi,

What happens if you change the following ACLs to permit?

access-list outside_access_in deny ip any any

access-list inside_access_in deny ip any any

Thanks,

New Member

Re: What is wrong with this config?

Did you clear your translations and save it to memory when you were done?

New Member

Re: What is wrong with this config?

Clear translations?

Yes, I was sure to write it to mem. I even rebooted afterward, still allows not traffic through.

Re: What is wrong with this config?

Hi,

I am afraid you switched source and destination ports in your access-lists.

For example:

when you want to allow www to the outside, then the source port is random (=any) and the destination port is www. So the entries in the ACL should be like this:

access-list inside_access_in permit tcp any any eq www

and NOT:

access-list inside_access_in permit tcp any eq www any

This is just an example, there other entries in ACLs that are also switched.

Kind Regards,

Tom

New Member

Re: What is wrong with this config?

the post above mine is the correct answer.

your acl "access-list inside_access_in" has the destination port listed as the source port.

119
Views
0
Helpful
5
Replies
CreatePlease login to create content