On Thu, 1 Feb 2001 [EMAIL PROTECTED] wrote:
> Nick
>
> Thanks for taking the time to reply to query. Here is more information that
> may help you.
No problem. Comments below. Sorry for the late reply.
[snip]
>
> the_swamp# ifconfig gif0 132.146.115.164 132.145.113.1
> the_swamp# netstat -rnf inet
> Routing tables
Are you using gifconfig(8) to configure the outside header of the
tunnel? I am running several tunnels using gif and have never had
a problem yet. Also check your firewall. Here is an example of
one of the tunnels:
| |
FreeBSD1 | | FreeBSD2
192.168.1.0/24 --- 1.1.1.1 -|- Internet -|- 2.2.2.2 --- 172.16.1.0/24
Gif Tunnel: 10.1.1.1 <--|------------|--> 10.1.1.2
| |
| |
//On FreeBSD1:
# gifconfig gif0 inet 1.1.1.1 2.2.2.2
# ifconfig gif0 10.1.1.1 10.1.1.2 netmask 255.255.255.252
# route add -net 172.16.1.0 10.1.1.2 -netmask 255.255.255.0
//On FreeBSD2
# gifconfig gif0 inet 2.2.2.2 1.1.1.1
# ifconfig gif0 10.1.1.2 10.1.1.1 netmask 255.255.255.252
# route add -net 192.168.1.0 10.1.1.1 -netmask 255.255.255.0
That should be all you need. Like I mentioned earlier, also make
sure that your firewall is letting it through.
Nick Rogness
- Keep on routing in a Free World...
"FreeBSD: The Power to Serve "
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message