LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-04-2005, 12:37 PM   #1
Tenox
LQ Newbie
 
Registered: Apr 2005
Location: Atlanta
Distribution: 2016: RH9 || 2024: Fedora 39 + Linux Mint
Posts: 9

Rep: Reputation: 0
How to setup wifi Webserver-only


I guess this is too many questions at once!
The first and main issue is:

If I add a second network interface to my existing linux box, how can grant access only to the web-server to traffic through this new interface. Is this best done with iptables configuration or routing or what?

Thanks for thoughts or links/references on this task,

/..


##----- original post follows:
Running RH9 and Apache 2.0.40

I have some web sites that I would like to share with several computers in wireless range. I bought a wireless router for like $9.00US. (that is cheap) I would like to add a second network card (eth1) to this box and serve the web using the wifi features of the router; it will not be connected to my lan, and its wlan/routing features are not needed either.

I believe that adding the NIC will not be too difficult, I have succeeded at this before. But I would like only to allow access to port 80(http) and possibly 443(https) and 21(ftp) through the wireless router and its interface (NIC). No connection to the samba server, mta, ssh, or any other daemon or process should be possible.

How can I achieve this? Is it enough to use features of the router? (Belkin F5D7230-4 v.2000) Is there some iptables configuration to consider? Are there various routes to set? Anything else?

In order to serve only part of the content that is normally available from this web server, what sort of modifications should I look to make in Apache's configuration? I have never approached this type of question before, so I'm a bit clueless; am I looking at a 'Virtual server' config based on the nic (mac or ip address)? Further, is it possible to use a per-user config, based perhaps on a logon & cookies (thru Apache) or by MAC address of the client, to allow various levels of ability -- such as access to more or different content?

thanks,

/..

Last edited by Tenox; 04-06-2005 at 01:25 PM.
 
Old 04-04-2005, 08:52 PM   #2
mrGenixus
Member
 
Registered: Dec 2004
Location: Colorado, US
Distribution: gentoo, debian, ubuntu live gnome 2.10
Posts: 440

Rep: Reputation: 30
there is a project that redirects all http requests to a host that is commonly used of rauthenticated routing for wirelss connections. I'm not precisely sure what or where it is, but it could probably be used to suit your needs.

I'll google for it later, in the mean time, you could do the same.
 
  


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
Can someone help me setup webserver? kuplo Linux - Software 2 11-05-2005 06:24 PM
How to Setup Basic Webserver? simsjr Linux - Newbie 2 04-22-2004 04:21 PM
webserver setup problems chief Linux - Software 8 11-16-2003 04:04 PM
Webserver setup question? RecoilUK Linux - Networking 1 08-05-2003 04:14 AM
Webserver Setup bytebrowser Linux - Networking 6 06-21-2003 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:12 PM.

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