linux lan

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

You got ripped man..I am buying a 722mhz with 512 ram, new mb and cpu...$46!!
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

Straterra wrote:You got ripped man..I am buying a 722mhz with 512 ram, new mb and cpu...$46!!
Really, can you buy them in bulk?

Where?
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Bulk? Nah, I am getting one from a friend of mine who works at a local computer shop. The machine is a barebone, ugly case, but a nice system.
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Straterra wrote:You got ripped man..I am buying a 722mhz with 512 ram, new mb and cpu...$46!!
Not really. Money that actually went into the machine was 15 dollars for a power supply. The other 35 bucks was for a crimping tool and some cable. I just lumped it all together. :roll:

But you still got a good deal on that box. That's sweet!

Cheers,
BDKR
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Yeah..just what to do with my old 150mhz machine? It has an original Intel...16mb ram..Brand new BIOS..
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

After reading through this whole thread, I kept asking myself when someone was going to tell him "CROSSOVER CABLE!" ...but yea, glad ya figured it out.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Hm..What is the reason behind a crossover? I'm not sure I understand why it is needed in this specific problem...
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

Computer to computer requires a crossover cable.
I'm not sure why; I just know it does.
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

Prolly just a marketing scam to get you to buy a different cable..Just kidding..
User avatar
BDKR
DevNet Resident
Posts: 1207
Joined: Sat Jun 08, 2002 1:24 pm
Location: Florida
Contact:

Post by BDKR »

Straterra wrote:Hm..What is the reason behind a crossover? I'm not sure I understand why it is needed in this specific problem...
It's specifically for communication between two network cards without a hub. One of the four twisted pair is reversed on one side. Most networks really don't need this kind of thing except for (if I'm remembering correctly) those times when a hub doesn't have an uplink port, but you need to plug it into another hub.

Cheers,
BDKR
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

I have another question.

Here's the setup:

I have 2 routable ips (1.1.1.1, 2.2.2.2)
And 2 non-routable networks (172.40.1.x, 172.40.2.x)
And 3 ethernet cards in my linux firewall.

// link to the outside
firewall ==eth0=(1.1.1.1 and 2.2.2.2)==> the internet

// internal
firewall ==eth1=(172.40.1.1)==> mach#1(172.40.1.2)
firewall ==eth2=(172.40.2.1)==> mach#2(172.40.2.2)


What I want:

// all traffic coming from eth1 to have SNAT changed the source to 1.1.1.1
mach#1(172.40.1.2) =eth1=> firewall =eth0(1.1.1.1)=> internet

// all traffic coming from eth2 to have SNAT changed the source to 2.2.2.2
mach#2(172.40.2.2) =eth2=> firewall =eth0(2.2.2.2)=> internet


Logical example:

if(outbound eth0 == true && inbound eth1 == true)
source = 1.1.1.1
elseif(outbound eth0 == true && inbound eth2 == true)
source = 2.2.2.2



I can do:

# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 1.1.1.1

or

# iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 2.2.2.2

But I have no contol over the inbound eth.

Anyone have any experience with this?
Post Reply