From owner-freebsd-stable@FreeBSD.ORG Fri Sep 22 14:23:06 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EB8C16A403 for ; Fri, 22 Sep 2006 14:23:06 +0000 (UTC) (envelope-from V.Haisman@sh.cvut.cz) Received: from service2.sh.cvut.cz (service2.sh.cvut.cz [147.32.127.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4B2F43D45 for ; Fri, 22 Sep 2006 14:23:05 +0000 (GMT) (envelope-from V.Haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service2.sh.cvut.cz (Postfix) with ESMTP id A49CE137793; Fri, 22 Sep 2006 16:23:04 +0200 (CEST) Received: from service2.sh.cvut.cz ([127.0.0.1]) by localhost (service2.sh.cvut.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07161-03; Fri, 22 Sep 2006 16:22:56 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service2.sh.cvut.cz (Postfix) with ESMTP id 7346C13778A; Fri, 22 Sep 2006 16:22:56 +0200 (CEST) Received: from [192.168.1.2] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id 2323D61C2F; Fri, 22 Sep 2006 16:22:56 +0200 (CEST) Message-ID: <4513F1B7.9010505@sh.cvut.cz> Date: Fri, 22 Sep 2006 16:22:47 +0200 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= References: <4513D9F7.4050606@sh.cvut.cz> In-Reply-To: <4513D9F7.4050606@sh.cvut.cz> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=733031B4 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUnMzWJm5S+0864pn5r blp/hnW2up7X7uqftbNRVUrW1LGBdGfHwJqPi3ScoYtBQzhDxGEwAAAAB3RJTUUH1QoQDDgyQtx8 HQAAAkNJREFUeJzFU0toU0EUPYu66CpGdCUUmoUJkpUDQUoNBVEUrBJsq1Ki2EIKIUZ8mydBhYi0 wVUXJVCLCrFN4DIEQdxIqdBIFsMkWD9YJClCRGKjJaviynjfe8RPogtXPcObuXPOPXd+PHj+Aeyo QNmobGLXVeANGM+GsP0B2yqHHNVoCD2LwLglVGZx7yXSlADR0uZu9C4Bpy3hUxPvH/cuUw6UoPCL h64I8KAJuMpwRU8uUMJy0OIpHVeXmulZoCc/t0LlTbJLEY1EudPRcnVjgAP5Osdl4K5HVP4+2bAI okaUA0Iq6Q59+Zy2eMWN6EpFTsa3+uD1+JKj4TPHuYTSMaLScLAaqk94YJqG4ds30hojOVgYoNJc NTztNU2TBYbhu9Aafnq08ORja37da1NwBrN/b7NVEc+b8yecuYkp08vNvLYneVZRaSH1vS0UnfHm OUPzWaZufHPmCWSdWrfeGVQQKmcsO4If8pAdXJ/xF4QQAeOVY1AQQcfirwkLUWeWVTgi6vaGt2xe BGzBEIMQorru8RxgPqY1V6uxYnwVBRZEI1ytCm3dE8mC2DgcbzCJGHdBEVDKuWDSwsrSGoqzJmNt 2jJpNueIH0qS8/0JrDKnVBdvOzIsdVr4zaX9dn9xcLLKdCtQGfutVacLE9Ja+yfbDvO4aMWrklfK /JYv15C8Kw9S10kup5Bys0N1bLdcn4HvTl/Xlh6Fpllwj5/XpH9BUXn/ym0Dvv7Rt2MywojpYiSi i7Hsscaa19zZ//y/hR+BT/ns80nmJAAAAABJRU5ErkJggg== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6251CB365BEEA1F0BC5FD407" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at service2.sh.cvut.cz X-Spam-Status: No, hits=-2.5 tagged_above=-255.0 required=5.0 tests=ALL_TRUSTED, AWL, TW_IV X-Spam-Level: Cc: freebsd-stable@freebsd.org Subject: Re: Problems with OpenVPN+routing and creating tun0 interface X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 14:23:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6251CB365BEEA1F0BC5FD407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable V=C3=A1clav Haisman wrote, On 22.9.2006 14:41: > Hi, > I want to set up OpenVPN to create and configure tun0 interface and > connect to OpenVPN server. The main obstacle seems to be my inability t= o > configure either OpenVPN or FreeBSD to actually create that tun0 interf= ace. >=20 > If I try to create it manually I get this: >=20 > $ ifconfig -v tun create inet 192.168.23.203 192.168.23.1 > ifconfig: SIOCIFCREATE: Invalid argument >=20 > The kernel config has the "device tun" line and there are tun[0-3] in /= dev. >=20 > So what am I doing wrong? >=20 > -- > Vaclav Haisman >=20 The problme was on the server, it had my address restricted in firewall. I managed to make the tunnel. And I could ping the 192.168.23.1 address from mine 192.168.23.4. I had to restart the serivce because I did some changes to the OpenVPN client configuraton. Now I cannot ping again. But according to tcpdump the connection is there. And I cannot even ping mine 192.168.23.4. Missing routes or someting, after I restarted the seri= ce? -- VH --------------enig6251CB365BEEA1F0BC5FD407 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRRPxv0NOZDESBK8FAQK7fAf+PxGIRn8KZvB8whwWUSBXrjX5X6AhoZWf 1+0lFl4UJDOXC2pYMTcq9k7QWnhK/YGRXpx6xR6X4/lvcJySjZirUYyuacUgHnyc B02mDTb1/0GI97HcRbS/GDlaXajBg66m+4CY2zvQPl4j4bP5NIKrYIkqVM30LBBn /tbgDRs7jDjwkIwTpw85sZf0c0Q8JHibZIK1DLW6qp/t1RSzl7USaWN/e8dy0QXC Z2D41dWtO81dqoOnjpK8g2S0vypQNVCZPNr0TwrM0FYjW0yMwLgFi6gPpfwr9fbU e9wOm0rK/EHZ5m08qhgTMLXFM7jI2yQwLZdISUyhODVruBzgqJv9CA== =TPZ6 -----END PGP SIGNATURE----- --------------enig6251CB365BEEA1F0BC5FD407--