LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Configuring 2 Network Cards (https://www.linuxquestions.org/questions/slackware-14/configuring-2-network-cards-441665/)

tubatodd 05-04-2006 03:28 PM

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.

acid_kewpie 05-04-2006 04:01 PM

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.

tomdkat 05-04-2006 04:11 PM

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...

acid_kewpie 05-04-2006 04:13 PM

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.

Nekroido 11-23-2006 11:29 AM

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

Alien Bob 11-23-2006 02:03 PM

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

acid_kewpie 11-23-2006 03:07 PM

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.


All times are GMT -5. The time now is 05:54 AM.