From owner-freebsd-net@FreeBSD.ORG Mon Nov 19 22:38:16 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B1F16A417 for ; Mon, 19 Nov 2007 22:38:16 +0000 (UTC) (envelope-from n30@auth.se) Received: from www.auth.se (www.auth.se [83.140.181.5]) by mx1.freebsd.org (Postfix) with ESMTP id 835BB13C44B for ; Mon, 19 Nov 2007 22:38:16 +0000 (UTC) (envelope-from n30@auth.se) Received: from webmail.auth.se (n30@www.auth.se [83.140.181.5]) by www.auth.se (8.13.8/8.13.8) with ESMTP id lAJLxbCn044269 for ; Mon, 19 Nov 2007 22:59:37 +0100 (CET) (envelope-from n30@auth.se) From: "n30" To: freebsd-net@freebsd.org Date: Mon, 19 Nov 2007 22:59:37 +0100 Message-Id: <20071119215243.M9581@sexnarkoman.se> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 78.69.38.29 (n30) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Routing with OpenVPN X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Nov 2007 22:38:17 -0000 Hi, I am using a tunnelservice from a Swedish tunnel provider. I get 5 ip-adresses for it and the tunnelprovider uses OpenVPN. The 5 ip-adresses is static and I have access of configuring PTR for the ips. I now have a problem, I don't know how to route the traffic so that I can configure my servers on my lan to use these ips. [ISP]------- [Tunnel]--------[Local Network] fxp0 tap0 fxp1 | | | 192.168.0.2 88.80.13.152 88.80.13.199 88.80.13.200 88.80.13.201 88.80.13.202 Current configuration to get tunnel to work: route flush route add default 88.80.13.*** route add -host 88.80.**.** 192.168.0.1 route add -host 88.80.13.152 192.168.0.1 Can anyone point me to some documentation on how to do this? Have you done something similar and how was your setup? What should I think about and what are the pro's and con's of the different solutions? Regards n30