Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux_router:ppp [2020-04-23 Thu wk17 19:52] baumkplinux_router:ppp [2024-09-21 Sat wk38 20:10] (current) – [System Forwarding Enable] baumkp
Line 1: Line 1:
-{{tag>linux router ppoe ppoed mtu dns dhcp}} +{{tag>linux router pppoe pppoed ISP mtu dns dhcp}} 
-=====Ubuntu PPPoE Network Setup=====+=====ISP PPPoE Network Setup=====
  
 A reasonably comprehensive discussion on Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=2341699|Setup Ubuntu Server as a router using a PPPoE connection]], [[https://samuel.kadolph.com/2015/02/mtu-and-tcp-mss-when-using-pppoe-2/|MTU and TCP MSS when using PPPoE]]. Also from Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=872346|How to Optimize your Internet Connection using MTU and RWIN]]. Ubuntu documentation [[https://help.ubuntu.com/community/ADSLPPPoE|ADSLPPPoE. PPPD manual page]]. A reasonably comprehensive discussion on Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=2341699|Setup Ubuntu Server as a router using a PPPoE connection]], [[https://samuel.kadolph.com/2015/02/mtu-and-tcp-mss-when-using-pppoe-2/|MTU and TCP MSS when using PPPoE]]. Also from Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=872346|How to Optimize your Internet Connection using MTU and RWIN]]. Ubuntu documentation [[https://help.ubuntu.com/community/ADSLPPPoE|ADSLPPPoE. PPPD manual page]].
  
 Another reference is Confirm Blog [[https://blog.confirm.ch/using-pppoe-on-linux/|Using PPPoE on Linux]]. Another reference is Confirm Blog [[https://blog.confirm.ch/using-pppoe-on-linux/|Using PPPoE on Linux]].
 +
 +Some other references:
 +  * [[https://scarff.id.au/blog/2019/nbn-hfc-with-a-linux-router/|Connecting to NBN HFC with a linux router] Internode router set up notes]]
 +  * [[https://scarff.id.au/blog/2021/internode-ipv6-on-linux-with-systemd-networkd/|Internode IPv6 on Linux with systemd-networkd]]
 ====Install Software==== ====Install Software====
  
-Install the DNS, DHCP, and PPPoE software: "sudo apt install bind9 isc-dhcp-server pppoeconf"+Install the DNS, DHCP, and PPPoE software: ''sudo apt install bind9 isc-dhcp-server pppoeconf''
  
 Disable and stop the DNS [bind9] and DHCP [isc-dhcp-server, isc-dhcp-server6] software for the moment and configure later. Disable and stop the DNS [bind9] and DHCP [isc-dhcp-server, isc-dhcp-server6] software for the moment and configure later.
Line 76: Line 80:
 # There should be a matching entry with the password in # There should be a matching entry with the password in
 # /etc/ppp/pap-secrets and/or /etc/ppp/chap-secrets. # /etc/ppp/pap-secrets and/or /etc/ppp/chap-secrets.
-user W6qf64727k@dsl.mynetfone.com.au+user yourusername (change to suit, I do not want my one public)
  
 #Ask the peer for 2 DNS server addresses #Ask the peer for 2 DNS server addresses
Line 103: Line 107:
 WantedBy=sys-subsystem-net-devices-eno1.device WantedBy=sys-subsystem-net-devices-eno1.device
 </code> </code>
 +
 +Use ''sudo systemctl daemon-reload'' to update systemd for new service. Then ''sudo systemd disable pppoe'' to disable this service from activating at system startup. We will enable later, once configuration is more complete.
 +
 +To check log files use: ''sudo systemctl status pppoe'' or ''journalctl -u pppoe -b 0 -xe''; ''-b 0'' sees last boot, ''-xe'' sees end of file, ''-f'' to list the end of the file. Also remember to turn on / off the debug option in ''sudo vim /etc/ppp/peers/mynetfone''. The debug information helped me debug problems with my ISP.
 +
 +There were some concerns about pppd not being fully compatible with Netplan. Hence the attempt to manually set up wan/eno1 interface with an ''ip link set'' instruction in the pppoe.service script. The ''ip'' command is compatible with Netplan.
 +
 I played with the following options in the pppoe.service script: I played with the following options in the pppoe.service script:
 <code> <code>
Line 111: Line 122:
 ExecStartPre=/sbin/ip route add 192.168.5.0/24 via 192.168.5.1 dev eno1 ExecStartPre=/sbin/ip route add 192.168.5.0/24 via 192.168.5.1 dev eno1
 </code> </code>
-There were some concerns about pppd not being fully compatible with Netplan. Hence the attempt to manually set up wan/eno1 interface with an ''ip link set'' instruction in the pppoe.service script. The ''ip'' command is compatible with Netplan. 
  
 <fs smaller>A reference to this problem and proposed solution can be see at [[https://askubuntu.com/questions/987982/how-do-i-use-netplan-to-configure-pppoe|How do I use Netplan to configure PPPoE]]? Actually, I believe the premiss that pppd is not compatible with netplan is incorrect as I managed to use so.</fs> <fs smaller>A reference to this problem and proposed solution can be see at [[https://askubuntu.com/questions/987982/how-do-i-use-netplan-to-configure-pppoe|How do I use Netplan to configure PPPoE]]? Actually, I believe the premiss that pppd is not compatible with netplan is incorrect as I managed to use so.</fs>
  
-Use ''sudo systemctl daemon-reload'' to update systemd for new service. Then ''sudo systemd disable pppoe'' to disable this service from activating at system startup. We will enable later, once configuration is more complete. 
- 
-To check log files use: ''sudo systemctl status pppoe'' or ''journalctl -u pppoe -b 0 -xe''; ''-b 0'' sees last boot, ''-xe'' sees end of file, ''-f'' to list the end of the file. Also remember to turn on / off the debug option in ''sudo vim /etc/ppp/peers/mynetfone''. The debug information helped me debug problems with my ISP. 
 =====System Forwarding Enable===== =====System Forwarding Enable=====
  
Line 126: Line 133:
 To change to on: ''sysctl -w net.ipv4.ip_forward=1'' To change to on: ''sysctl -w net.ipv4.ip_forward=1''
  
-To see all system variables concerning network: ''sysctl -a | grep network''+To see all system variables concerning network: ''sysctl -a | grep net''
  
-<-  linux_router:network|Prev page ^ linux_router:start|Start page ^ linux_router:DNS_DHCP|Next page ->+<-  linux_router:network|Prev page ^ linux_router:start|Start page ^ linux_router:ipoe|Next page ->