久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Centos 安裝 PPTP-VPN

      1、安裝

      yum install iptables-services #Centos7需要安裝iptables

      yum install -y perl ppp pptpd

      2、配置文件

      vim /etc/ppp/options.pptpd #dns修改

      ms-dns 8.8.8.8

      ms-dns 8.8.4.4

      vim /etc/pptpd.conf #PPTP配置文件

      localip 172.17.188.225 #內(nèi)網(wǎng)ip

      remoteip 192.168.1.234-238 #客戶端的連接數(shù)及ip

      vim /etc/ppp/chap-secrets #添加連接PPTP的用戶名及密碼

      xuetu * 123456 *

      vim /etc/sysctl.conf #添加ip轉(zhuǎn)發(fā)

      net.ipv4.ip_forward = 1

      加載:sysctl -p

      3、配置防火墻規(guī)則

      iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.0/24 -j MASQUERADE

      iptables -I FORWARD -p tcp –syn -i ppp+ -j TCPMSS –set-mss 1356 #上網(wǎng)

      Centos6的iptables的保存與啟動(dòng)

      /etc/init.d/iptables save

      /etc/init.d/iptables restart

      Centos7的iptables的保存與啟動(dòng)

      service iptables save

      service iptables start

      /etc/init.d/pptpd start #Centos6啟動(dòng)pptpd

      service pptpd start #Centos7啟動(dòng)pptpd

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)