Table of Contents

Сервис PPPoE

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

Настройка клиента 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