Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 27 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Router and Firewall questions
EH-Net
May 22, 2013, 12:07:26 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Router and Firewall questions  (Read 12447 times)
0 Members and 1 Guest are viewing this topic.
dasecretzofwar
Newbie
*
Offline Offline

Posts: 10


View Profile
« on: April 21, 2010, 04:19:21 PM »

I was trying to figure out at my house here i have 3 different computers hooked up with different flavors of linux as well as windows and different vm's within those I am trying to more or less set up my own network and then seeing if the different firewalls and what not i have set up work. I have a router obviously for this and am not forwarding any ports to any computer so when i use nmap everything is stuck in filtering for all the ports per the router firewall. Which is normal i want it to be as realistic as possible but i can't seem to get past the router to my actual machine itself. So my question is how to proceed from there. If anyone could point me in the right direction i would greatly appreciate it.
Logged
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #1 on: April 21, 2010, 04:31:27 PM »

What is it you're trying to accomplish?

If your router (NAT device/firewall) does not forward traffic, then you can't get beyond it to your network.

Typically the border device (router or firewall) forwards traffic it receives per its ruleset to the correct internal server.
Logged
ajohnson
Recruiters
Hero Member
*
Offline Offline

Posts: 1057


aka dynamik


View Profile WWW
« Reply #2 on: April 21, 2010, 04:38:21 PM »

Is this all internal or are you trying to get through your router from the internet?

You're not going to be able to do a great deal without having anything available.

Does the router have any known vulnerabilities?

You might be able to do an ack scan, but those should be stopped by a stateful firewall.

You could also experiment with client-side attacks (as if a user opened a malicious web site, email, PDF, etc.).
Logged

WIP: GCFA | www.infosiege.net | @infosiege

The day you stop learning is the day you start becoming obsolete.
j0rDy
Hero Member
*****
Offline Offline

Posts: 590


View Profile
« Reply #3 on: April 22, 2010, 04:33:53 AM »

i must say that your post isnt really clear. Are you trying to scan through the internal network or through the internet? if you cant see any ports your firewall does its work good. you must open them to connect to the other system. remember that there has to be a service behind it also!
Logged

ISC2 Associate, CEH, ECSA, OSCP, OSWP

earning my stripes appears to be a road i must travel alone...with a little help of EH.net
unsupported
Sr. Member
****
Offline Offline

Posts: 318


Unofficial Newbie Moderator


View Profile
« Reply #4 on: April 22, 2010, 09:05:48 AM »

As stated, your router is blocking the traffic.  If you want to test the security of each of the different distributions you may want to invest a few bucks on a cheap 10/100 hub.  A router will only send traffic out to specific ports, unless you flood it and make it fail back to be a hub, or you use ARP spoofing, or any number of other tricks.  But if you are just doing it for testing, then get a hub which sends traffic to all ports, regardless of which computer it is destined for.
Logged

-Un
CISSP, GCIH, GCIA, C|EH, Sec+, Net+, MCP
JollyJokker
Guest
« Reply #5 on: April 26, 2010, 09:10:47 AM »

@unsupported

you mentioned that one could flood a router or do ARP poisoning in order to capture the traffic. But doesn't a router operate in Layer-3? As far as I am concerned a router is not affected by such an attack?

or am I wrong?
Logged
chrisj
Hero Member
*****
Offline Offline

Posts: 1163


View Profile WWW
« Reply #6 on: April 26, 2010, 12:58:14 PM »

@JollyJokker

A lot of the routers out there now days have switches built into them, and there layer 2/3 devices. I know of a couple of places using Cisco layer 2/3 devices as their edge routers, and connecting servers or other switches off of them at the same time.

Haven't tried arp poisoning something like that yet (don't have any in my labs), but would be interested in seeing what happens.
Logged

OSWP, Sec+
dasecretzofwar
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #7 on: April 30, 2010, 02:52:24 PM »

i'm scanning through the internet remote computer so for instance i'm on my laptop going into my router i have a dyndns account set up so it's straight through i'm not forwarding any ports and nmap reads the following:

PORT    STATE    SERVICE     VERSION
21/tcp  filtered ftp
22/tcp  filtered ssh
53/tcp  filtered domain
80/tcp  filtered http
110/tcp filtered pop3
139/tcp filtered netbios-ssn
143/tcp filtered imap
443/tcp filtered https

so everything is filtered at the router itself is there anyway through that or would you say it's pretty secure?
Logged
dasecretzofwar
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #8 on: April 30, 2010, 03:30:19 PM »

also the ARP poisioning i understand most of it but more or less what is happening with the router i know the dhcp service is going to submit an ip address to the router based upon the router's mac address. And then the router essentially is the new dhcp server for the local network. But essentially is the ARP poisioning doing?
Logged
hayabusa
Hero Member
*****
Offline Offline

Posts: 1632



View Profile
« Reply #9 on: April 30, 2010, 08:32:40 PM »

In a rather generic nutshell -

ARP poisoning basically tricks devices on the network into associating an IP address from a valid host (or router) to another host or router, by propagating the secondary device's MAC address into the ARP tables.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #10 on: April 30, 2010, 10:35:00 PM »

It's not really a DHCP attack.  ARP poisoning basically tells the victim, "Forget what you know about your default gateway (router).  I am  your default gateway.  Send all your traffic to me."  You don't need DHCP on the network to accomplish this.  Once the victim believes that the attacker's MAC address belongs to the default gateway (router), he will send all Internet bound traffic to the attacker.  The attacker will sniff the traffic and forward it to the actual router.   This is why it is called a man-in-the-middle attack.
Logged

~~~~~~~~~~~~~~
Ketchup
dasecretzofwar
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #11 on: May 01, 2010, 09:16:12 AM »

ok so I get that now and the man in the middle attack and sniffing the data. But what i'm trying to figure out is ok so we have this router I use ettercap or whatever tool to do the arp poisoning and route the packets through my computer first and then to the router so i see the packets all in pretty much hex and really doesn't make much sense i can read and binary but not sure what i'm looking at with the sniffing here but then how from there how would i select the specific computer and ultimately get a shell on it which is my ultimate goal to learn to do? Like I said i'm kinda new to this and more of a hands on type of learner which is why i set the network up in my house like this and pretty much closed everything to see if what i read in several books and what not i could put to actual use and then go from there to secure it more and then try to break it again LOL.
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #12 on: May 01, 2010, 09:20:38 AM »

You should Google a few sniffing articles so that you understand what kind of data goes over the wire.   There are many ways to compromise your victim once you are able to sniff traffic.   Think about how many protocols send authentication data in plain-text.   Think about all the web attacks, XSS, particularly.   You should take a look at tools like dsniff and BeEF. 
Logged

~~~~~~~~~~~~~~
Ketchup
hayabusa
Hero Member
*****
Offline Offline

Posts: 1632



View Profile
« Reply #13 on: May 01, 2010, 09:23:50 AM »

It depends on what the data is, that you sniff.  You can read the ascii text in packets, so if you happen to be sniffing, for example, traffic going to an html login page that isn't ssl encrypted, you might see plaintext passwords, and the like.  You might also see, as Ketchup noted, a relevant filename, xss vulnerabilities, or exploitable php script being accessed, etc.  Consequently, you might see other ports and services show up in the trace, that you weren't aware of, that are open on the server being queried, so you can then banner grab or research and target attacks that are relevant to the services running on those ports.  This is all a learning process, and there are often times, when I'm scanning in this fashion, that I spot new services and ports that I wasn't previously aware of (new stuff, yay!) and I can learn what those services are, and how to exploit them.

It's a process, but one worth learning, as, even if you DON'T pursue security, in the end, you will have a much better knowledge of what goes on within the network in question.
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
dasecretzofwar
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #14 on: May 01, 2010, 01:07:30 PM »

OK I will definitely look into the sniffing portion but how do i still get around this router?
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.081 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

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