2020年5月6日 星期三

安裝 PPPoE Server 改善throughput

Install ppp
1.下載 https://download.samba.org/pub/ppp/ppp-2.4.7.tar.gz
2.#tar zxvpf ppp-2.4.7.tar.gz
   #cd ppp-2.4.7
   #./configure
   #make
   #make install
3.重新build with kernel mode
   #tar zxvpf rp-pppoe-3.13.tar.gz
   #cd rp-pppoe-3.13/src
   #./configure --enable-plugin=/ppp-2.4.7(ppp source directory)
   #make
   #make install
   #pppoe-server -h 確定有-k選項
4.設定
   (1)/etc/ppp/pppoe-server-options 內容
   require-chap
   auth
   lcp-echo-interval 10
   lcp-echo-failure 2
   ms-dns 8.8.8.8
   ms-dns 8.8.4.4
   logfile /var/log/pppd.log
 
  (2)/etc/ppp/chap-secrets    內容
  # Secrets for authentication using CHAP
  # client server secret IP addresses
  "user1" * "123456" *
 
  (3)其他網路設定
  #echo 1 > /proc/sys/net/ipv4/ip_forward
  #iptables -A POSTROUTING -t nat -s 10.10.22.0/24 -j MASQUERADE
  #sudo pppoe-server -I eth0 -L 10.10.22.1 -R 10.10.22.100 -N 100 -k

沒有留言:

張貼留言