Actually, you can run IP MASQ on a Linux box with only one network
interface; however, it is not recommended because of security reasons. You
can bring up an alias of eth0 precisely eth0:0 with a private net IP
(192.168.1.x). That way everything would be connected to the same hub
(INTERNET & PRIVATE NET). Keep in mind that IP ALIASING must be enabled in
the KERNEL.
Logically a dual-homed Linux box (with 2 network interfaces) is the best
configuration because it allows for both security using INPUT & OUTPUT rules
and a clean set of rules which distinguish packets between the internal and
the external interface.
Do yourself a favor, get another HUB and another network interface. They are
rather inexpensive these days. Well, before you buy the HUB try a crossover
cable between the DSL modem and the Linux box; It might just work.
By no means am I trying to discourage you from experimenting with IP
ALIASING and whatever else that may come out of your imagination.
Knock yourself out! Ciao!!!
Caleb Shay wrote:
> Hi all,
>
> I'm new to this, so bear with me.
>
> I just want to know if this will work, I'll worry about how to actually
> do it later.
>
> I currently have my internet connection coming in via DSL. The DSL
> modem has a single ethernet cable that connects straight to my
> machine. I have a single static IP. I just bought a second machine.
> As far as I can tell, to set up IP Masq I'm going to need to have 2 NICs
> in one of the machines. Or do I? Can I run from the modem to a hub,
> have both machines in the hub also, and do my IP's like this...
>
> Machine 1: Static IP to outside world and private IP aliased to same
> device (eth0)
> Machine 2: private IP with Machine 1's private IP as the gateway.
>
> Will this work, or am I just imagining things and I have to go pick up a
> second ethernet card and hope I can make it work (not usually an issue,
> but there is so much hardware in my machine I don't have any free
> IRQs)? I'm not much of a networking genius either, if I can do this, do
> I need to use a crossover cable from the modem to the hub? (currently I
> just run a straight thru cable from the modem to my NIC)
>
> Thanks,
>
> Caleb Shay
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> --
> I have too much blood in my caffeine system.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For daily digest info, email [EMAIL PROTECTED]
--
Audie P.
The perimeters that we put on ourselves
are self-imposed...There are no boundaries.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]