Jurgen Philippaerts wrote:
>
> Hi,
>
> i recently added a extra machine to my little network :)
> and everything seemed to be working correctly, until i decided to make the
> connection to my isp by telnetting to my linux box (192.168.0.1) from the
> 3rd pc (win95: 192.168.0.3) and i couldn't telnet to my own linux box.
> it seems to connect, and in my /var/log/messages, i see:
> Apr 17 20:02:05 trauma in.telnetd[446]: connect from 192.168.0.3
> but on the telnet session nothing happens.
> when i do this from my other machine (winNT or win98 (dualboot)
> 192.168.0.2) everything works just fine.
> when there is a internet connection, i can surf the web, ftp, irc.. from
> ALL machines, i can ping them all, from everywhere, it's just that darn
> telnet session that won't work on the 192.168.0.3 address (i tried to
> change it to .4 but it was the same:)
>
> how is the network setup:
> isp --- modem --- linux --- hub = winNT and Win95
>
> and some config files :)
>
> rc.local
> /sbin/ipfwadm -F -p deny
> /sbin/ipfwadm -I -p accept
> /sbin/ipfwadm -O -p accept
> /sbin/ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0
> /sbin/ipfwadm -A -i -S 0.0.0.0/0 -D 0.0.0.0/0
>
> rc.inet1
> # Attach the loopback device.
> /sbin/ifconfig lo 127.0.0.1
> /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
>
> IPADDR="192.168.0.1" # REPLACE with YOUR IP address!
> NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
> NETWORK="192.168.0.0" # REPLACE with YOUR network address!
> BROADCAST="192.168.0.255" # REPLACE with YOUR broadcast address, if you
> # have one. If not, leave blank and edit below.
> GATEWAY="" # REPLACE with YOUR gateway address!
There should be the real gateway address here.
> /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
>
> /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0
> /sbin/route add -net ${NETWORK} netmask ${NETMASK} ppp0
You need to add the real ip address for ppp0, or leave it out if you get a
dynamic ip address from your ISP during the dial-up.
Your Linux box sends the packets for your local Win95 box out on the wrong
interface.
> /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1
>
> I hope someone can help me out here, because i think i've tried about
> anything, but nothing works :)
> This problem just bothers me because now i can't log onto my linux box from
> the other machine and have to run upstairs everytime (also when i want to
> dial my isp :)
>
> thanks in advance,
> Jurgen Philippaerts.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For daily digest info, email [EMAIL PROTECTED]
--
Joachim Feise Microsoft Certified Solution Developer
mailto:[EMAIL PROTECTED] http://www.ics.uci.edu/~jfeise/
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
By US Code Title 47, Sec.227(a)(2)(B), a computer/modem/printer meets
the definition of a telephone fax machine. By Sec.227(b)(1)(C), it is
unlawful to send any unsolicited advertisement to such equipment.
By Sec.227(b)(3)(C), a violation of the aforementioned section is
punishable by action to recover actual monetary loss, or $500,
whichever is greater, for each violation.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]