Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Access-List: Blocking all access by mistake

Reply
Thread Tools

Access-List: Blocking all access by mistake

 
 
Sarah
Guest
Posts: n/a
 
      11-29-2004
I want to block only web protocols to our web servers. It needs http
and ssl only and I want to use access-lists. I changed the real IP
addresses. This is what I tried:

webserver address is 10.0.0.59

access-list 101 permit tcp 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0
eq 80
access-list 101 permit tcp 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0
eq 443
access-list 101 deny ip 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0

Then I applied it to interface Ethernet 0
ip access-group 101 out

I have other servers on that segment, ie. Exchanges, Proxy Server,
etc. Once I made the change, no machine could hit internet in or out.
Any help will be graciously appreciated, as my boss wants this issue
resolved by yesterday.


------------------------------------------------------------------------------


Using 584 out of 32762 bytes
!
version 10.3
service password-encryption
service udp-small-servers
service tcp-small-servers
!
hostname
!
enable secret
enable password
!
ip subnet-zero
!
interface Ethernet0
ip address 10.0.0.57 255.255.255.0
bandwidth 10000
!
interface Serial0
ip address 64.0.0.22 255.255.255.0
bandwidth 1544
keepalive 9
!
interface Serial1
no ip address
shutdown
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.0.0.21
logging buffered
!
line con 0
line aux 0
transport input all
line vty 0 4
password
login
!
end
 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      11-29-2004
In article < >,
Sarah <> wrote:
:I want to block only web protocols to our web servers. It needs http
:and ssl only and I want to use access-lists. I changed the real IP
:addresses. This is what I tried:

:webserver address is 10.0.0.59

:access-list 101 permit tcp 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0 eq 80
:access-list 101 permit tcp 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0 eq 443
:access-list 101 deny ip 0.0.0.0 255.255.255.255 10.0.0.59 0.0.0.0

:Then I applied it to interface Ethernet 0
:ip access-group 101 out

First off, you probably want to apply this 'in' your WAN interface
rather than 'out' your LAN interface. When you apply it 'out' your
LAN interface, it permits your inside systems to www and ssl to
10.0.0.59... except that those are already inside so it doesn't do
you any good.

Secondly, you never need a 'deny' statement at the end of an access list,
as the default is to deny.


Thirdly, as a matter of form, use 'any' and 'host', and use symbolic
names for ports where applicable:

access-list 101 permit tcp any host 10.0.0.59 eq www
access-list 101 permit tcp any host 10.0.0.59 eq 443


Fourthly, you need to permit return traffic for all your other systems.
If you don't have the firewall feature set, that can be a bit tricky
particularily if your systems might use udp to connect to other systems.


access-list 101 remark allow returning tcp traffic
access-list 101 permit tcp any any established
access-list 101 remark allow returning DNS traffic
access-list 101 permit udp any eq 53 any
access-list 101 remark allow new connections to www and ssl
access-list 101 permit tcp any host 10.0.0.59 eq www
access-list 101 permit tcp any host 10.0.0.59 eq 443
access-list 101 remark remember to allow for unreachables
access-list 101 permit icmp any any ttl-exceeded
access-list 101 permit icmp any any unreachable
--
IEA408I: GETMAIN cannot provide buffer for WATLIB.
 
Reply With Quote
 
 
 
 
Rod Dorman
Guest
Posts: n/a
 
      11-30-2004
In article <cog60s$g4h$>,
Walter Roberson <> wrote:
> ...
>Secondly, you never need a 'deny' statement at the end of an access list,
>as the default is to deny.


Minor nitpick, its handy when you want to log the occurance.

--
-- Rod --
rodd(at)polylogics(dot)com
 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      11-30-2004
In article <coihfp$oa3$>, Rod Dorman <> wrote:
:In article <cog60s$g4h$>,
:Walter Roberson <> wrote:

:>Secondly, you never need a 'deny' statement at the end of an access list,
:>as the default is to deny.

:Minor nitpick, its handy when you want to log the occurance.

True, but the OP had no logging of any sort defined, so putting
in a deny ACL with a 'log' keyword wouldn't have had any useful
effect.
--
Warhol's Second Law of Usenet: "In the future, everyone will troll
for 15 minutes."
 
Reply With Quote
 
Erik Freitag
Guest
Posts: n/a
 
      11-30-2004
On Tue, 30 Nov 2004 21:19:10 +0000, Walter Roberson wrote:

> In article <coihfp$oa3$>, Rod Dorman <> wrote:
> :In article <cog60s$g4h$>,
> :Walter Roberson <> wrote:
>
> :>Secondly, you never need a 'deny' statement at the end of an access list,
> :>as the default is to deny.
>
> :Minor nitpick, its handy when you want to log the occurance.
>
> True, but the OP had no logging of any sort defined, so putting
> in a deny ACL with a 'log' keyword wouldn't have had any useful
> effect.


Sure it would - you still get match counts (as shown below)

Extended IP access list border-inbound
170 deny ip any any log (76290 matches)

 
Reply With Quote
 
 
 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching from Non-Blocking to Blocking IO Christian Java 5 12-02-2007 11:24 PM
Non-blocking and semi-blocking Sockets class. nukleus Java 14 01-22-2007 08:22 PM
stealth-blocking, isp blocking website Dhruv Computer Security 9 01-25-2005 05:37 PM
Blocking and non blocking assignment in VHDL Hendra Gunawan VHDL 1 04-08-2004 06:03 AM
blocking i/o vs. non blocking i/o (performance) Andre Kelmanson C Programming 3 10-12-2003 02:09 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57