Jump to content


Photo
- - - - -

Web Server On Router


  • Please log in to reply
8 replies to this topic

#1 gsanjeevkumar

gsanjeevkumar

    Newbie

  • Members
  • 3 posts

Posted 08 October 2011 - 06:08 PM

Hi Friends,

I am really wanting to know how to get a web server running on a Wireless Router.

I wanted to know if I can have a USB Thumb Drive inserted in to the interface provided on most Routers these days and host all the files required in it, and then configure the Wireless router as needed.

Once this is done any client who could connect to this Wifi network can access the web server and the site hosted on it.

Please let me know ...

thanks in advance

#2 Mr-Protocol

Mr-Protocol

    Hak.5 Packet Ninja

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 3,445 posts
  • Gender:Male

Posted 08 October 2011 - 06:43 PM

I don't see why you want to host a local web server to only people who connect to your router??

Mr-Protocol @ irc.hak5.org #hak5
Mr-Protocol @ chat.freenode.org #hak5
 
https://wifipineapple.com/
 
Im just watching a bad dream I never wake up from. -Spike Spiegel
DerbyCon


#3 digip

digip

    -we're all just neophytes-

  • Active Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 7,651 posts
  • Gender:Male
  • Location:RnVjayBPZmYh 192.168.100.1

Posted 08 October 2011 - 07:29 PM

Not practical in use, and not what they are designed for, but most routers, already have some form of modest web server, hence the interface in which you configure them over http/https. Most are some small http server with little to no functionality other than to administer the device. That said, set up a virtual machine, bridged, and let it get an address from the router, then port forward port 80 to the VM's IP. You can get a pre-built VM with all the bells and whistles too from Turnkey Linux.
@xxdigipxx http://www.attack-scanner.com/ | I'm the resident dick around here, or so I am told. Don't take it personally, I just give a shit too much sometimes. respect to all, its the Internet, don't take it to heart.
"Staying quiet doesn't mean I have nothing to say, it means I don't think you're ready to hear my thoughts..."

#4 gsanjeevkumar

gsanjeevkumar

    Newbie

  • Members
  • 3 posts

Posted 09 October 2011 - 11:53 AM

Not practical in use, and not what they are designed for, but most routers, already have some form of modest web server, hence the interface in which you configure them over http/https. Most are some small http server with little to no functionality other than to administer the device. That said, set up a virtual machine, bridged, and let it get an address from the router, then port forward port 80 to the VM's IP. You can get a pre-built VM with all the bells and whistles too from Turnkey Linux.


Thanks for the Reply, the following are the restrictions/limitations I am dealing with

I cannot connect to any network other than the Wifi Network Created by the router (as this is a fall back plan, no connectivity to resources other than the router and its USB Thumb Drive

#5 gsanjeevkumar

gsanjeevkumar

    Newbie

  • Members
  • 3 posts

Posted 09 October 2011 - 11:54 AM

I don't see why you want to host a local web server to only people who connect to your router??


This is the fall back plan, once there is not connectivity to internet or the VPN via a Switch

#6 digip

digip

    -we're all just neophytes-

  • Active Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 7,651 posts
  • Gender:Male
  • Location:RnVjayBPZmYh 192.168.100.1

Posted 09 October 2011 - 04:38 PM

Let me ask you this. How is the router administered? Because by default, its web interface will use either http or https. So people coming to view this "website" will see the routers config page. This is why you would want the service on a separate device and port forward to it. Even if its a wireless router, if you wanted something really compact, get a small wall wart like the pogo plug, put debian on it and apache something like thttpd, then just serve off of that.

Adrian did a talk at Derbycon about how to put Debian on a pogoplug (http://www.amazon.co...e/dp/B0033WSDR4) which also accepts a USB key for storage and wifi nic cards on usb. You could essentially turn it into a small web server/access point and bridge it with your existing router, then just port forward to the pogo for serving pages. Its probably not powerful enough to use as a wireless router itself, but shouldn't be too much work to turn it into a small web server.

Edited by digip, 09 October 2011 - 05:09 PM.

@xxdigipxx http://www.attack-scanner.com/ | I'm the resident dick around here, or so I am told. Don't take it personally, I just give a shit too much sometimes. respect to all, its the Internet, don't take it to heart.
"Staying quiet doesn't mean I have nothing to say, it means I don't think you're ready to hear my thoughts..."

#7 Infiltrator

Infiltrator

    Gray-Hat Specialist

  • Active Members
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 4,392 posts
  • Gender:Male
  • Location:Over the Atlantic, at a cruising altitude of 70.000 feet.
  • Interests:Wireless and Network Security
    Server Virtualization
    Computer Network Infrastructure
    Server implementation.
    General Aviation
    RC Airplanes and Helicopters
    Scuba Diving
    Sky Diving
    War driving
    Solar battery Systems.
    Pen-Testing
    Command & Conquer

Posted 11 October 2011 - 06:57 AM

Or if you have a spare machine lying around in your house, you could turn it into a web server. Setting it up, its not difficult at all, just download Apache and install it as a normal application. Once installed, you will need to enable port 80 on your machine's firewall as well as forward port 80 on your router, so your friends can access your web server from the internet.
Regards,
Infiltrator


Posted Image

Currently studying for my CCE.

#8 justapeon

justapeon

    Hak5 Zombie

  • Active Members
  • PipPipPipPipPip
  • 183 posts

Posted 22 October 2011 - 06:15 PM

We have run Debian on an old Cisco Linksys nslu2 with apache, but lightppd (spelling!) or nginx might have been better, Heard of people running a web server on an old 486 with bsd. Old machines are a dime a dozen. There are a;so ide to compact flash adapter interfaces so you do not have to have an hd running. I would be interested in the pogoplug if you can in fact run Debian without a big hassle.

#9 unasoto

unasoto

    Hak5 Pirate

  • Active Members
  • PipPipPipPipPipPip
  • 361 posts
  • Location:Las Vegas, NV

Posted 14 December 2011 - 03:51 PM

Lots of corporations have internal web servers That you can log into when you get to work this would be just the same thing
I wear a black hat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users