niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » security
nmap 113/auth on shorewall
Post new topic   Reply to topic Page 1 of 1 [14 Posts] View previous topic :: View next topic
Author Message
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Tue Jun 13, 2006 7:55 pm    Post subject: nmap 113/auth on shorewall Reply with quote

I'm curious about some output I'm seeing from nmap. I've shutdown
all ports on the rhel4u3 system and configured shorewall on it with
nothing opened in reverse. However nmap states:

(The 1659 ports scanned but not shown below are in state: filtered)
PORT STATE SERVICE
113/tcp closed auth

If I comment out my rules file top to bottom, same output. The policy
file doesn't have anything specific to 113 and is the generic two
interface sample.

Why the difference for auth/113 port? It's not listed anywhere in
/etc/shorewall so why is being reported differently?

Don
Back to top
steven.crandell@gmail.com
*nix forums beginner


Joined: 14 Jun 2006
Posts: 2

PostPosted: Wed Jun 14, 2006 7:36 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

It's likely that your ISP is restricting traffic on this port so while
the remote host may have nothing configured for that specific port,
nmap doesn't know that, it just knows that 113 is closed something
along the pipeline.


dshesnicky@yahoo.com wrote:
Quote:
I'm curious about some output I'm seeing from nmap. I've shutdown
all ports on the rhel4u3 system and configured shorewall on it with
nothing opened in reverse. However nmap states:

(The 1659 ports scanned but not shown below are in state: filtered)
PORT STATE SERVICE
113/tcp closed auth

If I comment out my rules file top to bottom, same output. The policy
file doesn't have anything specific to 113 and is the generic two
interface sample.

Why the difference for auth/113 port? It's not listed anywhere in
/etc/shorewall so why is being reported differently?

Don
Back to top
Moe Trin
*nix forums Guru


Joined: 20 Feb 2005
Posts: 972

PostPosted: Wed Jun 14, 2006 7:58 pm    Post subject: Re: nmap 113/auth on shorewall Reply with quote

On 13 Jun 2006, in the Usenet newsgroup comp.os.linux.security, in article
<1150228534.281344.223090@p79g2000cwp.googlegroups.com>, dshesnicky@yahoo.com
wrote:

Quote:
(The 1659 ports scanned but not shown below are in state: filtered)

"filtered" - not impressed

Quote:
113/tcp closed auth

OK - good idea if any user application is run from here - the remote server
won't wait 30-90 seconds for a 113/tcp request to time out.

Quote:
If I comment out my rules file top to bottom, same output.

The assumption is that you are running nmap from some remote location. The
most likely answer is your upstream is blocking the port for you. Many
windoze users have "personal firewalls" that ignore (DROP) incoming packets
because they think it makes them invisible (having no understanding of the
traceroute outputs), and then whine at the ISP for a slow response from
sites that want to use RFC1413 Ident.

To check this scenario, use a packet sniffer on the remote system you
are running nmap on, and look at the headers of ICMP error packet that
indicates the port is closed. Pay particular attention to the TTL and
flags. Compare that response with a legitimate ICMP error generated by
your system when the firewall is not in "stealth" mode.

Old guy
Back to top
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Thu Jun 15, 2006 7:31 pm    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Quote:
The assumption is that you are running nmap from some remote location.

Nope, was running on a local network before I rolled it out so nothing
was blocked:

PORT STATE SERVICE
113/tcp closed auth

why is state filtered bad?

Don
Back to top
Stachu 'Dozzie' K.
*nix forums Guru Wannabe


Joined: 30 Mar 2005
Posts: 250

PostPosted: Thu Jun 15, 2006 7:35 pm    Post subject: Re: nmap 113/auth on shorewall Reply with quote

On 15.06.2006, dshesnicky@yahoo.com <dshesnicky@yahoo.com> wrote:
Quote:

The assumption is that you are running nmap from some remote location.

Nope, was running on a local network before I rolled it out so nothing
was blocked:

PORT STATE SERVICE
113/tcp closed auth

why is state filtered bad?

Do you use IRC or FTP?

--
Feel free to correct my English
Stanislaw Klekot
Back to top
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Thu Jun 15, 2006 7:36 pm    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Quote:
(The 1659 ports scanned but not shown below are in state: filtered)

"filtered" - not impressed

From the nmap docs:

The state is either open, filtered, closed, or unfiltered. Open
means that an application on the target machine is listening
for connections/packets on that port. Filtered means that a
firewall, filter, or other network obstacle is blocking the port
so that Nmap cannot tell whether it is open or closed.
Closed ports have no application listening on them, though
they could open up at any time. Ports are classified as
unfiltered when they are responsive to Nmap's probes, but
Nmap cannot determine whether they are open or closed.
Nmap reports the state combinations open|filtered and
closed|filtered when it cannot determine which of the two
states describe a port.

- Old Guy Too
Back to top
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Fri Jun 16, 2006 2:27 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Quote:

Do you use IRC or FTP?

I'm not doing anything to the net from the
firewall. All connections are through the firewall
and all connections to the firewall have
to come from inside the network ie. loc in
Shorewall terms.

Don
Back to top
steven.crandell@gmail.com
*nix forums beginner


Joined: 14 Jun 2006
Posts: 2

PostPosted: Fri Jun 16, 2006 7:38 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Have you tried these proceedures?

user@someotheroutsidehost1:$ sudo nmap -sS your.fire.wall.box
user@someotheroutsidehost1:$ telnet your.fire.wall.box 113

user@someotheroutsidehost2:$ sudo nmap -sS your.fire.wall.box
user@someotheroutsidehost2:$ telnet your.fire.wall.box 113

How does 113 look from other networks?

user@yourfirewallbox:$ sudo nmap -sS 127.0.0.1
user@yourfirewallbox:$ sudo nmap -sS your.firewalls.outside.ip

Is port 113 still in state closed from the localhost's perspective?

Finally:

user@yourfirewallbox:$ sudo /sbin/iptables -F
user@remotehost:$ sudo nmap -sS your.fire.wall.box

Is 113 still closed?



dshesnicky@yahoo.com wrote:
Quote:

Do you use IRC or FTP?

I'm not doing anything to the net from the
firewall. All connections are through the firewall
and all connections to the firewall have
to come from inside the network ie. loc in
Shorewall terms.

Don
Back to top
Stachu 'Dozzie' K.
*nix forums Guru Wannabe


Joined: 30 Mar 2005
Posts: 250

PostPosted: Fri Jun 16, 2006 10:54 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

On 16.06.2006, dshesnicky@yahoo.com <dshesnicky@yahoo.com> wrote:
Quote:


Do you use IRC or FTP?

I'm not doing anything to the net from the
firewall.

I didn't ask if you use any service from firewall. I asked if you use
IRC or FTP _anywhere_.

--
Feel free to correct my English
Stanislaw Klekot
Back to top
Moe Trin
*nix forums Guru


Joined: 20 Feb 2005
Posts: 972

PostPosted: Fri Jun 16, 2006 8:02 pm    Post subject: Re: nmap 113/auth on shorewall Reply with quote

On 15 Jun 2006, in the Usenet newsgroup comp.os.linux.security, in article
<1150400187.407676.116840@y41g2000cwy.googlegroups.com>, dshesnicky@yahoo.com
wrote:

Quote:
(The 1659 ports scanned but not shown below are in state: filtered)

"filtered" - not impressed

From the nmap docs:

I'm aware of them. As hinted in my reply above, "filtered" is the
most common configuration of the windoze "personal firewalls" because
the user has no concept of what networking looks like, and is relying
on really bad advise from the likes of Steve Gibson. The argument of
'filtered verses closed' has been going on for years, with neither
side able to convince the other of the merits of their concept.

The perimeter firewall where I work (and the one in my home) are set
to drop (ignore) incoming UDP packets that don't match up with a
previous outgoing, because UDP is truly connectionless, and (especially
for windoze messenger spam) the claimed source address is often spoofed.
Sending anything back is thus a waste of time and bandwidth. (At work,
we port-shift _outgoing_ UDP out of the _source_ range 1024 - ~1075, so
there is no legitimate reply traffic to those ports. This allows our
upstream to silently discard all inbound traffic to those ports - presto,
no windoze messenger spam wasting bandwidth.) Because TCP requires a
three-way handshake before data can flow, it's not very easy to spoof
the source address, and thus a RST (or ICMP type 3 of some flavor) is
likely to reduce bandwidth waste, compared to ignoring the incoming
packet and the subsequent retries.

All other inbound traffic is filtered such as to drop unrelated ICMP,
and reject unrelated TCP and all other protocols. This is done on the
perimeter router.

The whole world knows an address exists. If there isn't a working computer
at that address, the upstream would have sent a Type 3 Code 1 plainly
saying so (unless it is blocked even further upstream).

Old guy
Back to top
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Sat Jun 17, 2006 1:39 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Quote:
I didn't ask if you use any service from firewall. I asked if you use
IRC or FTP _anywhere_.

Someone could be using either from inside the company
through the firewall - why? I understand why your asking
but if it needs to be on I should see it in my configs. What
bothers me is that it shouldn't even be there, it makes me
wonder about shorewall to some extent.

I think what I will do is put a specific DROP rule on it to
if it changes anything.

Don
Back to top
dshesnicky@yahoo.com
*nix forums beginner


Joined: 23 Sep 2005
Posts: 21

PostPosted: Sat Jun 17, 2006 1:42 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Quote:

I'm aware of them. As hinted in my reply above, "filtered" is the
most common configuration of the windoze "personal firewalls" because
the user has no concept of what networking looks like, and is relying
on really bad advise from the likes of Steve Gibson. <snip

Good reply, thanks.

Don
Back to top
Stachu 'Dozzie' K.
*nix forums Guru Wannabe


Joined: 30 Mar 2005
Posts: 250

PostPosted: Sat Jun 17, 2006 11:50 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

On 17.06.2006, dshesnicky@yahoo.com <dshesnicky@yahoo.com> wrote:
Quote:

I didn't ask if you use any service from firewall. I asked if you use
IRC or FTP _anywhere_.

Someone could be using either from inside the company
through the firewall - why? I understand why your asking

No, you don't. FTP and IRC (often) use ident protocol to determine the
username on remote machine of connecting user (that is, on user's
machine). Try guess how long would be delay if you DROP packets and if
you REJECT them.
Every "how to build my first firewall" document teaches that.

Quote:
but if it needs to be on I should see it in my configs. What
bothers me is that it shouldn't even be there, it makes me
wonder about shorewall to some extent.

I think what I will do is put a specific DROP rule on it to
if it changes anything.


--
Feel free to correct my English
Stanislaw Klekot
Back to top
Some Dude
*nix forums beginner


Joined: 24 Feb 2006
Posts: 10

PostPosted: Thu Jun 22, 2006 11:09 am    Post subject: Re: nmap 113/auth on shorewall Reply with quote

Stachu 'Dozzie' K. wrote:
Quote:
On 17.06.2006, dshesnicky@yahoo.com <dshesnicky@yahoo.com> wrote:
I didn't ask if you use any service from firewall. I asked if you use
IRC or FTP _anywhere_.
Someone could be using either from inside the company
through the firewall - why? I understand why your asking

No, you don't. FTP and IRC (often) use ident protocol to determine the
username on remote machine of connecting user (that is, on user's
machine). Try guess how long would be delay if you DROP packets and if
you REJECT them.
Every "how to build my first firewall" document teaches that.

but if it needs to be on I should see it in my configs. What
bothers me is that it shouldn't even be there, it makes me
wonder about shorewall to some extent.

I think what I will do is put a specific DROP rule on it to
if it changes anything.


\|/

-0-
/|\

A condescending puckered anus.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [14 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 2:44 pm | All times are GMT
navigation Forum index » *nix » Linux » security
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Trouble enabling auth on postfix and sasl dklugmann Postfix 0 Fri Feb 29, 2008 11:02 pm
No new posts 2.2.4 mod_authz_owner "forgets" user's auth TJB Apache 0 Fri May 04, 2007 6:44 pm
No new posts SMTP AUTH & TLS question Tony Stocker Postfix 5 Wed Jul 19, 2006 4:12 pm
No new posts SMTP AUTH Trouble David Schell Postfix 6 Mon Jul 17, 2006 12:25 pm
No new posts Problem: MySQL Auth and Apache 2.2 fredlcore Apache 0 Sat Jul 15, 2006 9:31 pm

skincare-istore.com | 0 Credit Cards | eHarmony Coupon | Mobile Phone | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2463s ][ Queries: 16 (0.1265s) ][ GZIP on - Debug on ]