On Tue, 19 Feb 2002, stonelx wrote: > To setup a linux box with 2 nics. > One with a public IP and the other with a private IP. > The linux box is acting as a masqurading box. (ipmasq) > However, both nics are plugged into the same switch or hub.
Yes![1] If you really want to do just NAT without any sort of firewalling, it's still wrong, just use one NIC and use a virtual interface (this is what I've been doing until my broke ass gets a paycheck with enough left over after the important stuff (rent, food, bandwidth) that I have money to throw around for less important stuff (gas for the car, random hardware). You will need to have the appropriate kernel options set to have virutal interfaces (eth0, eth0:1). > Basically, you could be running 2 different subnets > on one network segment. Some machines off the switch would > have public IP's, and some would have Private. That's fine. Just use 1 nic and save yourself the CPU overhead and avoid the possibility of network loopback. [1] One of my roommates who still works tech support saw that and it set off his nervous tick... -- Baloo