LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-29-2005, 08:04 AM   #1
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Question "Test my firewall.com" question!


Hi there!

I've a security question . Well, I consider myself an average Linux user, but my weakest point is (besides getting the fans in my computers to spin) is security. I don't understand that much about security, even though I read some books about the subject...

Well, when going to http://www.testmyfirewall.com/, I got quite surprised that they could actually see my Internal IP address.... How bad is that? I have a little firewall/switch with DHCP server. It's this one I have:

SMC SMC7004VBR Barricade Cable / DSL Router

http://www.jr.com/JRProductPage.process?Product=3117618

I've tweaked this router settings to enable firewall. However, testmyfirewall.com is still able to see my Internal IP number (not the external, provided by my ISP, that's what is disturbing).

Question: How bad is it in the real world?. Ports I've open in my router/firewall are for P2P as emule and bittorrent.

Question2: I often plan to use Linux as a router. I am always thought that to be a big of work, to turn on one computer just to use another one ::

Feel free to recommend me alternatives please

Thanks in advance!
 
Old 03-29-2005, 08:22 AM   #2
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Rep: Reputation: 15
I would recommend going to http://easyfwgen.morizot.net/

Here you can create an IPTables firewall to use as a starting point. The firewall generated will be comprehensive. Then you can start opening ports.

Also, I would shy away from using an online service to test my firewall. Instead, I would use a copy of Nessus.... just make sure you use it from outside your firewall. Connect to a friends network and test from there.
 
Old 03-29-2005, 08:24 AM   #3
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 65
DrAxeman, that's really really cool. I always had problems configuring iptables. Thanks a lot mate!
 
Old 03-29-2005, 08:27 AM   #4
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
Use the test at grc.com it's a lot more straight forward although still as alarmist as other sites.

Most these kind of sites are just trying to sell you a firewall or some other "security solution" and you should take their findings with a pinch of salt. Does it really matter if someone can see your IP? No, not really. Does it matter if soemone can tell a port is closed instead of "Stealthed", well no, not really, so what? the port is closed and that's what matters.
 
Old 03-29-2005, 08:28 AM   #5
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Rep: Reputation: 15
Not a problem. I remember when I first started having problems with IPTables. I found that once I had a basic firewall, I could tinker with it from there. If you have any problems, let me know.
 
Old 03-31-2005, 01:41 PM   #6
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Re: "Test my firewall.com" question!

Quote:
Originally posted by Megaman X
However, testmyfirewall.com is still able to see my Internal IP number.

Question: How bad is it in the real world?
Nothing to worry about if your internal IP is non-routable private IP address (ie. 192.168.x.x).
 
Old 03-31-2005, 01:58 PM   #7
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
nothing to worry about even if your IP was a fully routable address.
 
Old 03-31-2005, 10:09 PM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
but still, how is it that one can see a private IP address from outside of a NAT router???
 
Old 04-01-2005, 01:08 PM   #9
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Quote:
Originally posted by win32sux
but still, how is it that one can see a private IP address from outside of a NAT router???
It isn't really possible without first compromising the host behind the router. The only reason his internal IP is showing is because his web browser is set to run with scripts enabled. In other words, it is just a browser trick.

Try running the test with javascripts disabled and see for yourself

Last edited by soulstace; 04-01-2005 at 01:18 PM.
 
Old 04-01-2005, 01:21 PM   #10
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Quote:
Originally posted by ror
Does it matter if soemone can tell a port is closed instead of "Stealthed"
Well, in a way yes.

If a port is closed it will respond as such, giving away that there is a machine online with that address. If a port is stealth it will not respond (reply) with anything. So the attacker will likely move on to a machine which is actually known to be 'alive'.
 
Old 04-01-2005, 02:13 PM   #11
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
so what if someone knows there's a machine at my address online? If my ports are closed there's nothing they can do anyway.
 
Old 04-01-2005, 04:30 PM   #12
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by soulstace
The only reason his internal IP is showing is because his web browser is set to run with scripts enabled. In other words, it is just a browser trick.
thanks, that's what i was thinking...
 
Old 04-02-2005, 10:06 PM   #13
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
Quote:
Originally posted by ror
so what if someone knows there's a machine at my address online? If my ports are closed there's nothing they can do anyway.
If your machine is known to be online then that quite clearly makes it a possible point of attack. My point is that closed ports are not as safe, nor will they ever be as safe as stealthed ports. A stealthed port wouldn't respond to a connection even if there was a service listening on it.
 
Old 04-03-2005, 01:16 AM   #14
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
You could easily do the same thing using the REJECT target and have the port with a service running appear as closed also...

In fact having a port 'stealthed' isn't really any more 'safe' than having it 'closed'. The only difference is that A) you can identify whether the system is up and B) it can be useful for OS fingerprinting. The only things that make a given port safe are whether a remote host can actually interact with a daemon and whether that daemon is vulnerable to exploitation.
 
Old 04-04-2005, 08:55 AM   #15
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
A closed port is easy to open. Simply start a service listening on a port. A stealth port is safer because even if a rootkit or trojan happens to be downloaded and installed it is still not allowed thru the firewall.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
any software to test proxies as the "proxy hunter" on windows platform? chamberlain Linux - Networking 0 05-10-2005 07:42 PM
Mandrake 10.1: "Please test Sagem ADSL modem (DHCP or static) with eagle-usb" Proud Mandriva 3 09-29-2004 03:17 PM
Can't make Apache display anything diferent than the "test page" johann519 Linux - Networking 7 01-21-2004 06:54 PM
Quesiton about "FIREWALL setting" in "SETUP"--please help out yuzuohong Linux - Networking 1 05-14-2002 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration