参见这篇博客:mpd5 on FreeBSD 10.0(英文)。在 PhotonVPS(链接含 Referral ID)的 VPS 上,测试成功,操作系统版本为 FreeBSD 9.3-RELEASE-p43。
另外补充一下,需要在文件 /etc/rc.conf
中增加如下配置,以便开机时自动启动:
gateway_enable="YES"
pf_enable="YES"
mpd_enable="YES"
其中
gateway_enable="YES"
即 sysctl net.inet.ip.forwarding=1
pf_enable="YES"
对应 /etc/rc.d/pf restart
mpd_enable="YES"
对应 /usr/local/etc/rc.d/mpd5 start
关于使用操作系统用户密码登录 VPN 的设置可以参考在 FreeBSD 上用 mpd5 构建 PPTP VPN(如果这个链接不能访问,可以访问转载在 FreeBSD 上用 mpd5 构建 PPTP VPN)。
#freebsd, #mpd5, #nat, #pf, #pptp, #vpn
#photonvps