From owner-freebsd-questions Fri Feb 21 0:22: 2 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03E4937B401 for ; Fri, 21 Feb 2003 00:22:01 -0800 (PST) Received: from gate.bulinfo.net (gate.bulinfo.net [212.72.195.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 7246843FAF for ; Fri, 21 Feb 2003 00:21:57 -0800 (PST) (envelope-from krassi@bulinfo.net) Received: (qmail 69195 invoked from network); 21 Feb 2003 08:21:52 -0000 Received: from pythia.bulinfo.net (HELO bulinfo.net) (212.72.195.5) by gate.bulinfo.net with SMTP; 21 Feb 2003 08:21:52 -0000 Message-ID: <3E55E182.CF53BDCA@bulinfo.net> Date: Fri, 21 Feb 2003 10:21:22 +0200 From: Krassimir Slavchev Organization: Bulinfo Ltd. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: bg, en MIME-Version: 1.0 To: questions@freebsd.org Subject: gif tunnels? Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello All, I have: Private Net 1 Firewall 1 Firewall 2 Private Net 2 --------------- ------------ ------------ --------------- | 10.1.0.0/24 |----| FBSD 4.7 |--//--| FBSD 4.7 |----| 10.2.0.0/24 | --------------- ------------ ------------ --------------- |______tunnel______| I want to configure tunnel between "Private Net 1" and "Private Net 2" and can not get tunnel to work when Public IP of "Firewall 1" and "Firewall 2" are from same subnet. If public IPs of my firewalls are from different subnets all works fine. On "Firewall 1" I do: # ifconfig gif0 create # gifconfig gif0 x.y.z.1 x.y.z.2 # ifconfig gif0 inet 10.255.255.1 10.255.255.2 netmask 255.255.255.252 # route add -net 10.2.0.0/24 10.255.255.2 On "Firewall 2" I do: # ifconfig gif0 create # gifconfig gif0 x.y.z.2 x.y.z.1 # ifconfig gif0 inet 10.255.255.2 10.255.255.1 netmask 255.255.255.252 # route add -net 10.1.0.0/24 10.255.255.1 Is there any way to get this to work? Thanks in advance To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message