From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 16:13:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 216FF1065701 for ; Mon, 2 Jun 2008 16:13:22 +0000 (UTC) (envelope-from alexus@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.182]) by mx1.freebsd.org (Postfix) with ESMTP id E2A238FC13 for ; Mon, 2 Jun 2008 16:13:21 +0000 (UTC) (envelope-from alexus@gmail.com) Received: by el-out-1112.google.com with SMTP id o28so171919ele.3 for ; Mon, 02 Jun 2008 09:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=VKAobbQMBvn0Vm6c4YyXGCSlrH6og+vXifjpYRn3Rto=; b=W/h4cLOZUz247e7hVpo4JS2jGv+6USpypayGIba6lPQMkDu1x8ZTMU/MQC4uoSm/6WNnw74ByQ0OzVC+8LSeUeYYrD3rw2yEnHyiIELNck91/LtkDkpHyJHyWPkMTc0zuHLKsNWGO03jFeDw1pKxIafr1fcBI+7O79cK29HZylk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZPpe5Tkab4rkQuGHDRlNOpo9XoLzQoZjhQQJQ6c3gVwbxW03Em9yi5ZU1Lb0fbQ1/KrnIjnOSbQ3yhDwPUnckBMl5C6u6k2U8gwdYvGtZC1d6n/80Unf8+zzWTN0txJEHxdHAlujsECxA9H2+1qMv5/dRWefFd73a2L8dF5LU5U= Received: by 10.115.73.20 with SMTP id a20mr9816458wal.213.1212423200410; Mon, 02 Jun 2008 09:13:20 -0700 (PDT) Received: by 10.114.67.7 with HTTP; Mon, 2 Jun 2008 09:13:20 -0700 (PDT) Message-ID: <6ae50c2d0806020913v2c7665b8nc3673e30cb8627cc@mail.gmail.com> Date: Mon, 2 Jun 2008 12:13:20 -0400 From: alexus To: "freebsd-questions@freebsd.org" In-Reply-To: <6ae50c2d0805311649p14863af3y43af39fb4aa2cc8a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6ae50c2d0805311649p14863af3y43af39fb4aa2cc8a@mail.gmail.com> Subject: Re: VPN (IPSEC) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 16:13:22 -0000 anyone? On Sat, May 31, 2008 at 7:49 PM, alexus wrote: > Hello, > > I'm trying to establish a VPN tunnel over internet, I read a > http://www.freebsd.org/doc/en/books/handbook/ipsec.html on how to set > it up, I'm some what strangeling if my setup will work at all. > > i have box #1 that have 1 primary IP, which is private IP but in front > of my box, I have a device that translate a public IP address into > private IP, so "technicaly" its a public IP not a private, yet system > sees it as private, yet my box #2 has interface with real public ip > and another interface with private ip, i created GIF0 interface, yet i > can't ping private range on other box. > > > box#1 > > fxp0: flags=8843 metric 0 mtu 1500 > options=8 > ether 00:0f:fe:aa:f4:61 > inet 192.168.1.251 netmask 0xffffff00 broadcast 192.168.1.255 > inet 172.16.172.16 netmask 0xffffffff broadcast 172.16.172.16 > media: Ethernet autoselect (100baseTX ) > status: active > plip0: flags=108810 metric 0 mtu 1500 > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > gif0: flags=8051 metric 0 mtu 1280 > tunnel inet 38.96.123.42 --> 74.2.252.194 > inet 192.168.1.251 --> 192.168.2.252 netmask 0xffffffff > alexus@jot ~ 503$ netstat -rn | grep gif0 > 192.168.2.252 192.168.1.251 UH 0 15 gif0 > alexus@jot ~ 504$ > > box#2 > > su-3.2# ifconfig > dc0: flags=8943 metric > 0 mtu 1500 > options=8 > ether 00:1a:70:10:e3:89 > inet 74.2.252.194 netmask 0xfffffff8 broadcast 74.2.252.199 > media: Ethernet autoselect (100baseTX) > status: active > fxp0: flags=8843 metric 0 mtu 1500 > options=8 > ether 00:13:20:09:53:31 > inet 192.168.2.252 netmask 0xffffff00 broadcast 192.168.2.255 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > gif0: flags=8051 metric 0 mtu 1280 > tunnel inet 74.2.252.194 --> 38.96.132.42 > inet 192.168.2.252 --> 192.168.1.251 netmask 0xffffffff > su-3.2# netstat -rn | grep gif0 > 192.168.1.251 192.168.2.252 UH 0 602 gif0 > su-3.2# > > > any suggestions are welcome, thanks! > -- > http://alexus.org/ > -- http://alexus.org/