From owner-freebsd-questions@FreeBSD.ORG Thu Jan 17 15:24:15 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E11C16A41A for ; Thu, 17 Jan 2008 15:24:15 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from viefep33-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC4D13C4DD for ; Thu, 17 Jan 2008 15:24:14 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [192.168.1.103] (really [80.99.119.201]) by viefep33-int.chello.at (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080117152412.CATC28696.viefep33-int.chello.at@[192.168.1.103]>; Thu, 17 Jan 2008 16:24:12 +0100 Message-ID: <478F731B.5050201@shopzeus.com> Date: Thu, 17 Jan 2008 16:24:11 +0100 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Steve Bertrand References: <478F64CF.7000603@shopzeus.com> <478F7142.8040506@ibctech.ca> In-Reply-To: <478F7142.8040506@ibctech.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: routing question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 15:24:15 -0000 Steve Bertrand wrote: >> Internet -----> [Hw Router] ---- (LAN1: 192.168.2.0/24) -----> [ >> 192.168.2.138 GatewayComp 192.168.0.1 ] ------ (LAN2: 192.168.0.0/24) >> >> I would like to access a computer from LAN1 to LAN2. >> > > Perform the following and post the results of: > > - ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network > cassiopeia# ping 192.168.2.114 PING 192.168.2.114 (192.168.2.114): 56 data bytes 64 bytes from 192.168.2.114: icmp_seq=0 ttl=64 time=0.171 ms 64 bytes from 192.168.2.114: icmp_seq=1 ttl=64 time=0.184 ms 64 bytes from 192.168.2.114: icmp_seq=2 ttl=64 time=0.229 ms ^C --- 192.168.2.114 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.171/0.195/0.229/0.025 ms cassiopeia# ping 192.168.0.132 PING 192.168.0.132 (192.168.0.132): 56 data bytes 64 bytes from 192.168.0.132: icmp_seq=0 ttl=64 time=0.260 ms 64 bytes from 192.168.0.132: icmp_seq=1 ttl=64 time=0.235 ms 64 bytes from 192.168.0.132: icmp_seq=2 ttl=64 time=0.133 ms ^C --- 192.168.0.132 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.133/0.209/0.260/0.055 ms cassiopeia# > - ping from pc on 2.0 network to 192.168.0.1 > office1adsl# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.270 ms 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.456 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.178 ms ^C --- 192.168.0.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.178/0.301/0.456/0.116 ms > - ping from pc on 0.0 network to 192.168.2.138 > Well, I cannot do this from here. Those computers are X terminals, they do not run inetd nor sshd. I cannot login from here and I cannot leave now, but I can do it later if necessary. > - sysctl -a net.inet.ip.forwarding (on the GatewayComp) > cassiopeia# sysctl -a net.inet.ip.forwarding net.inet.ip.forwarding: 1 cassiopeia# I can answer the missed question in about an hour. Thanks, Laszlo