Gif IPTunnel networkA-to-networkB not work

hilman firmansyah hilman at nap.net.id
Tue Aug 26 20:56:07 PDT 2003


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?






More information about the freebsd-net mailing list