Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 20 guests and 1 member online
EH-Net Donations

Enter Amount:
$

Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Weird Firewall scan results
Ethical Hacker Community Forums
December 02, 2008, 01:07:09 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100! www.chicagocon.com/content/view/103/51/
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Weird Firewall scan results  (Read 2735 times)
0 Members and 1 Guest are viewing this topic.
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« on: March 20, 2007, 02:16:57 PM »

Alright,

So I still haven't given up on getting this EnGarde Linux fully functional. I finally fixed my other issues and everything seems to be working correctly on the box itself. I decided to run an nmap scan on it from an external IP to see the results (expecting to see all ports closed). However, this is the list of open ports I received:

21, 25, 3389, 443, 80, 113, 22, 8080, 1720, 1352, 7070, and 139.

Now, my current firewall (iptables) rules are set to a drop policy on input, output and forward. The only accept rules I have in place are to allow me access from the IP doing the scan to SSH and the admin WebTool (1023) for the software. Why in the world is it reporting all of these other ports open? Anyone have any ideas?
Logged
plik
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #1 on: March 20, 2007, 02:51:00 PM »

What version of nmap, on what OS?

and what type of scan were you running?
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #2 on: March 20, 2007, 03:39:39 PM »

I'm running nmap v4, on XP Pro.

The ports I listed show open when doing both a stealth scan and a full connect scan.

I have a virtual EnGarde machine also. When I get home I'll try scanning that one to see what sort of results it produces. Just seems like strange results... or someone compromised my box pretty quick! Tongue
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #3 on: March 20, 2007, 03:45:58 PM »

Suppose I should also mention the results of netstat....

Code:
[root@vapor venom]# netstat --inet -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 *:webtool               *:*                     LISTEN
[root@vapor venom]#
Logged
plik
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #4 on: March 20, 2007, 06:48:45 PM »

I've not heard of nmap having false positive issues with connect scans before. So I think we can assume you scanned *something* the lack of 1023 returning makes me think the scan never reached your box. Are you sure you scanned the right IP Smiley
Traceroute turn up anything interesting?

Can you actually reach ssh and webtool?

-stab in dark-
Because *something* has responded on those ports I'd say it was a routing/NAT issue. Do you have any windows boxes running IIS and mail on site?
-/stab in dark-
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #5 on: March 20, 2007, 07:03:34 PM »

The connect scan did return port 1023. I'm not sure why the stealth scan did not. Haha, yeah, I'm sure I scanned the right IP.. and yes I can reach SSH and the WebTool with no problems.

A traceroute from outside goes from the gateway to my firewall and then the firewall reply continues. So that's what? A proxy? I wonder if those scan results are reflective from something my ISP has setup in front of my firewall.

The only box with services I have (which isn't even running at the moment, nor are the firewall rules setup for it) is an all-in-one linux web server. But those rules aren't active as I've only enabled the SSH/WebTool rules.
Logged
plik
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #6 on: March 20, 2007, 07:10:31 PM »

I wonder if those scan results are reflective from something my ISP has setup in front of my firewall.

I pondered this too, but couldn't work out why you'd want to do the full handshake for services that aren't there. And why those ports?



If you can connect that's my NAT idea down the drain!
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #7 on: March 20, 2007, 07:34:01 PM »

Yeah, that's the only thing that makes any sense of it  Undecided
Logged
mn_kthompson
Jr. Member
**
Offline Offline

Posts: 58



View Profile WWW
« Reply #8 on: March 21, 2007, 08:52:14 AM »

Perhaps the ISP has put in proxies to prevent people from running servers out of their house.  It wouldn't be the first time that they have used dirty tricks to try and stop people from running a website or FTP site on their home connection.

I'm not sure what your set up is, but if you were to disconnect your firewall from your ISP and then use a crossover cable to connect your scanning machine to the external interface on your firewall then you could scan the firewall and be certain that no interference from your ISP is skewing your results. 

You could also try to telnet to some of those ports and see what server is answering, if it isn't your stuff then you know that there are shenanigans being pulled at the ISP level.
Logged
oleDB
Full Member
***
Offline Offline

Posts: 231



View Profile WWW
« Reply #9 on: March 21, 2007, 08:56:15 AM »

I doubt that its your ISP, because that would be just wrong. I've had both Time Warner Cable and AT&T DSL and have never seen that.

Try disconnecting your Engarde Linux box and doing the scan. If the results comeback the same, you've at least isolated it to a network issue and not your linux box. If it comes back with the same type of results, is it possible you have some port forwarding going on to other natted IPs?
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 869


View Profile
« Reply #10 on: March 21, 2007, 09:43:57 AM »

Thanks for the suggestions guys.

I know that the ISP doesn't have anything in place to stop me from running servers. I specifically have static IP addresses so that I can do so. I have also been able to access the web server with no problems when the rules are in place.

I'll try the ideas though, probably starting with trying to telnet to those ports and see what happens. When I get home again tonight I'll try connecting via crossover to my external interface to scan the firewall.

There shouldn't be any other rules in place, as I have flushed everything, created drop all policies, and only added the 4 specific rules for inbound/outbound to allow SSH/WebTool access.

Thanks again for the ideas, I'll keep you guys updated as to what I find out.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.049 seconds with 22 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
During the most recent election, I:
 
Support EH-Net


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2008 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.