摘要: # reset the default policies in the filter table.iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPT# reset the default policies in the nat table.iptables -t nat -P PREROUTING ACCEPTiptables -t nat -P POSTROUTING ACCEPTiptables -t nat -P OUTPUT ACCEPT# reset the default polic 阅读全文
posted @ 2014-03-02 21:47 浪漫小生 阅读(9891) 评论(0) 推荐(0) 编辑
摘要: 废话不多说,直接上步骤:以 root 账户登录 VPS,或者当你运行下列命令提示权限不够时,加上 sudo 再运行。安装 PPTPD:编辑 /etc/pptpd.conf 文件,取消注释以下 2 行:localip 192.168.0.1remoteip 192.168.0.234-238,192.168.0.245添加 PPTP 账户:编辑 /etc/ppp/chap-secrets 文件,按如下格式添加:用户名 pptpd "密码" 允许接入的IP其中密码要用引号包围。允许任何 IP 接入则用 * 号表示。设置 DNS 服务器:编辑 /etc/ppp/pptpd-opt 阅读全文
posted @ 2014-03-02 21:45 浪漫小生 阅读(4420) 评论(0) 推荐(0) 编辑