久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      linux如何配置vpn

      linux如何配置vpn

      1、安裝pptpd

      # apt-get install pptpd

      2、編輯配置文件,設(shè)置VPN的服務(wù)器IP和客戶端IP范圍

      # vim /etc/pptpd.conf 75 # (Recommended) 76 localip 192.168.9.1 77 remoteip 192.168.9.11-30

      3、在options文件中配置DNS,具體讀取的option文件可以在/etc/pptpd.conf中找到。如:option /etc/ppp/pptpd-options

      # vim /etc/ppp/pptpd-options
      55 #ms-dns 10.0.0.1 56 #ms-dns 10.0.0.2 57 ms-dns 8.8.8.8 58 ms-dns 8.8.4.4 59 #ms-dns 208.67.222.222 60 #ms-dns 208.67.220.220

      (相關(guān)學習視頻分享:linux視頻教程)

      4、添加路由表

      # iptables -t nat -A POSTROUTING -s 192.168.9.0/24 -j MASQUERADE

      將添加路由表的命令寫入/etc/rc.local中:

      # vim /etc/rc.local 14 iptables -t nat -A POSTROUTING -s 192.168.9.0/24 -j MASQUERADE 15 exit 0

      5、設(shè)置/etc/sysctl.conf中的net.ipv4.ip_forward

      # vim /etc/sysctl.conf 30 net.ipv4.ip_forward=1 # sysctl -p

      6、重啟pptpd服務(wù)

      # /etc/init.d/pptpd restart

      7、添加用戶

      # vim /etc/ppp/chap-secrets  # Secrets for authentication using CHAP # client    server  secret          IP addresses username   pptpd   password   *

      然后就是在Windows下新建VPN連接:

      1:打開新建連接向?qū)?/p>

      2:選擇VPN連接方式

      3:虛擬專用網(wǎng)絡(luò)連接

      4:連接名稱,用來區(qū)分你的多個連接。

      5:如果VPN只是一個輔助的連接,那就如下這樣選擇

      6:VPN服務(wù)器地址,域名或者是具體的IP

      7:可以選擇是否創(chuàng)建快捷方式,完成。

      8:輸入用戶名和密碼,連接。

      相關(guān)教程分享:linux教程

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