bundles/pppd: introduce
This commit is contained in:
parent
b1860b7e01
commit
3b829caaf6
5 changed files with 117 additions and 0 deletions
12
bundles/pppd/files/pppoe.service
Normal file
12
bundles/pppd/files/pppoe.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=PPPoE connection
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=true
|
||||
ExecStart=/usr/bin/pon
|
||||
ExecStop=/usr/bin/poff -a
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
18
bundles/pppd/files/provider
Normal file
18
bundles/pppd/files/provider
Normal file
|
@ -0,0 +1,18 @@
|
|||
user ${username}
|
||||
pty "/usr/sbin/pppoe -I ${interface} -T 80 -m 1452"
|
||||
|
||||
noipdefault
|
||||
# We're not setting 'usepeerdns' on purpose. We're running our own
|
||||
# resolver instead.
|
||||
defaultroute
|
||||
|
||||
hide-password
|
||||
lcp-echo-interval 20
|
||||
lcp-echo-failure 3
|
||||
connect /bin/true
|
||||
noauth
|
||||
persist
|
||||
mtu 1492
|
||||
|
||||
noaccomp
|
||||
default-asyncmap
|
2
bundles/pppd/files/secrets
Normal file
2
bundles/pppd/files/secrets
Normal file
|
@ -0,0 +1,2 @@
|
|||
# client server secret IP addresses
|
||||
${username} * ${password} *
|
Loading…
Add table
Add a link
Reference in a new issue