安装服务端
: # apt-get install pptpd
设置ip地址
: # vi /etc/pptpd.conf
去掉相关注释
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
增加用户
: # vi /etc/ppp/chap-secrets
user1 pptpd password * #最后的*表示允许任意ip连接
设置dns解析支持:# vi /etc/ppp/options
ms-dns 8.8.8.8
打开转发:# vi /etc/sysctl.conf
net.ipv4.ip_forward=1
检查/dev/ppp设备是否存在,不存在则执行:mknod /dev/ppp c 108 0
重启pptpd服务:# /etc/init.d/pptpd restart
激活转发参数: sysctl -p
配置iptables:iptables -t nat -A POSTROUTING -s 192.168.0.0/24
-o eth0 -j MASQUERADE
link:
http://www.satwe.com/archives/999.html
http://www.51testing.com/?uid-214454-action-viewspace-itemid-207677
http://citycatcher.info/?p=39
http://hi.baidu.com/51cmdshell/blog/item/e2370113089e75c5c3fd78f3.html
http://publish.it168.com/2006/0119/20060119109101.shtml
http://www.chinaunix.net/jh/50/371743.html
分享到:
相关推荐
ubuntu pppoe server环境搭建说明
文档描述了如何在虚拟机环境下ubuntu搭建samba环境的过程。方便初学者快速搭建,按照文档的介绍,你就可以在你的ubuntu中搭建你的samba共享环境,实现windows与linux资源共享
Ubuntu_Server搭建FTP服务器,
ubuntu 1204 server guide
Ubuntu20.04和Ubuntu16.04等其他Ubuntu离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-...
ubuntu 版本控制器svn搭建,确认可以使用
用这些文件可以在ubuntu上搭建apache web服务器 。
ubuntu搭建hadoop单节点.docx
Ubuntu server 讲述服务器的配置
教菜鸟用ubuntu搭建web服务器,简单易学,很好操作
基于 Ubuntu 搭建 WordPress 个人博客.md 是本人在使用Ubuntu 服务器搭建WordPress个人博客时所进行的步骤,能够快速在服务端搭建好一个个人博客系统。
ubuntu FTP 服务器搭建 主用户+匿名用户 ubuntu FTP 服务器搭建 主用户+匿名用户 ubuntu FTP 服务器搭建 主用户+匿名用户
在ubuntu环境下搭建jira管理系统,不使用jira自带的数据库,使用mysql数据库
Ubuntu 14.04 交叉编译环境的搭建,嵌入式开发环境的搭建。
相关BIND9资料 博文链接:https://mqzsweet.iteye.com/blog/149843
Ubuntu搭建Android开发环境Ubuntu搭建Android开发环境
Ubuntu20.04离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-sftp-server_8.4p1-6ubuntu1_...
Ubuntu搭建VNC服务器
Ubuntu16.04镜像文件server版下载
Ubuntu20.04离线安装openssh-server 安装步骤: sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb sudo dpkg -i openssh-client_8.4p1-6ubuntu1_amd64.deb sudo dpkg -i openssh-sftp-server_8.4p1-6ubuntu1...