I’m trying to test an application and I need to make an valid IP not respond from a one of my test servers but not the others. I could do this for an fqdn using /etc/hosts but I’d like to do it for an IP.
To clarify I actually I want both servers to respond but I need one of the devices the servers manage to only be reachable from one of the servers. I’m testing a master / worker application and I want to make sure the master cannot talk to the device directly.
The firewall rule would be perfect, would that have to be implemented on the router? Or, is there a way I could do it on server. I was hoping for something I could do on the dev boxes directly, since I “own” those, but I’d need IT support to change a router. I have access to Linux and Solaris dev boxes if you have suggestions for implementing a firewall rule.
Here is how I interpreted your question.
You have two servers, and a device which is managed by ONE of the two servers. Both servers will TRY to manage the device, but you want to prevent the second one from being able to communicate to it.
On the second server (assuming linux) I would run
this will drop any outbound traffic on that server destined for the device.