Re: Connect two LANs over an IPv4 tunnel?
From: Helge Oldach (helge.oldach_at_atosorigin.com)
Date: 11/06/03
- Previous message: Markus Brueffer: "Re: Port Forwarding"
- In reply to: Walter Hop: "Connect two LANs over an IPv4 tunnel?"
- Next in thread: Walter Hop: "Re[2]: Connect two LANs over an IPv4 tunnel?"
- Reply: Walter Hop: "Re[2]: Connect two LANs over an IPv4 tunnel?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd@walter.transip.nl (Walter Hop) Date: Thu, 6 Nov 2003 15:05:34 +0100 (MET)
Walter Hop:
>I would like to connect two networks (home and work), so that I can set
>up my home workstations in the same subnet as the work LAN. Out of this
>/24, I would like to use a /29 at home.
>
>(attempt 2)
>
>The gif tunnel worked and the boxes can ping eachother over it, so I
>assigned private addresses to the gif endpoints. Then I tried adding some
>home IP aliases to the work box's ethernet interface and using forwarding
>and "route delete/add" in the hope that packets would be routed to the
>gateway in private-space across gif1.
You do not need IP aliases (I presume you mean static ARP entries), but
just need to get the routes right. Proxy ARP will do the rest for you:
sysctl net.link.ether.inter.proxyall=1
Be sure that you have IP forwarding enabled on both boxes, otherwise
it will definitely not work.
Helge
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Markus Brueffer: "Re: Port Forwarding"
- In reply to: Walter Hop: "Connect two LANs over an IPv4 tunnel?"
- Next in thread: Walter Hop: "Re[2]: Connect two LANs over an IPv4 tunnel?"
- Reply: Walter Hop: "Re[2]: Connect two LANs over an IPv4 tunnel?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]