11-03-2017 07:16 PM - edited 03-12-2019 04:42 AM
Hello all,
I would like to open port 23.21.25.80 on a 1841 router but Im not very good with access-list
can someone give me hand on how to create an access-list to open those ports please..
I have this configuration
interface f0/0 (tha't my ip nat out interface)
ip access-group 102 in
access-list 102 permit tcp any any eq www
access-list 102 permit tcp any any eq telnet
access-list 102 permit tcp any any eq smtp
access-list 102 permit tcp any any eq pop3
access-list 102 permit tcp any any eq 21
access-list 102 permit tcp any any eq 20
access-list 102 permit any any
when I do that I get not internet
Thank you
11-04-2017 07:10 PM
You need to apply the ACL to the interface where the server traffic enters the 184. Looks like Int f0/0 is your egress point (going to the Internet).
Also, at the end of the ACL you want "access-list 102 deny any any"
11-05-2017 07:20 AM
11-05-2017 09:37 AM
Which interface goes to your LAN and which one to the Internet?
Apply the ACL to the interface connected to you LAN. Let's say that is f0/1, then you should have this:
If this does not work, please post sh run (without any passwords and real outside IP addresses). Or, at least your NAT configurations.
Remove ACL from interface f0/0:
interface f0/0
no ip access-group 102 in
Then add this (assuming f0/1 goes to your LAN. If not, replace with appropriate interface)
interface f0/1
ip access-group 102 in
!
access-list 102 permit tcp any any eq www
access-list 102 permit tcp any any eq telnet
access-list 102 permit tcp any any eq smtp
access-list 102 permit tcp any any eq pop3
access-list 102 permit tcp any any eq 21
access-list 102 permit tcp any any eq 20
access-list 102 permit tcp any any eq 443
access-list 102 deny any any
I also added 443 above. You will need for Internet
11-11-2017 01:27 PM
Thank you for your help.
that fixed my problem....
I also was getting block my ISP.
all good now thank you again
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide