LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-05-2005, 11:08 AM   #1
gjhicks
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47

Rep: Reputation: 15
proxy server setup, 2 NICs in same PC


Hi,

Have a PC with 2 ethernet adapters, one connected to an ADSL modem/router, the other to a wireless access point.

Am (sort of) happy to deal with the hardware issues but need help with the network setup.

Main point of the exercise is to content filter the net access in my house.

So, would appreciate any assistance with the method of setting up the TCP/IP for the two adapters - so that one adapter "sees" the net and the other "passes" filtered content to the wireless network.

My current investigation seems to point at "privoxy" as a good filtering proxy but I am not clear on the implementation.

Regards,

Geoff.
 
Old 04-05-2005, 11:17 AM   #2
gabriellai
Member
 
Registered: Oct 2004
Location: Malaysia
Distribution: CentOS
Posts: 31

Rep: Reputation: 15
Hi Geoff,

Hopefully I can give you my hands.

I'm assumming that the NIC you connect to your ADSL Modem would be eth0, and wireless network eth1

eth0 will by pass the content filtering, and eth1 pass through content filtering.

My question, is eth0 conneted to the pc at home? to any clients??

If not, then eth0 will point to ADSL Modem/Router, and eth1 will be separate IP from eth0, as wireless will be public, so use different ip from your eth0.

Gateway for eth1 will point to eth0, the box will run squid, then those in eth1 wireless network, will get filtered when they connected to the box.
 
Old 04-06-2005, 06:23 AM   #3
gjhicks
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47

Original Poster
Rep: Reputation: 15
Hello Gabriellai,

Thanks for your reply.

Yes, your assumptions are correct: eth0 for the ADSL modem/router connection and eth1 for the wireless access point connection.

There will be no clients connected directly to the ADSL modem/router, other than the server.

My problem(s) is the setup of the TCP/IP in the server, so that the wireless lan can "see" the filtered output of the ADSL modem/router. Or more importantly, so that clients on the wireless lan can "see" a filtered internet connection.

Also, I guess I have to turn off the DHCP and NAT in the router and use linux to provide DHCP/NAT for the wireless lan clients?

I am sure that there are several other issues that I need to resolve!

I guess I am hoping that someone else has already setup such a system and will share their experience in the setup.

Thanks again,

Geoff.
 
Old 04-06-2005, 06:32 AM   #4
gabriellai
Member
 
Registered: Oct 2004
Location: Malaysia
Distribution: CentOS
Posts: 31

Rep: Reputation: 15
Hello Geoff,

You might have to turn off your router, and use Linux as Router, Gateway, Proxy Server & etc.

For NAT and router, maybe you can try out firestarter as it's the easiest firewalling you could

give a try.

eth1 Gateway IP will point to eth0 IP address, so that your wireless clients can access to

internet.

As for squid, start it up.... and the wireless clients is passing through the Proxy, then

goes to internet.

For modification on squid.conf, check out the manual inside....

It explains very clear as it will suits your requirement.

Thanks

Last edited by gabriellai; 04-06-2005 at 06:33 AM.
 
Old 04-06-2005, 06:38 AM   #5
gjhicks
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Posts: 47

Original Poster
Rep: Reputation: 15
Hello Gabriellai,

Such a prompt reply!

I am not sure if I can "turn off" the router, as it is an integrated ADSL modem/router but I will have a look. Unfortunately, I am travelling at present so can not have a go at your suggestions for several days.

Once back home, I will certainly try your suggestions and get back to the forum after that.

Thanks again,

Geoff.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Configure two NICs to set setup Squid proxy on RH linux 8.0 latencywala Red Hat 14 01-02-2009 05:01 AM
proxy server setup help archish Linux - Networking 6 01-25-2004 11:12 PM
setup ftp proxy server blake2000 Linux - Newbie 2 10-05-2003 02:45 PM
setup an ftp proxy server blake2000 Linux - Networking 1 10-05-2003 12:11 AM
Multiple NICs Server Setup swa1 Linux - Software 2 07-26-2001 09:43 PM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration