On Sat, 2003-05-24 at 23:54, Peter McNabb wrote:
> On 24 May 2003, Bryan Murdock wrote:
> 
> > One little annoyance though, I can ssh from the single network card
> > machine (hereafter referred to as "the laptop") to the dual network card
> > machine (hereafter referred to as "the router") but I can't ssh from the
> > router to the laptop.  I whipped out ethereal on the router and watched
> > all the packets on the network card that's connected to the laptop and
> > no ssh packets ever even showed up (except of course when I sshed from
> > the laptop).  Any ideas how I could fix this?  I know it installed a
> > firewall called shorewall when it set everything up.  I tried to set it
> > to allow ssh, but that didn't help.
> 
> read about route. /sbin/route with no options shows your current routing tables. 
> it's not too hard to learn how to use. one option is giving an interface for a 
> certain subnet. that may be the problem in your case. here is the route output 
> for my router, which has a card to a cable modem and a card to a local net:
> 
> raptor% route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
> 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
> default         12-221-64-1.cli 0.0.0.0         UG    0      0        0 eth0
> 
> 10.0.0.x is the local network, and that traffic goes through the eth1 card. 
> 127.x.x.x is for loopback and should be just like it is there. the default route 
> for the machine is through my isp's router (12.221.64.1...) and note the mask is 
> 0.0.0.0 and the interface is my other card. on the internet are many examples 
> about adding routing rules. basically it tells the machine, "if the address 
> begins with 10.0.0, it's on eth1, otherwise look on eth0."
> 
> hope this gives you a start. routing is super cool but can be confusing at 
> first. (don't worry about the "flags", "metric", and "ref" stuff.. i don't even 
> know what all those are for ;) )
> 
> -peter

Pretty late in responding here, but I finally read a tiny bit on the
route manpage and typed route to see what was going on.  The output of
route on my router box is this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0   0 eth1
12.231.208.0    *               255.255.255.0   U     0      0   0 eth0
127.0.0.0       *               255.0.0.0       U     0      0   0 lo
default         12-231-208-1.cl 0.0.0.0         UG    0      0   0 eth0

I can ping my laptop (which is 192.168.1.252) but I can't ssh to it.  I
played with ethereal a bit, and when I type ssh 192.168.1.252 only on lo
do I see an ssh packet.  It's strange to me that a ping will go out eth1
to my laptop, and cups broadcasts, but nothing else will.  How can I fix
this?

Bryan



> 

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to