====== Сервис PPPoE ======
* [[http://ru.wikipedia.org/wiki/PPPoE]]
* [[Сервисы Gateway и routing]]
* [[Сервис NAT]]
* Сервис Firewall [[Сервис Firewall#Конфигурация для шлюза WAN - LAN]]
* [[Сервис PPP]]
===== Debian/Ubuntu =====
==== Установка, настройка и запуск pppoed ====
root@gate:~# apt install pppoe
root@gate:~# modprobe pppoe
root@gate:~# cat /etc/modules
...
pppoe
root@gate:~# cat /etc/ppp/pppoe-server-options
+chap
# ms-dns 192.168.X.10
root@gate:~# pppoe-server -I eth0
или
root@gate:~# pppoe-server -I eth0 -R 192.168.100+X.1
можно прописать в /etc/rc.local
==== Мониторинг pppoed ====
root@gate:~# tail -f /var/log/syslog
===== FreeBSD =====
==== Настройка и запуск pppoed ====
[gate:~] # cat /etc/rc.conf
...
pppoed_enable="YES"
pppoed_flags="-P /var/run/pppoed.pid -l inet"
pppoed_interface="em0"
[gate:~] # /etc/rc.d/pppoed start
==== Проверка ====
[gate:~] # tail -f /var/log/ppp.log
==== Остановка pppoed ====
Скрипт не работает (проверено до 7.3 включительно)
[gate:~] # killall pppoed
===== Настройка клиента Windows =====
===== Настройка клиента Ubuntu =====
* [[https://ask.linuxrussia.com/2537/ubuntu-17-10-1-%D0%BA%D0%B0%D0%BA-%D0%BD%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B8%D1%82%D1%8C-dsl-%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BA-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%BD%D0%B5%D1%82%D1%83|Ubuntu 17.10.1 - как настроить DSL подключение к интернету?]]
===== Настройка клиента FreeBSD =====
[gate:~] # cat /etc/ppp/ppp.conf
isp:
set ifaddr 10.0.0.1/0 10.0.0.2/0
set device PPPoE:lnc1
set authname studentX
set authkey passwordX
set dial
set login
add default HISADDR
[gate:~] # route delete default
[gate:~] # ppp -ddial isp
[gate:~] # killall ppp
[gate:~] # /etc/rc.d/routing restart
===== pppoe-relay =====
# apt install pppoe
# ip l set eth0 up
# sysctl net.ipv4.ip_forward=1
# pppoe-relay -S eth1 -C eth0