Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to pull into a truck stop and offer a folder of free documentaries, broadcasting from my bus. I have a bunch of videos in a web folder and can access it locally and would like others to be able to access it freely and without passwords or other restrictions.

I run Linux and have an internal wireless in the laptop but my bus has an antenna on the roof which I connect via USB to create a wireless signal (this is the one I'd like to focus on since it will offer the most reach to all those truckers out there.)

I have a Linux box (it IS the router via an ethernet card as the outbound to a hub, switch, another router, whatever I want it to go to right now it's to exclusively to a printer rather than going through the switch. To be clear: my Linux box is the router direct from the modem.)

The Linux box is also the server (web server is Apache 2 and serves videos, pictures, and documents).

I already know how to setup a wireless router to the outbound channel of my Linux box (which is the proven better method as opposed to being before my Linux box!).

What is the easiest way to ensure that when someone logs onto the wireless router that they can access this folder? Would this be so simple as a port-forward (but I think that only works from the website)?

share|improve this question

3 Answers 3

Pretty much all you need to do is to set up a router somehow - I do believe some wireless adaptors would do that, and/or you can use hostapd. Tricky thing really is to get the users to find the server - you would need to set up a captive portal for that - the firewall approach makes most sense here. If you wanted to make it even simpler, just name the AP in some way its obvious how to find the server ;)

Something that might work perfectly, with a few tweaks is the piratebox - these installations scripts would be what you're looking for, and there's more usecases here.

share|improve this answer
    
Yeah, basically you want to use the same logic that a motel (or, probably, truck stop) server uses to force your browser to start at a specific page (the sign-on page for the motel, but your menu page in your case). I don't recall exactly (or even approximately) how it's done, but it's not too complicated. –  Daniel R Hicks Sep 16 '13 at 20:24

You could setup a wireless accesspoint and use a captive portal to redirect any outbound webtrafic to your internal server. A good captive portal for openwrt is nodogsplash

I would advise making it very obvious that your wirless access point does not have internet. Most people will expect an open AP to be connected to the internet.

Your question is similar to this one Configure router to redirect requests from local machine

share|improve this answer

Your network terminology is a bit awkward. What do you mean by router outbound channel?

I can imagine two setups:

Use a wireless lan card or usb stick with hostapd to set up your linux router as a full access point. You can Disable routing for the wifi subnet or set up a iptables firewall to prohibit wifi users to access anything but what you want them to.

Another posibility is that you hook up an wifi access point (cheap wifi router will do too) to a free network port of the linux router and again set up a iptables firewall.

If you cant wrap your head arround iptables command line syntax try firewallbuilder which could serve as a nice gui.

Just 2 out of many possibilities. Also the mentioned openwrt captive portal solution would work.

Also you could grap an openwrt capeable router and again only set it up with iptables thorugh the LuCI webinterface.

There should be a lot howtos on the web regarding openwrt access points which could point you in the right direction to set up captive portal/iptables/webredirects...

Hope this helps

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.