Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp access-list

Status
Not open for further replies.

jvande

MIS
Jun 6, 2001
115
US
Ok, so I have my ftp access-list as the following
access-list 101 permit tcp any any eq 21
access-list 101 permit tcp any any eq 20
access-list 101 permit tcp any any gt 1023

FTP works fine but, what kind of access list allows all ports over 1023 to be open. Is there a way around there an alternitive way to allow ftp to work but dissallowing all ports gt 1023 to be open? Because an access list with gt 1023 in it isn't much of a firewall.


Thanks much,
Josh

 
Just curious, why did you allow ports > 1023? Also is the access-list applied to the internal interface or external interface?

Jason
 
Hi, on the Cisco firewall feature set they have something called CBAC (context based access control), this dynamic port mapping that creates a temporary opening in the access list at the firewall interface. The traffic it allows back must be part of the same session that triggered the CBAC. This would allow you to block ports above 1023 but still have FTP data access for sessions initiated from the inside of your firewall. I have not used this but possible someone else could enlighten us on it operation.

Bob ^^




 
Here's how I'm using CBAC.

Add the lines you need from this (probably just FTP)
to the global configuration:

ip inspect name FastEthernet_0_1 smtp
ip inspect name FastEthernet_0_1 ftp
ip inspect name FastEthernet_0_1 tcp
ip inspect name FastEthernet_0_1 udp

Then on your WAN interface add the following lines:

ip inspect FastEthernet_0_1 in
ip inspect FastEthernet_0_1 out

Note: You can use any name you want for CBAC, I choose the name of the interface it applied to.

Hope this helps,

Niall
 
I forgot that I set this up on a little-used router several months ago and it appears to work fine. After looking at this I set an explicit deny all traffic coming into the firewall from the outside.

Thanks for the reminder Bob!

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top