pppoe server and client on same router

Hi, does anyone know if there is possible to have pppoe server and client on same router?
why do i need this?

I’d like to use the following config

ether1-> internet from another router with dhcp/firewall/nat
ether2,3,4 → bridge for a pppoe server [will connect 2 external routers via pppoe and ether5 from same router as pppoe client)
ether5 → pppoe-out1 (will connect via cable to ether4)
ether6,7,8,9,10 → bridge lan that will have internet through pppoe-out1

purpose is to provide internet via pppoe (ether2,3,4) to 2 other devices and have at the same time a pppoe-out1 interface (ether5) that will provide internet to a bridge lan (ether6,7,8,9,10) so i can use pcq properly on lan subnet. reason is that nat interfaces provide only bandwidth limit per interface and pcq doesn’t work on a lan subnet if there is not a pppoe connection.

I have tested such a configuration using mangle rules to shape traffic via the different networks on the same device and i have a major problem. pppoe server works fine and other routers connect at it and have internet. when i connect pppoe-out1 from ether5 to ether4 (pppoe server) via cable ppoe connect, i get ip and gateway and RX traffic of pppoe is Zero (0) also TX traffic of the pppoe connection on smae window is Zero (0).
Any ideas?

Regards

So what you actually want is a pppoe server and its client on the same router. Well, it is possible as you’ve checked yourself, however it will not help you reach your goal because both the server’s and client’s IP address will be up on the same device, so the IP stack will take the shortcut instead of routing through the PPPoE link because routing to local addresses is always direct. And there is no escape, you cannot src-nat traffic leaving through pppoe-out1 to some bogus IP because the IP tunneling protocol in the PPPoE won’t accept packets from any other IP than the one assigned to the client.

But you have helped me realize an interesting possibility :slight_smile: