From owner-freebsd-net@FreeBSD.ORG Thu Oct 31 18:08:31 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DA83317B for ; Thu, 31 Oct 2013 18:08:31 +0000 (UTC) (envelope-from raitech@gmail.com) Received: from mail-pd0-x231.google.com (mail-pd0-x231.google.com [IPv6:2607:f8b0:400e:c02::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B6F102527 for ; Thu, 31 Oct 2013 18:08:31 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id p10so2730704pdj.22 for ; Thu, 31 Oct 2013 11:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=A3SBVrP6kwfWgTI7CboON3o+ndvUScOUYBNH8UGYAis=; b=NRM9f1TM7xrd1qKEFeZia8UVx3cYUMagFMHSX+APNpjxybVSaBx/w/SYNGfWrqKc9D dO7f8uaTT2ZmAnzuEfYi9SdgkkewdieMlKLGpGJnIWiG5cNAFuj6z+5WgV/EqAGQpTAD VbLr5Kwb2JVMwSwnedy5Gh5inlEdf58Tt28olszTpPDBWwiZd3lfGNdcpMplC/Ow/no9 CJbBc96s8uGA5vOw/YSfOOI3ZXlQQmeWkg76bXXEw0Efk7UK+5Sxu+/XQZCDesDPkBtP QaEynvjIAtZlHuRDoStxonU1rcT2xNyextvtdXN+fG6wD5BmC7AP4WfGpeINvWpnd4UD +vuA== X-Received: by 10.68.164.165 with SMTP id yr5mr3240711pbb.146.1383242911387; Thu, 31 Oct 2013 11:08:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.70.101.70 with HTTP; Thu, 31 Oct 2013 11:08:11 -0700 (PDT) From: Raimundo Santos Date: Thu, 31 Oct 2013 16:08:11 -0200 Message-ID: Subject: MPD PPTP seting 0 on net.inet.ip.forwarding To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 18:08:31 -0000 Hello! I was experimenting with set ipcp ranges 0.0.0.0 172.16.1.20 to see if I well understood concepts on MPD5.7 docs, but when I try to connect to PPTP server with 0.0.0.0 as local address, net.inet.ip.forwarding gets to 0, and the PPP does not connect. But changing it to set ipcp ranges 172.16.1.19 172.16.1.20 the same strange net.inet.ip.forwarding going to 0, but it connects the PPP link. And by using the mpd.conf.sample ippool example, just changing the IPs to correspond to my network, the same strange thing. What a strange behaving. Using MPD 5.7 and FreeBSD 9.2-RELEASE. What could be wrong? Here is my mpd.conf: startup: # configure mpd users set user foo bar admin set user foo1 bar1 # configure the console set console self 127.0.0.1 5005 set console open # configure the web server set web self 0.0.0.0 5006 set web open default: load pptp_server pptp_server: set ippool add pool1 172.16.1.20 172.16.1.100 create bundle template B set iface enable proxy-arp set iface idle 1800 set iface enable tcpmssfix set ipcp yes vjcomp set ipcp ranges 172.16.1.19/32 ippool pool1 #set ipcp dns 192.168.1.3 #set ipcp nbns 192.168.1.4 set bundle enable compression set ccp yes mppc set mppc yes e40 set mppc yes e128 set mppc yes stateless create link template L pptp set link action bundle B set link enable multilink set link yes acfcomp protocomp set link no pap chap eap set link enable chap set link keep-alive 10 60 set link mtu 1460 set pptp self 192.168.0.2 set link enable incoming log +all And here is my rc.conf: hostname="rtcprime" ifconfig_alc0=" inet 192.168.0.2 netmask 255.255.255.0" defaultrouter="192.168.0.1" sshd_enable="YES" ntpd_enable="YES" powerd_enable="YES" dumpdev="AUTO" zfs_enable="YES" noip_enable="YES" samba_enable="YES" mpd_enable="YES" As you can see, there is no gateway_enable="YES", but there is net.inet.ip.forwarding=1 in /etc/sysctl.conf Thank you for your attention. Raimundo Santos