Home  
  Microsoft  
  Cisco  
  CompTIA  
  CWNP  
  InfoSecurity  
  Forums  
  Blogs  
  Topsites  
  Watch free videos online  
     
  Subnet Calculator  
  Online Degrees  
  Exam Vouchers  
  Free Magazines  
     

  Watch free videos online  
   

 

Register Practice Exams TechNotes Members List Search Today's Posts Mark Forums Read
Go Back   TechExams.net IT Certification Forums > Cisco > CCNA / CCENT
Reply
 
Thread Tools
Member
Registered Member
 
Dubuku57's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 81

Certifications: CCNA
Dubuku57 is on a distinguished road
Old 07-09-2009, 02:02 AM   #1 (permalink)
Question ACL-back and forth?

Hi guyz,

Herez another doubt(im full of em)..

If i have an ACL say

access-list 101 deny tcp source add mask host dest add eq telnet
access-list 101 permit ip any any

Basically not allowing a network A to telnet to a host B.

Would this mean that host B would also be denied telnetting into any host in network A?

Thanks again in advance!

Dubuku57 is offline   Reply With Quote

Login/register to remove this advertisement.
Junior Member
Registered Member
 
Join Date: Apr 2009
Location: Sheffield, UK
Posts: 27

Certifications: CCNA, CCNP (WIP)
stuh84 is on a distinguished road
Send a message via MSN to stuh84
Old 07-09-2009, 09:21 AM   #2 (permalink)

Someone may correct me on this, but I'm pretty sure doing that alone will not do anything, you have to apply them to an interface/vty line to be able to use them.

Given you actually pass a direction onto the interface (as in whether they apply inbound or outbound), then this dictates your scenario.



__________________
Passed: CCNA

Work In Progress: CCNP (BSCI first )

stuh84 is offline   Reply With Quote
Member
Registered Member
 
Dubuku57's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 81

Certifications: CCNA
Dubuku57 is on a distinguished road
Old 07-09-2009, 10:24 AM   #3 (permalink)

Okay sorry din put that info in, I would apply this ACL on the inside interface of the router, say smth like

int f0/1
ip access-group 101 in

Then only the telnetting traffic from inside the network would be denied right? Would the returning telnetting traffic be denied too?

Dubuku57 is offline   Reply With Quote
Looking for work, again!!
Registered Member
 
captobvious's Avatar
 
Join Date: Dec 2008
Location: Upstate NY
Posts: 563

Certifications: A+, Network+, CCNA
captobvious will become famous soon enoughcaptobvious will become famous soon enough
Old 07-09-2009, 01:21 PM   #4 (permalink)

Quote:
Originally Posted by Dubuku57 View Post
Okay sorry din put that info in, I would apply this ACL on the inside interface of the router, say smth like

int f0/1
ip access-group 101 in

Then only the telnetting traffic from inside the network would be denied right? Would the returning telnetting traffic be denied too?
From the Odom book on Controlling Telent and SSH Access with ACLs

"However, to do the job by enabling ACLs on interfaces using ip access-group interface subcommand, the ACL would need to check for all the router's IP addresses, and both the Telnet and SSH port. As new interfaces are configured, the ACL would need to be updated.

IOS provides a much easier option for protecting access into and out of the virtual terminal line(vty) ports. Telnet and SSH users connect to vty lines on a router, so to protect that access, an IP ACL can be supplied to the vty lines."

In your case, if you wanted to stop a certain subnet from telnetting to your router it is better to use a standard ACL as follows:

access-list 1 deny 172.16.1.0 0.0.0.255

line vty 0 4
access-group 1 in



__________________
WIP: CCNA:S (back on)

Dumps are for chumps! - Search here!

captobvious is offline   Reply With Quote
Member
Registered Member
 
Join Date: Nov 2008
Location: Winnipeg,MB
Posts: 42

Certifications: CCENT, CCNA
sandman748 is on a distinguished road
Old 07-09-2009, 01:39 PM   #5 (permalink)

This is the same question as in your other thread, which I see died without an answer.

This has got me wondering as well. With the access list as is; telnet traffic for network A destined for network B will be dropped at the interface with the ACL applied.

But what If network B tries to telnet to Network A. The packets would make it to from network B to network A, but would the return traffic be allowed or would it match the ACL on the way back?

Can we use the established key word at the end of an ACL for telnet traffic? If we can, and put that at the top of the ACL, it should allow the traffic to return. I know we can do it for http, just not sure about about telnet.

Just to clarify, I don't think he is trying to restrict telnet traffic to a router. He's just trying to set this up between hosts, assuming that they are all set up for telnet.


Last edited by sandman748; 07-09-2009 at 01:41 PM.
sandman748 is offline   Reply With Quote
ping 127.0.0.1
Registered Member
 
shednik's Avatar
 
Join Date: Feb 2007
Location: Pittsburgh, PA
Posts: 1,800

Certifications: CCNA, CCNA:S, CNSS 4011, MCP, A+, N+, L+
shednik is a jewel in the roughshednik is a jewel in the roughshednik is a jewel in the rough
Send a message via AIM to shednik Send a message via MSN to shednik
Old 07-09-2009, 02:22 PM   #6 (permalink)

Quote:
Originally Posted by sandman748 View Post
This is the same question as in your other thread, which I see died without an answer.

This has got me wondering as well. With the access list as is; telnet traffic for network A destined for network B will be dropped at the interface with the ACL applied.

But what If network B tries to telnet to Network A. The packets would make it to from network B to network A, but would the return traffic be allowed or would it match the ACL on the way back?

Can we use the established key word at the end of an ACL for telnet traffic? If we can, and put that at the top of the ACL, it should allow the traffic to return. I know we can do it for http, just not sure about about telnet.

Just to clarify, I don't think he is trying to restrict telnet traffic to a router. He's just trying to set this up between hosts, assuming that they are all set up for telnet.
Yes it should allow the traffic because the return traffic should be using the original source port as the destination. So the initial packet would have a destination port of 23, with a source of say 2523. The return packet would be flipped destination of 2523, and source of 23. So the established statement in the ACL isn't needed.



__________________
WIP: Masters of Infosec & TBD what else

shednik is offline   Reply With Quote
Cisco Aficionado
Registered Member
 
networker050184's Avatar
 
Join Date: Jul 2007
Location: Greenville SC
Posts: 3,813

Certifications: CCNA-CCNP
networker050184 is a glorious beacon of lightnetworker050184 is a glorious beacon of lightnetworker050184 is a glorious beacon of lightnetworker050184 is a glorious beacon of lightnetworker050184 is a glorious beacon of light
Old 07-09-2009, 02:30 PM   #7 (permalink)

You really need to understand how TCP works as shednik pointed out the return traffic will not have destination port of 23 and will therefore be allowed through the ACL.



__________________
An expert is a man who has made all the mistakes which can be made.

networker050184 is offline   Reply With Quote
Lost in the box...
Registered Member
 
Join Date: Oct 2007
Location: OK
Posts: 233

Certifications: Master's-IT security, BS-CIS, CCNA, CCENT, Network+, A+, MCDST, MCP, CCNP (WIP)
jason_lunde will become famous soon enough
Old 07-09-2009, 09:28 PM   #8 (permalink)

Transmission line from a telnet session in wireshark...

Session initiation:
Transmission Control Protocol, Src Port: 5175 (5175), Dst Port: telnet (23), Seq: 0, Len: 0
Source port: 5175 (5175)
Destination port: telnet (23)
Flags: 0x02 (SYN)


And back to my computer from the switch...
Transmission Control Protocol, Src Port: telnet (23), Dst Port: 5175 (5175), Seq: 0, Ack: 1, Len: 0
Source port: telnet (23)
Destination port: 5175 (5175)
Flags: 0x12 (SYN, ACK)

with some output omitted of course. But the traffic according to this would pass the acl.

hope this helps...



__________________
Working ONT
<Lab>
3 x 2620xm - 12.4 - 128/32
2 x 2509 -term. srv. - 8/8
1 x 3550-48 EMI
1 x 3550-pwr-24 EMI
1 x 2950T
1 x 871w

CCNP-BSCI Complete, BCMSN Complete, ISCW complete
http://willroute4food.blogspot.com/

jason_lunde is offline   Reply With Quote
Member
Registered Member
 
Dubuku57's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 81

Certifications: CCNA
Dubuku57 is on a distinguished road
Old 07-10-2009, 01:42 AM   #9 (permalink)

Yes Sandman, ur right the thread sorta died so started a new one =)

Thanks guys, i think i get it- the ACL looks at the port numbers for tcp traffics and uses that to determine what goes through and does not. This woul dbe the case for HTTP also? In this case the 'established' command would not be needed at all right?

So, if this was a NAT case, would the and im applying a std list to an inside source, would the returning traffic b denied also?

Dubuku57 is offline   Reply With Quote
ping 127.0.0.1
Registered Member
 
shednik's Avatar
 
Join Date: Feb 2007
Location: Pittsburgh, PA
Posts: 1,800

Certifications: CCNA, CCNA:S, CNSS 4011, MCP, A+, N+, L+
shednik is a jewel in the roughshednik is a jewel in the roughshednik is a jewel in the rough
Send a message via AIM to shednik Send a message via MSN to shednik
Old 07-11-2009, 02:10 PM   #10 (permalink)

Quote:
Originally Posted by Dubuku57 View Post
Yes Sandman, ur right the thread sorta died so started a new one =)

Thanks guys, i think i get it- the ACL looks at the port numbers for tcp traffics and uses that to determine what goes through and does not. This woul dbe the case for HTTP also? In this case the 'established' command would not be needed at all right?

So, if this was a NAT case, would the and im applying a std list to an inside source, would the returning traffic b denied also?
Anything TCP or UDP will follow the same rules dest port/source port for sending and the return will be the same ports but flipped. If I load up wireshark and do an nslookup on www.google.com.... It works exactly the same src port of 1089 with a dst of 53. NAT shouldn't make a difference of this since it does not modify the ports only the source and/or destination address.



__________________
WIP: Masters of Infosec & TBD what else

shednik is offline   Reply With Quote
Member
Registered Member
 
Dubuku57's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 81

Certifications: CCNA
Dubuku57 is on a distinguished road
Old 07-11-2009, 10:11 PM   #11 (permalink)

Thanks for clarifying that! I just get confused smtms when different books/question paper answers mention stuff otherwise - start doubting myself :S

Dubuku57 is offline   Reply With Quote
Bookmarks
Go Back TechExams.net IT Certification Forums > Cisco > CCNA / CCENT
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 03:55 PM.

 
 
Featured Sponsors

TrainSignal - “Hands On” computer training for IT professionals. Network+ Training, MCSE, Cisco & more! Visit Train Signal’s free training site to get loads of Free Computer Training, videos, articles and practice exams.

Preplogic - Sign up now to get Unlimited Access to PrepLogic's entire video training library. Enjoy open access to Microsoft Server 2008, CCNA, CISSP®, PMP and many more. Get Unlimited Access

 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
TechExams.net 2009