用户工具

站点工具


班牌使用pppoe拨号上网设置

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
班牌使用pppoe拨号上网设置 [2020/12/08 15:14] yangtianquan班牌使用pppoe拨号上网设置 [2020/12/08 15:21] (当前版本) yangtianquan
行 8: 行 8:
 lcp-echo-interval 10 lcp-echo-interval 10
 lcp-echo-failure 2 lcp-echo-failure 2
-ms-dns 114.114.114.114+ms-dns 192.168.1.140
  
  
行 17: 行 17:
 ---------------/etc/ppp/chap-secrets------------------ ---------------/etc/ppp/chap-secrets------------------
 name  *    "passwd"     * name  *    "passwd"     *
-test      *     123456”           *+test      *     "123456         *
  
 4、 启动PPPoE Server: 4、 启动PPPoE Server:
行 54: 行 54:
 [Install] [Install]
 WantedBy=multi-user.target WantedBy=multi-user.target
 +
 +7、开机自启
 +systemctl enable ppp
 +
 +8、iptables持久化设置
 +
 +###保存iptables
 +iptables-save > /etc/iptables.rules
 + 
 +###创建启动文件
 +touch /etc/network/if-pre-up.d/iptables
 +chmod +x /etc/network/if-pre-up.d/iptables
 +###内容如下:
 +#!/bin/sh
 +iptables -F
 +/sbin/iptables-restore < /etc/iptables.rules
  
 ``` ```
班牌使用pppoe拨号上网设置.1607411654.txt.gz · 最后更改: 2020/12/08 15:14 由 yangtianquan