Stop wanport from getting dhcp from modem

lan ip 192.168.1.0/22

pppoe on wan 1 and wan 2

dhcp on lan

everything works well but when wan1 and wan2 modem are reset from the isp remotely they enable dhcp and in addresses i can see 192.168.1.xx for wan1 and wan2

to stop this either i do vlan or change my ip range or firewall
firewall that i have tried


/ip firewall filter add chain=input in-interface=WAN_1 protocol=udp dst-port=67-68 action=drop comment="Below is to drop Dhcp from Wan side"

& wan2 same rule

same in raw for wan1 wan2 and pppoe both

in dhcp client added wan1 and wan2 and use peer dns and default route = no

Why not suffice just NOT put the WANs in the LAN and remove the DHCP clients from WAN ports?
What configuration horror do you have?

we its simple pcc load balance and when you remove them from addresses, they come back, because the internet routers are locked from the isp side and cannot disable their dhcp.

gone through it with several times and found out that detect internet was all. with the above firewall entry and disable internet detect, even after restart no D entries for wan1 and wan2

Oh that’s annoying. The evils of the automatic DHCP client from /interface/detect-internet strikes again. Glad you figured it out.

Instead, just remove or disable them.

did try both the option but the problem is the network is on the same subnet. router == locked
network cannot change subnet yet

Why is that a problem?

You are using PPPoE on both WANs, you don’t need DHCP on the physical interfaces, it is causing you issues, so don’t use it.