Date: Thu, 31 Oct 2013 16:08:11 -0200 From: Raimundo Santos <raitech@gmail.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: MPD PPTP seting 0 on net.inet.ip.forwarding Message-ID: <CAGQ6iC8MAA3eHywhzvikB4n-Q6igTJ%2BPTkCCSYMfFLNUKKD6Hg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGQ6iC8MAA3eHywhzvikB4n-Q6igTJ%2BPTkCCSYMfFLNUKKD6Hg>