🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.dcom.sys.cisco
Article #95

Re: access-list

#95
From: Paul Smee
Date: Fri, 07 Aug 1992 10:00
40 lines
2375 bytes
Tried replying by mail, but my mailer doesn't like
ugly.NoSubdomain.NoDomain.  You're still running with the default as
shipped mail config, aren't you?  Tsk tsk.  Nevermind, here goes...

In article <1992Aug6.234311.2529@ncube.com> zod@NoDomain.NoSubdomain.ugly 
writes:
>Well it's time again for another access-list question.
>
>I have got 4 interfaces into my cisco. 2 ethernet and 2
>serial. My local net is on one ethernet and internet goes
>to one serial interface. I am trying to set the access-list
>so that ip connection is allowed to 2 hosts from outside and
>ip connection be allowed from all hosts inside. I have tried
>setting access-group 101 for the ethernet interface and using:
>
>access-list 101 permit ip 0.0.0.0 255.255.255.255 nnn.nnn.nnn.13 0.0.0.255
>access-list 101 permit ip 0.0.0.0 255.255.255.255 nnn.nnn.nnn.47 0.0.0.255
>access-list 101 permit ip nnn.nnn.nnn.0 0.0.0.255 0.0.0.0 255.255.255.255
>access-list 101 deny ip 0.0.0.0 255.255.255.255 nnn.nnn.nnn.0 0.0.0.255
>
>Where nnn is my network numbers.
>
>This scheme doesn't work, and any connection is being allowed into my net!
>Am I missing something here? Or do I need to get new firmware for my cisco?
> My show version shows:

Assuming that the above is accurate, I reckon the problem is in your
first two access-list statements, which should read:

access-list 101 permit ip 0.0.0.0 255.255.255.255 nnn.nnn.nnn.13 0.0.0.0
access-list 101 permit ip 0.0.0.0 255.255.255.255 nnn.nnn.nnn.47 0.0.0.0
                                                                      ^^
Even though you've specified hosts .13 and .47, that .255 in the
statements as you quoted them means that the Cisco is supposed to
ignore that component of the address, so effectively BOTH those first
two statements say 'let anyone connect to any of our hosts'.

-- 
Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK
 P.Smee@bristol.ac.uk - ..!uunet!uknet!bsmail!p.smee - Tel +44 272 303132
Technical Details
Message-ID: <1992Aug7.100018.23454@bristol.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!gdt!bsmail!smee
References: <1992Aug6.234311.2529@ncube.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!gdt!bsmail!smee
From: smee@bristol.ac.uk (Paul Smee)
Newsgroups: comp.dcom.sys.cisco
Subject: Re: access-list
Message-ID: <1992Aug7.100018.23454@bristol.ac.uk>
Date: 7 Aug 92 10:00:18 GMT
References: <1992Aug6.234311.2529@ncube.com>
Reply-To: P.Smee@bristol.ac.uk (Paul Smee)
Organization: University of Bristol
Lines: 40