Page 1 of 1

Changing Gateway IP - How to monitor who is using the old one?

Posted: Fri May 14, 2021 1:52 am
by scintillasrls
There is already some old locked post similar to this question, but not equal.

The router is 192.168.1.1/24
I added 192.168.1.254/24 to my "LAN" bridge to the router.
I modified DHCP server data to update clients over this new gateway address.
Probably in the LAN, there are legacy devices with static IP configuration continuing to use the old Gateway IP.
How could I know the IP / Mac address of those devices using the old gateway IP (torch, connection tracking, Nat rule with logging) ?

Thanks

Re: Changing Gateway IP - How to monitor who is using the old one?

Posted: Fri May 14, 2021 2:16 am
by rextended
/ip firewall raw
add action=add-src-to-address-list address-list=list_old_gateway \
    address-list-timeout=none-dynamic chain=prerouting dst-address=192.168.1.1 \
    log=yes log-prefix="OLD GATEWAY" src-address=192.168.1.0/24
/system logging
add topics=firewall,!debug