Date: Tue, 17 Jun 2008 22:03:58 +0000 (UTC) From: Novembre <novembre@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: Openvpn on FreeBSD 7 Message-ID: <loom.20080617T215511-116@post.gmane.org> References: <484E26FD.4080605@skoberne.net> <464288.57641.qm@web51404.mail.re2.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Steve Quinn <letter2steve <at> 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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?loom.20080617T215511-116>