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 06-27-2009, 04:29 PM   #1
amar11372
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Filter Wireless Users


Hey guys how can I block all ports for the wireless users except port 80 so they can only have access to webpages and nothing else (no P2P) while letting users connected to the router (Linksys WRT54G running DDWRT) through physical Ethernet have full access. Thanks in Advance.
 
Old 06-27-2009, 07:18 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
It sounds to me like you haven't thought this through. Creating a security scheme for Internet access is complicated. Your idea of blocking all ports except port 80 can be easily circumvented by a slightly clever high school student.

First you can block ports using iptables.

You should block port 80 from all machines except one. This one machine is going to be set up as an http proxy server.

That is the answer to your question. However the answer to your intended goal is more complicated. Unfortunately there are numerous ways to implement Internet restrictions. Here is one idea.

If your Internet gateway is a fully fledged computer running Linux then you can use it to block traffic to and from specific IP addresses. You would install some software to monitor all Internet traffic and block traffic to and from addresses on a black list. You could obtain a blacklist from some place like Spamhause.

Some Linux distributions are geared toward performing this sort of security function. One that comes to mind is Open Wall Linux (OWL).

If your gateway is not a full fledged computer running linux you have other options to achieve the same goal. For example if your gateway is a Linksys cable modem/router then there is a Linux distribution that you can load onto the Linksys router to perform enhanced security filtering as already described.

If that is not an option then you can put a fully functioning computer between your cable modem and your router and set up that machine as a bridge. You can run security software on the bridge.

This is a very complicated subject. If you are just doing this so that you can learn about network security then my suggestions above should provide some direction for you to research these issues. If you are setting up a network in a professional context then you should hire an experienced consultant to help you.
 
  


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
Dansguardian - Won't filter new addresses added to filter list TechnoBod Linux - Software 1 01-08-2008 01:40 AM
Great wireless utility, 'specially for rt2500 users.. cwwilson721 Linux - Wireless Networking 3 11-28-2006 02:07 PM
Transparent proxy for users on wireless network ajay1982@gmail.com Linux - Wireless Networking 1 04-25-2006 08:00 AM
logging wireless users linuxhippy Slackware 4 04-15-2005 10:52 AM
Spam filter to external mail filter deadlock Linux - Software 1 06-16-2004 02:28 AM

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

All times are GMT -5. The time now is 06:34 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