On 2021-12-02 13:17, Mikolaj Kucharski wrote:
> On Fri, Nov 26, 2021 at 01:35:14PM +0100, Krzysztof Kanas wrote:
> > Hi. When remote side in sppp doesn't reply for to PPP IPCP IP-Address 
> > sppp will try to negotiate remote IP in endless loop. Instead use 
> > 10.64.64.1 + if_index as remote IP.
> > 
> 
> Okay, but why it doesn't reply? I don't use anymore PPPoE, as none
> of the machines connected to the internet use that mechanism, but
> from my very old backups I see I used in the past:

I don't know. This is ISP controlled device. To make insult worse it 
used to work with OpenBSD pppoe (no custom kernel), until it stopped 
(maybe ISP didn't want to present device IP to the client ?).

I had to learn why it stopped and then I found out about Bug in sppp 
regarding remote IPCP negotiation endless loop.

> 
> # /etc/hostname.pppoe0
> inet 0.0.0.0 255.255.255.255 NONE pppoedev vr0 authproto chap \
>         authname 'some-customer-id-here' authkey 'secret-key' \
>         description "pppoe uplink" up
> dest 0.0.0.1
> !route -nq add default -ifp \$if 0.0.0.1

So with in another reply I found out that I can set remote IP to pppoe 
and it seems to be working.

Here is my working for now config for /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 10.64.64.33 \
pppoedev em0 authproto chap \
authname 'testcaller' authkey 'secret' up
!/sbin/route add default -ifp pppoe0 10.64.64.33

This allows me to assign bogus IP for ISP pppoe device (10.64.64.33) and 
default routing rule so I can forward packets. Although the remote IP is 
bogus so packets with IP dest 10.64.64.33 won't be replied by ISP pppoe 
device, but I don't have need for that. I just need to forward my 
packets to the internet.
> 
> I don't remember any issues with above setup and that OpenBSD
> machine was running -current and was rebooted many times during
> its 6+ years of service. Also machine faced many power outages
> and on a fresh bootup I don't remember it not able to connect,
> that I needed to run a custom kernel or do some extensive
> troubleshooting.

I had good run like 2 years without any issue. Then all of the sudden I 
had to debug this issue.

> 
> Looking again at pppoe(4) manual page I copied above config
> directly from there.
> 
> What problem are you trying to solve here is not clear to me.

Hope it makes more sense now.

Thanks for the help.

-- 
--
Best Regards Krzysztof Kanas

Reply via email to