cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
887
Views
3
Helpful
6
Replies

set up ACL for allow FTP connection

hoquocthienanh
Level 1
Level 1

image_2023-09-16_163318601.png

I have a network diagram as above and was asked to implement the ACL to allow FTP traffic between LAN2 and LAN4, I config my ACL like below:

access-list 111 permit tcp 10.10.2.0 0.0.0.255 10.10.4.0 0.0.0.255 eq ftp

access-list 111 permit tcp 10.10.2.0 0.0.0.255 eq 20 10.10.4.0 0.0.0.255

interface f0/1

ip access-group 111 in

After that, I went to CMD of a computer in LAN2 then type in: FTP 10.10.4.0 and get the response: Error opening 10.10.4.0 (timed out)

I want to ask if my ACL configuration is right and why did I get the timed out response above. Thank you!

6 Replies 6

M02@rt37
VIP
VIP

Hello @hoquocthienanh,

To successfully establish an FTP session, the active FTP mode of operation uses control port 21 and the data port of 20.

Also, perhaps your are in Passive mode then serveur answer with the higher port and not port 20.

Screenshot_20230916_120945.jpg

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I also tried with another config: 

access-list 112 permit tcp 10.10.2.0 0.0.0.255 10.10.4.0 0.0.0.255 eq ftp

access-list 112 permit tcp 10.10.2.0 0.0.0.255 10.10.4.0 0.0.0.255 gt 1023

But still got the same result

Add log to acl and add deny any any log to your acl

Let see what happened with acl

Are you sure about that @hoquocthienanh ?

access-list 112 permit tcp 10.10.2.0 0.0.0.255 10.10.4.0 0.0.0.255 gt 1023

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37
VIP
VIP

@hoquocthienanh 

Refer here also

https://community.cisco.com/t5/networking-knowledge-base/how-to-configure-acl-to-permit-ftp-traffic/ta-p/3130782

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Gopinath_Pigili
Spotlight
Spotlight

@hoquocthienanh

I tried the same scenario and configuations in Cisco Packet tracer 

Its working fine...!!

I think....it's because some limitations with gns3

Thanks

Gopinath