View previous topic :: View next topic |
Author |
Message |
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Wed Nov 30, 2005 5:00 am Post subject: Managing two IP's, and forwarding traffic between computers? |
|
|
Hello!
I've got two networking-related questions.
First, I've got a gentoo box with two NIC's, eth0 and eth1, both plugged into the same network. The idea is I can download 700MB per day on each. Is there any way to govern which is used when? Or some way to use both equally?
Second, I've got a second gentoo box. Is there anyway to forward traffic though it to the internet? A solution for just one port (80) is good, but what about all network traffic? can we do that?
Thanks in advance,
--Murph |
|
Back to top |
|
|
kloune Apprentice
Joined: 09 May 2004 Posts: 185 Location: lost
|
Posted: Wed Nov 30, 2005 9:31 am Post subject: |
|
|
Hi,
For the first question, it should be possible, but I don't really know a good solution. You could use the routing table to set the default gateway, for eth0 at the beginning and then to go on eth1.
To forward all traffic, you only need to set
Code: |
net.ipv4.ip_forward = 1
|
in your /etc/sysctl.conf file and reboot or
Code: |
echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
|
Back to top |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Wed Nov 30, 2005 11:58 am Post subject: |
|
|
The second question is easiest, you want to set up masquerading.
Google for that, or look int he gentoo wiki, there are lots of good guides.
The first question is a little more painful, what is the network you are attaching your two nics to? Is it your internal one, or your ISP?
If it's your ISP and they restrict you to 700MB a day, you probably wont get around it like this. _________________ My Public Key
Wanted: Instructor in the art of Bowyery |
|
Back to top |
|
|
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Wed Nov 30, 2005 3:38 pm Post subject: |
|
|
It's a campus network - having two nic's looks like two computers to them (they're suprisingly good at catching onto MAC address switching though). |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|