Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 10:21:22 +0200
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        questions@freebsd.org
Subject:   gif tunnels?
Message-ID:  <3E55E182.CF53BDCA@bulinfo.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E55E182.CF53BDCA>