Adding a 3rd NIC to Coyote Linux
Overview
The most common reason people want to add a 3rd NIC to Coyote is to create a DMZ (a separate network segment that sits "between" the LAN and the internet, accessible from both, but without allowing access from the DMZ to the LAN). These instructions will not accomplish that (although they'll get you very close). Support for a DMZ with full control over access between the three segments is being developed for Coyote. What these instructions will do is to give you a second LAN segment that is inaccessible from the first and vice versa, but each able to access the internet through the same connection. This could be useful if you want to segregate local traffic into two networks (e.g. one for heavy ethernet gaming, and another for "serious" work), or if you have two networks using incompatible technologies (e.g. 100baseT ethernet and phone-line PNA).
What do you need ?
These instructions assume that your secondary LAN will use the 192.168.1.x subnet for its addresses.
/etc/modules.
Quit the menu to get to a command prompt.
ip link set eth2 upip addr add 192.168.1.1/24 brd + dev eth2
ping 192.168.1.1 from one of these machines to confirm that the network is functioning.
iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
ping 216.239.37.99 (google.com) or another external IP address that replies to pings, to confirm that you're reaching the internet. ping google.com or another ping-responding external site by name, to confirm that DNS is working properly.
pings) to /etc/rc.d/rc.local, then return to the menu and select option W to write these changes to the boot diskette.
Credits, Licenses, Sources and Documentation
Coyote Linux - Vortech Consulting - http://www.coyotelinux.com
Written by Todd VerBeek.