Weird configuration

Hi All,

I have a problem with a weird configuration that I need and a few possible solutions came up, but I do not know how to implement none of them.

Let me explain the situation:

I have one switch, one tftp server (linux) and a couple of embedded devices that have the same IP address and it is impossible to be changed, fortunately they have different mac address.

When these embedded devices have to be upgraded, they download automatically its firmware file from the tftp server, but of course all the other devices have to be turned off and in this way it is impossible to work.

Here you have the question:

If I use iptables is there any way to execute a script when a package match with a rule ??

I was thinking in a possible solution but I need to take an action when a package matches with a iptables rule.

If anyone has any idea, please let me know it!!

Thanks.