I'm connected to the internet and I'm connected to vpn via l2tp in my openwrt default protocols
Normally the ppp-up script on openwrt makes changes and sets the default operating system route to vpn
But I set the default route on them myself and use the vpn routing policy to pass clients through the vpn path
So far, so good
That is, the route is set to wan before the operating system, and clients pass through the vpn path
But besides all this, I want to be able to ping 192.168.1.1 from the other side of the tunnel, ie from the vpn server, in any way possible (I have ping clients because they pass through the vpn path)
I need guidance for this
I don't understand what you mean with all these. It would be simpler to answer my questions. It matters a lot in vpn-pbr if the vpn is server or client and it must be configured accordingly.
Do you mean to run one interface with static protocol and dhcp server enabled, and one interface with dhcp client protocol, on the same physical interface? Technically you can, however I don't see how the server will receive the dhcp discovery packet that the client will broadcast to the interface.