On Jul 22, 11:25*am, Rob <nom...@example.com> wrote:
> Chris Roberts <thecjg...@gmail.com> wrote:
> > On Jul 21, 5:32*am, Rob <nom...@example.com> wrote:
> >> Martin Gallagher <mgall...@zeta.org.au> wrote:
> >> > Chris Roberts wrote:
>
> >> >> I have an ACL (outside-in) set up on the interface of R2 to log the
> >> >> traffic. and I see that a packet goes through on port "0"
>
> >> > *You haven't shown us what ACL outside-in is, but if it doesn't look at port
> >> > numbers itself, you won't get the information in the log message.
>
> >> > *IOS isn't going to waste time collecting stuff you've already told it you
> >> > aren't interested in.
>
> >> That is right. * To resolve this, put something like this:
>
> >> deny * tcp any any eq 1 log
>
> >> before the
>
> >> deny * tcp any any log
>
> > Here is the acl. (it is on the ouside interface) and logs any TCP
> > ports. That is why it logged that there is a packet coming in on port
> > 0.
>
> > ip access-list extended outside-in
> > *permit tcp any any log
> > *permit ip any any log
>
> > *Mar *1 00:44:35.771: %SEC-6-IPACCESSLOGP: list outside-in permitted
> > tcp 34.34.34.4(0) -> 63.175.69.29(0), 1 packet
>
> > There are no packets coming in on port 1, so I am curious why you
> > think that will help.
>
> Just try it and you will see.
>
> > My question is when telneting from the outside to port 80, I am seeing
> > a packet come in on port 0, then seeing a packet on port 80.
>
> Because, just like the other poster said, as long as you don't refer
> to a port number anywhere in your ACL, the router will not extract
> the port number from the packet and it will log the zero value.
I tried it, still the acl at the interface registers a tcp port 0.
(not 1)
Then when it hits the NAT ACL, it gets rejected.
(I am suspecting that the port 0 issue is not the problem,
but I don't understand why the "nat" ACL is getting hit twice for each
time I try.
Once on the permit
Once on the end deny statement .
R2#sh access-l nat
Extended IP access list nat
10 permit tcp any eq www any (1 match)
20 permit tcp any range 60000 64999 any log (3 matches)
30 deny tcp any any eq 1 log
40 deny tcp any any log (6 matches)
R2#
*Mar 1 00:21:42.095: %SEC-6-IPACCESSLOGP: list outside-in permitted
tcp 23.23.23.24(6510

-> 63.175.69.29(80), 1 packet
R2#
*Mar 1 00:21:42.099: NAT(acl): name nat failed
*Mar 1 00:21:42.099: NAT: Matches reverse map inbound (deny)
*Mar 1 00:21:42.107: NAT: map match inbound
*Mar 1 00:22:07.507: %SEC-6-IPACCESSLOGP: list nat denied tcp
10.1.1.95(0) -> 23.23.23.24(0), 1 packet