LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 05-05-2006, 09:37 AM   #1
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
Wink Your 0.02$ please ?? :)


Thoughts / recommendations / hints welcome :

My current, network -

TELSEY CABLE MODEM --- D-LINK ROUTER I --- PCs + LAN SERVER
|
|
D-LINK ROUTER II
|
|
(neighbour)

Because of a wish for bandwith control/info , the "need" for a transparent proxy and a web server separated from the internal LAN I'm going to set of a second server between the routers and the cable modem.

I've discovered several wonderful projects , but sadly they all have drawbacks as to what I'm looking for ;
Smoothwall / IPcop / Clarkconnect are great but not easy to set up with more software then what they have already been included in the ISO. Clarkconnect also charges for full functionality.
Engarde Secure Linux was great! until I realiced I had to pay for proxy functions. Trustix is a very good distro, but I can't get it running with djbdns (BIND is no option) , and their forum is sadly VERY quiet. Luckily, I know this one is not

I've decided to build this from scratch using iptables, djbdns, squid and apache2 running on Debian 3.1.

Now, I got the DNS, web and proxy part ready, but HOW can I tell my server to route between NICs ? Since I know little about this I looked at all the beforementioned first, I'm in the process off reading iptables howto etc now, if anyone want to chip in, you're mighty welcome to do so. If you feel I'm making a mistake at some point here, scream at me, I'm no expert..

Thanks in advance.
 
Old 05-05-2006, 08:59 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 77
If I understand you correctly, you just need to place the 2 LANs on 2 separate subnets and use the 'route' command to tell the kernel which router to send the packets to...

ie, assuming:
192.168.0.x --> eth1
192.168.1.x --> eth2

Code:
# route add -net 192.168.0.0 netmask 255.255.255.0 dev eth1
# route add -net 192.168.1.0 netmask 255.255.255.0 dev eth2
 
Old 05-08-2006, 06:20 PM   #3
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
Will this also make it possible for computers on the subnets to talk to each other ? and to reach the internet behind the new server ?

Thanks for the reply , seems the route command might just be what I need
 
  


Reply

Tags
apache, firewall, server, squid


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



All times are GMT -5. The time now is 06:32 AM.

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