Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-30-2007, 12:30 PM   #1
Registered: May 2007
Location: Newport, Maine, USA
Distribution: Debian 8.7
Posts: 72

Rep: Reputation: 18
Question Adding site blocking to an existing network

I have a linux server and 5 Microsoft PCs connected to the internet through a switch and router (DSL.) I currently allow any network traffic to get to the internet, but would like to block access to some sites.

My setup looks like this:


DSL Router
s w i t c h
| | | | | |
server pc1 pc2 pc3 pc4 pc5
The server contains only one NIC. I would like to keep the hardware the same and provide all blocking by software if possible.

I need to know what software I should be using, and how to configure it. Any example configuration or pointer to a website that provides example confugurations would be very helpful.

Old 05-31-2007, 03:20 AM   #2
Registered: Mar 2005
Distribution: Debian Testing
Posts: 133

Rep: Reputation: 15
it is not possible without obscure configuration and severe performance penalty

the way i would imagine this can be done is to use a feature known as IP Aliasing, essentially emulating two network cards on the server, one connecting to the router and therefore to the internet, and the other one to the internal network

then you can configure the server to run as a gateway (IP masquerading), and configure the clients to use the server as the gateway

in that case you will be able to do the filtering on the server using iptables

but as i mentioned earlier, there will be a severe performance hit, because of the number of collisions and maybe other factors i am not aware of, in the server's physical network card

a better option is to add another PCI network card to the server, and connect the network like this:


in that case the linux server will act as the router, and the router you are using now will not be necessary

btw, that is how my home network is set up now

here is a howto that i found helpful
it looks very long but you can just read the relevant parts, it is very thorough, too


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
adding second router to existing network crnchyfrog Linux - Networking 2 06-06-2005 08:19 PM
blocking a site with /etc/hosts corso64 Linux - Networking 6 12-03-2004 04:29 AM
Site Blocking mathew5 Slackware 7 09-16-2004 12:35 PM
Adding linux box (wireless) to existing home network drwatts Linux - Wireless Networking 4 12-21-2003 03:31 PM
Off site image blocking! brandog Linux - Networking 8 10-07-2003 11:58 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration