• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

packet forwarding, dual NICs, linux, a little of everything :-)

phrawd

Member
I know there has to be a way to do this because it's the basis of broadband networking, I just don't know how to do it. What I want to do is setup two NICs (10mbps) in my PC. One will go to my network and the other will go to a hub that splits another network connection between my PC (primary) and another PC (secondary). This isn't the hard part yet, I think I can figure this out in linux on my own. But to make it more tricky, I want to enable packet forwarding on the secondary PC only when the primary PC is at near full bandwidth utilization. I've made a few assumptions which I don't know if are correct, such as using all software based forwarding and only a hub to split the connection rather than a router that determines packet destinations. Is there any way to get around using a router? This is all in hopes of increasing my primary bandwidth connection from 10mbps to something higher and not exceed imposed bandwidth limitations because I'll use up the spare bandwidth the other PC (which pays a separate network connection fee and thus has it's own bandwidth reserve) doesn't use. Let me know if you've got some suggestions! 😕
 
Do a google search for "linux advanced routing howto". If anything can help you out, it's that howto and the relevant LARTC mailing list. I know that it is possible to mark certain kinds of traffic to go out on a certain interface. One of the howto's examples makes use of a cheap but slow link like a dialup and a fast but expensive link like a DSL or ISDN connection. They route traffic like sending emails out the slow link since you don't need performance for that but stick web traffic and probably SSH traffic out the fast but expensive link.

The enabling of packet forwarding only when bandwidth utilization is close to full bandwidth is also probably possible but I'm not sure it would be practical. But that's up for you to decide and the resources I've mentioned are probably the best (and only) ones out there. It's pretty hairy stuff. 🙂

Gaidin
 
Wow is that overkill, in terms of complexity... 2 WAN links?

Anyway, here's the guide from Linuxdoc, your source for everything.. Bookmark em. Linux IP Masquarading. Pay special attention to section 6.4 after you get it up, that's where the secure scripts are. They have versions for whatever you're running, even the 2.0 kernel line if you're insane 😉
 
Back
Top