You're on the right track. It's a pain to remember to kill inetd
each time you tinker. I'd use vnc instead of telnet, as a matter
of preference on a local network.
At 07:09 PM 1/8/00 -0800, you wrote:
>Thanks Ralph.
>
>I've done most of that so far. I've got a 3c905 NIC card on one,
>and a pcnet based card on the other.
>
>I've got pinging working between the two now. :) The little
>network lights flash. Woohoo!
>
>I have both of my boxes shut down pretty tight, so I can't telnet.
>How does one allow telnetting, but only from a certain domain? Do I
>add the line:
>
>ALL : mydomain.com
>
>in hosts.allow? And if so, do I just need to uncomment out the
>telnet line in inetd.conf?
>
>Thanks,
>Rob.
>
>On Sat, Jan 08, 2000 at 06:45:13PM -0800, Ralph Zeller wrote:
>> Rob,
>>
>> Assuming you have netgear NIC's as well as a netgear hub:
>>
>> /etc/conf.modules
>> -----------------
>> alias eth0 tulip
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0
>> -----------------------------------------
>> #If you use the quote marks, then RedHat's netconfig and linuxconf
>> # can each be used (they _can_ be used interchangably without hurting
>> # each other).
>> DEVICE="eth0"
>> IPADDR="192.168.1.1"
>> NETMASK="255.255.255.0"
>> HOSTNAME=myhost
>> ONBOOT="yes"
>>
>> /etc/hosts
>> ----------
>> 127.0.0.1 localhost localhost.localdomain
>> 192.168.1.1 myhost myhost.mydomain.com
>> 192.168.1.2 myclient myclient.mydomain.com
>>
>> /etc/resolv.conf
>> ----------------
>> search mydomain.com
>> nameserver xxx.xxx.xxx.xxx #your ISPs nameserver
>>
>> I can't remember where Redhat would have you put special routing
>> instructions--there's a file somewhere, probably in /etc/sysconfig/????
>>
>> For masquerading, use a separate script, or the basic
>> hack of adding this to:
>> /etc/rc.d/rc.local
>> ------------------
>> #Please add more to this, it is a minimalist script only!!
>> /sbin/ipfwadm -F -p deny
>> /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0
>>
>> On your client machines to the masquerading machine, you need to add a
>> route to find the gateway that's doing the masquerading:
>> on linux: route add -net 0.0.0.0 gateway eth0 #or something like that
>> on windoze:
>> Enter the ip of the linux box as the default route, or:
>> C:\>route add 0.0.0.0 mask 0.0.0.0 192.168.1.8
>>
>> If you're doing samba, you'll want an /etc/lmhosts, which
>> is similar to /etc/hosts.
>>
>> You can use "ifup eth0" to bring the interface up, and
>> "ifdown eth0" to bring it down. By the way, 192.168.0.0 may or may
>> not be considered a valid network, but it does seem to work in Linux
>> and Windoze; still, I'd avoid it because many people seem to question
>> it's validity.
>>
>> Ralph
>