From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 22:04:16 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 9B499106566B for ; Tue, 17 Jun 2008 22:04:16 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 230858FC14 for ; Tue, 17 Jun 2008 22:04:15 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K8jHe-0007vD-2K for freebsd-questions@freebsd.org; Tue, 17 Jun 2008 22:04:10 +0000 Received: from RSX4.physics.uiuc.edu ([130.126.15.196]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2008 22:04:10 +0000 Received: from novembre by RSX4.physics.uiuc.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2008 22:04:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Novembre Date: Tue, 17 Jun 2008 22:03:58 +0000 (UTC) Lines: 55 Message-ID: References: <484E26FD.4080605@skoberne.net> <464288.57641.qm@web51404.mail.re2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 130.126.15.196 (Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.12) Gecko/20080323 Firefox/2.0.0.12) Sender: news Subject: Re: Openvpn on FreeBSD 7 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: Tue, 17 Jun 2008 22:04:16 -0000 Steve Quinn yahoo.com> writes: > I forgot to stress how important the sysctl setting is for > net.inet.ip.forwarding > > The default is disabled (0) and I to could not connect beyond the OpenVPN > server > > I'm editing the page now to include something like this > > Make sure IP Forwarding is enabled > Check it with > sysctl -a |grep net.inet.ip.f > > Set it with > sysctl inet.inet.ip.forwarding=1 > or > Alternatively set it by adding this to /etc/sysctl.conf > net.inet.ip.forwarding=1 > > Take care > Steve I also upgraded from 6.2-RELEASE to 7.0-RELEASE a while back, recompiled my installed ports, and since then I have problems with OpenVPN. I have a laptop (Windows XP SP2) at home and a desktop (FreeBSD 7.0-RELEASE) at my office in the university. I have installed Samba 3.0.28,1 on my desktop and created a share. I can access the share from anywhere within the university network. But our university network is behind a firewall which blocks all incoming connections except SSH, so I cannot access my Samba share from home. What I did was to use Putty to SSH to my desktop at office, setup and OpenVPN client/server on my laptop/desktop computers, and forward all OpenVPN connections to my desktop through the SSH connection using Putty. Then I could connect to my Samba server. It used to work before upgrading to 7.0-RELEASE, but after that I can't access my shares from home. I have confirmed that my Samba share is working fine by accessing it from another computer in the university network, so the only culprit is OpenVPN. It connects, but apparently something is wrong and I can't access my data. I tried setting " sysctl inet.inet.ip.forwarding=1 ", but that didn't help either. The last lines of my /var/log/openvpn.log is below: Jun 16 11:39:37 rsx4 openvpn[660]: laptop/127.0.0.1:49937 MULTI: bad source address from client [192.168.2.100], packet dropped Jun 16 11:39:37 rsx4 openvpn[660]: laptop/127.0.0.1:49937 MULTI: bad source address from client [192.168.3.1], packet dropped Jun 16 11:41:38 rsx4 openvpn[660]: laptop/127.0.0.1:49937 Connection reset, restarting [0] Jun 16 11:41:38 rsx4 openvpn[660]: laptop/127.0.0.1:49937 SIGUSR1[soft,connection-reset] received, client-instance restarting Jun 16 11:41:38 rsx4 openvpn[660]: TCP/UDP: Closing socket I'd appreciate any help...