PPPoE pass-through

Setup PPPoE pass-through to connect to external with regular port via IPv6 environment.

Install PPP

Now a days, using PPP and PPPoE module is a trend for PPPoE pass-through.

$ sudo pacman -S ppp

Create connection configuration file

$ sudo vi /etc/ppp/peers/dsl-provider
plugin pppoe.so

# Network interface
eth0

# Login name
name "LOGIN NAME"

usepeerdns
persist
defaultroute
replacedefaultroute
hide-password
noauth
noproxyarp

Notice: Here, LOGIN NAME is your login name of your provider. And the login name should be double quated.

Create secrets file

$ sudo vi /etc/ppp/chap-secrets
"LOGIN NAME" * "PASSWORD"

Notice: Here, LOGIN NAME is your login name and PASSWORD is your password of your provider. The login name and the password should be double quoated.

Link to provider

$ sudo ln -s /etc/ppp/peers/dsl-provider
  /etc/ppp/peers/provider

Notice: You must use absolute path to make a link.

Add ppp0 to the default route

$ sudo ip route add default dev ppp0

Connect and Disconnect

Connect

$ sudo pon

Disconnect

$ sudo poff provider

Connect on boot

Edit /etc/modules-load.d/ppp_generic.conf

$ sudo nano /etc/modules-load.d/ppp_generic.conf

Add the following line.

ppp_generic

Enable ppp@provider service.

$ sudo systemctl enable ppp@provider.service

Last Updated on March 9, 2025 by lama-admin


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *