From owner-freebsd-net@FreeBSD.ORG Tue Aug 26 20:56:07 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C45B816A4BF for ; Tue, 26 Aug 2003 20:56:07 -0700 (PDT) Received: from smtp.nap.net.id (dns3.nap.net.id [202.59.163.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57E8143FCB for ; Tue, 26 Aug 2003 20:56:04 -0700 (PDT) (envelope-from hilman@nap.net.id) Received: from hilman (didyma.nap.net.id [202.59.163.78]) by smtp.nap.net.id (8.12.6/8.11.3) with SMTP id h7R4CJCl042695 for ; Wed, 27 Aug 2003 11:12:21 +0700 (JAVT) (envelope-from hilman@nap.net.id) From: hilman firmansyah Message-ID: <063501c36c4f$f38f8030$4ea33bca@hilman> To: References: <20030827030314.GJ40033@pixies.tirloni.org> Date: Wed, 27 Aug 2003 11:01:51 +0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Gif IPTunnel networkA-to-networkB not work X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2003 03:56:07 -0000 Hi, I had a problem with my virtual tunnel here, since i couldnt make 2 separate networks from different location connected via tunnel i made with interface gif. net A ----------------fbsd A --------------------- fbsd B --------- net B 1.1.1.0/24 203.50.166.76 202.53.167.77 2.2.2.0/24 | | |________tunnel gif________| 3.3.3.1/30 3.3.3.2/30 On net A i have PC win2k 1.1.1.2 On fbsd A i have 1.1.1.1 and 203.50.166.76 On net B I have PC win2k 2.2.2.2 On fbsd B I have 2.2.2.1 and 202.53.167.77 I make the gif tunnel in freebsd A with : ---------------------------- ifconfig gif create gifconfig gif0 203.50.166.76 202.53.167.77 ifconfig gif0 inet 3.3.3.1 3.3.3.2 netmask 0xffffffff ipfw add 1 allow ip from any to any via gif0 ---------------------------- Than to reach the others networks : route add -net 2.2.2.0/24 3.3.3.2 I configure freebsd B like freebsd A with opposite . But why I still couldn`t ping from pc A 1.1.1.2 to pc B 2.2.2.2 Indeed.. I couldn`t ping from pc A 1.1.1.2 to the opposite gif tunnel Point to point in freebsd B 3.3.3.2 Anybody could help, regards NB : I still dont touch the IPSEC and encrypted section ,since in the fbsd handbooks said to make an encrypted section i must have the 2 networks connected. Is this right?