linux lan
Moderator: General Moderators
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
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.Straterra wrote:You got ripped man..I am buying a 722mhz with 512 ram, new mb and cpu...$46!!
But you still got a good deal on that box. That's sweet!
Cheers,
BDKR
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
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.Straterra wrote:Hm..What is the reason behind a crossover? I'm not sure I understand why it is needed in this specific problem...
Cheers,
BDKR
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
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?
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?