Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Managing two IP's, and forwarding traffic between computers?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 672

PostPosted: Wed Nov 30, 2005 5:00 am    Post subject: Managing two IP's, and forwarding traffic between computers? Reply with quote

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
View user's profile Send private message
kloune
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 185
Location: lost

PostPosted: Wed Nov 30, 2005 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Wed Nov 30, 2005 11:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 672

PostPosted: Wed Nov 30, 2005 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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