networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: simple ACL question
PostPosted: Wed Aug 15, 2012 10:39 am 
Offline
New Member
New Member

Joined: Wed Aug 15, 2012 10:24 am
Posts: 4
hi, i have a simple question that's been picking me for a few days...for example, i need to explicitly allow smtp and pop3 traffic only from the mx server on 192.168.50.50/24 to the whole 192.168.1.0/24 network.

that would be:
access-list 101 permit tcp host 192.168.50.50 192.168.1.0 0.0.0.255 eq 25
access-list 101 permit tcp host 192.168.50.50 192.168.1.0 0.0.0.255 eq 110

but since those two subnets must be able to communicate together, must i include the opposite direction?
for example:
access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.50.50 eq 25
access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.50.50 eq 110

I know it's a noob question but i can't seem to figure it out by myself, and i need it asap. thanks in advance :)


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 10:48 am 
Online
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2882
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
is this a router or an ASA?
and how are you putting it on the interface?

If it's a router and you only have an ACL going one direction than you don't need the response going the other way

ASAs are trickier...

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 10:51 am 
Online
Post Whore
Post Whore
User avatar

Joined: Mon Jun 15, 2009 9:48 am
Posts: 2882
Location: Lynchburg VA
Certs: CC\NP\DP\IP\NA-Security\NA-Voice
but if it's a router your syntactic is wayy off

_________________
Freedom to all the people. Brave, true and strong.
Freedom to all the people. Unless I think you're wrong

dhimes.com


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 10:54 am 
Offline
New Member
New Member

Joined: Wed Aug 15, 2012 10:24 am
Posts: 4
it's an ASA 5510, interface dmz in, but am puzzled for both router and ASA. nevermind the synthax, that's the least problem...i know that ASA's have different synthax :)


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 11:01 am 
Offline
New Member
New Member

Joined: Thu Nov 03, 2011 11:17 am
Posts: 35
Certs: A+, MCSE, MCDBA, CCNA, CCNP in progress
philotanus wrote:
access-list 101 permit tcp host 192.168.50.50 192.168.1.0 0.0.0.255 eq 25
access-list 101 permit tcp host 192.168.50.50 192.168.1.0 0.0.0.255 eq 110


this would let your email server into the 192.168.1.0/24 subnet, but how are the clients going to query it? I think
Code:
access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.50.50 eq smtp established


would work better?

_________________
"Where I excel is ridiculous, sickening, work ethic. You know, while the other guy’s sleeping? I’m working. While the other guy’s eatin’? I’m working. While the other guy’s making love, I mean, I’m making love, too. But I’m working really hard at it."


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 11:18 am 
Offline
New Member
New Member

Joined: Wed Aug 15, 2012 10:24 am
Posts: 4
that's why i thought of putting

access-list 101 permit tcp 192.168.1.0 0.0.0.255 host 192.168.50.50 eq 25

what does the "established" part do?


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 11:22 am 
Offline
Post Whore
Post Whore
User avatar

Joined: Tue Aug 21, 2007 2:15 pm
Posts: 8284
Location: Frederick MD
Certs: Instanity
'established' allows established connection to traverse the firewall.

_________________
"If you're good at anticipating the human mind. It leaves nothing to chance."
-Jigsaw


Top
 Profile  
 
 Post subject: Re: simple ACL question
PostPosted: Wed Aug 15, 2012 11:25 am 
Offline
New Member
New Member

Joined: Wed Aug 15, 2012 10:24 am
Posts: 4
that should do it then...thanks to all of you :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group