LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-04-2006, 03:28 PM   #1
tubatodd
Member
 
Registered: Jun 2003
Location: Birmingham, Alabama (USA)
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Configuring 2 Network Cards


I have a computer that I am currently setting up for my school as a content filter. The machine has 2 network cards in it. I have one card setup perfectly to work as the receiving end of the internet. My question is, what do I have to do to get the OTHER card setup as the output to the rest of the network? Thanks

PS I am still working on Squid and Dan's filter. Any suggestions would be appreciated.
 
Old 05-04-2006, 04:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
depends how you want this all to work really. if this box is ONLY for web, then you should run it as a proxy, let them connect to squid and let that go off to the internet seperately. in this scenario there is really very little networking to do, it simply is on two networks at once. squid does not "output" to a network, it simply responds back to whoever asked it to do something, and if that client was on the internal side, then that's where it will reply to. if the internal network contains more than just the local network then you would need to add on manual routes to all other networks reachable internally.
 
Old 05-04-2006, 04:11 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
depends how you want this all to work really. if this box is ONLY for web, then you should run it as a proxy, let them connect to squid and let that go off to the internet seperately.
Or he could use NAT to proxy.

Peace...
 
Old 05-04-2006, 04:13 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well that's not http proxying then.. that's natting... which is what i would recommend against. if you only want web, do the networking at a higher applicatino level where you are only interested in http gets and posts. doing a nat / masq towards the internet could give a vast amount more access than is intended.
 
Old 11-23-2006, 11:29 AM   #5
Nekroido
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Slackware 11

I've got two network cards for internet and lan.
I can't make them work at the same time.

I turn on one card, then another, and the first one works perfectly, when second doesn't want to "look" at the net.

So, I can be only in one network -- internet or lan.

eth0 172.16.10.1 Bcast 172.16.255.255 Mask 255.255.0.0
eth1 172.16.10.2 Bcast 172.16.10.255 Mask 255.255.255.0
 
Old 11-23-2006, 02:03 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,257

Rep: Reputation: Disabled
PLEASE start your own new thread instead of re-opening an old one with your unrelated question at the end.
I might have answers for you but I won't add them here.

Eric
 
Old 11-23-2006, 03:07 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well laregly as above but essentially.. your subnets there are a complete mess, i'd suggest reading up on subnetting and ip in general, as one network clearly contains the network of the other in a larger mask.. that's a mess and little else.
 
  


Reply

Tags
network, network bridge, networking


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
configuring my network cards zerog Linux - Networking 2 12-31-2005 05:51 AM
configuring 2 network cards? julc Slackware 1 01-11-2005 07:44 AM
Configuring network cards Redhat9 lethalinjection Linux - Networking 5 11-01-2003 04:01 PM
Configuring two video cards InsaneBob Linux - Software 4 06-20-2003 11:53 PM
Configuring two wireless cards!! RKris Linux - Wireless Networking 1 10-20-2002 08:54 AM


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

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