- 安装PPTP
apt-get update
apt-get upgrade
apt-get install iptables pptpd vim
- 设置并修改配置文件
vim /etc/pptpd.conf
localip 10.0.0.1remoteip 10.0.0.100-200
添加VPN账号密码
vim /etc/ppp/chap-secrets添加DNS服务器IP
vim /etc/ppp/pptpd-options
ms-dns 8.8.8.8
ms-dns 8.8.4.4修改/etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl –p
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
iptables –L
iptables-save > /etc/iptables.up.rules (重启生效)vim /etc/network/interfaces
auto lo
iface lo inet loopback
pre-up iptables-restore < /etc/iptables.up.rules重启pptpd服务
service pptpd restart备注:提示安装不了pptpd
vim /etc/apt/sources.list
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free
apt-get updatePC端可以上网,手机无法上网
往/etc/ppp/peers/testdb文件添加一行require-mppe-128参考链接:
https://www.digitalocean.com/community/tutorials/how-to-setup-your-own-vpn-with-pptp
Configure an PPTP Server on Debian
时间: 2024-11-06 11:32:38
Configure an PPTP Server on Debian的相关文章
How to configure dns slave server in Linux
A DNS server, or name server, is used to resolve an IP address to a hostname or vice versa.You can set up four different types of DNS servers: A master DNS server for your domain(s), which stores authoritative records for your domain. A slave DNS ser
Configure a syslog server with rsyslog on Ubuntu
A syslog server represents a central log monitoring point on a network, to which all kinds of devices including Linux or Windows servers, routers, switches or any other hosts can send their logs over network. By setting up a syslog server, you can fi
Configure SVN (Subversion) Server
Note: It may need root user permissions to execute following commands. (1) Install needed packages yum install mod_dav_svn subversion In my PC, packages that were installed are Note: if you are going to visit SVN repository via http, you shall have a
解决You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support问题
错误提示:Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: The server time zone value '?й???????' is unrecognized or represents more than one time zone. You must co
How To Install Bacula Server on Debian 8
localhost IP 192.168.81.131 /etc/hosts [email protected]:~# vim /etc/hosts 192.168.81.131 server 192.168.81.128 client vim /etc/apt/sources.list [In China ] [email protected]:~# vim /etc/apt/sources.list deb http://mirrors.ustc.edu.cn/debian stabl
Setup and Configure the vsftpd server in CentOS 7 operation system
############################################################################## 1. close the firewall service =====THE COMMAND YOU CAN TYPE INTO YOUR CONSOLE====== #systemctl stop firewalld.service //stop the firewall service #syst
一键部署 PPTP server
wget https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh sudo sh setup.sh #/etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses vpn pptpd fAj-JwC-rLu * helloworld * 79lav7w59eeqeknp
ASP.NET 4.5.256 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5.256 in order for your site to run correctly
Microsoft .NET Framework 4.6安装后,用户可能会在使用Microsoft Visual Studio 创建(或打开现有项目时)网站.或Windows Azure项目时遇到下面的对话框提示: 配置ASP.NET 4.5 Web站点 http://localhost:64886/ 失败.为了使网站正常运行,你必须手动配置此网站的ASP.NET 4.5.ASP.NET 4.0 尚未在 Web 服务器上注册.为了使网站正确运行,可能需要手动将 Web 服务器配置为使用 ASP.
PPTP一键安装脚本及使用webmin管理PPTP VPN Server
一.一键安装PPTP服务器 VPS有很多种玩法,在墙上打洞是最常见的玩法之一.打洞方法多种多样,其中以PPTP最为常见,也是配置起来最为简便的方式之一. 本脚本只需执行一次即可将PPTP服务安装完毕,然后在你的电脑里设置好VPN即可.当然了,要保证你的VPS是在外面的自由世界中,而且VPS是基于Xen或KVM的. 终端里运行以下命令(以root用户运行): wget -c http://dl.dropbox.com/u/32817960/linux/Software/pptpd_debian.s