Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - michelmulder

#1
21.1 Legacy Series / PPPoE Routit over KPN network
June 17, 2021, 02:11:18 PM
I am trying to set-up a PPPoE connection for a FttH connection over vlan6 for a Dutch ISP RoutIT which uses the KPN network. According to the documentation, the only thing I have to enter are the username and password. The actual value do not even matter, because whatever I fill in, authentication succeeds.

After authentication, a local IP, remote IP and DNS are negotiated. I receive a local IP and DNS servers, but the remote IP is 0.0.0.0. When the local IP is added to the pppoe0 interface, the following error is visible in ppps.log:


2021-06-17T07:55:48 ppp[38460] [wan] IPCP: state change Opened --> Stopping
2021-06-17T07:55:48 ppp[38460] [wan] IPCP: parameter negotiation failed
2021-06-17T07:55:48 ppp[38460] [wan] IFACE: IfaceChangeAddr() error, closing IPCP
2021-06-17T07:55:48 ppp[38460] [wan] IFACE: Adding IPv4 address to pppoe0 failed: Destination address required
2021-06-17T07:55:47 ppp[38460] [wan] x.x.x.x -> 0.0.0.0
2021-06-17T07:55:47 ppp[38460] [wan] IPCP: LayerUp


After testing the same configuration on a Linux VM, I see something interesting:
Jun 17 12:08:52 localhost pppd[1809]: Could not determine remote IP address: defaulting to 10.64.64.64

It looks like the ppp daemon on Linux can't determine a remote IP, so it's using 10.64.64.64. This works and I can connect to the internet over the PPPoE connection.

So back to OPNSense. When I look at the Point-to-Point configuration, I can see there is a Local IP and Gateway option available for PPPoE. However, when I enter values in this field, nothing is saved.

After some research, I found out that this information is used in /usr/local/etc/inc/interfaces.inc. In this file ipcp ranges are also set. The strange thing is that local ip and gateway are only used for ppp connections, not pppoe. This looks like a mismatch between the UI and the actual script configuring mpd5?

Next i tried to override the ipcp ranges manually by editing the file mentioned before. When I set the ipcp ranges as follows, OPNsense is able to establish a PPPoE connection and everything works fine.

  set ipcp ranges 0.0.0.0/0 10.64.64.64/0

Does anyone has any idea how i can set these ranges instead of altering the file and losing changes whenever I upgrade OPNSense?