I have a Broadcom BCM5352 router running DD-WRT firmware and four external IPs. In my network config at home I have first a router, and then a switch connected to the router (to avoid multiple cables through the whole appartment.
A server is connected to the switch, and if possible, I would like to give that server a different external ip (that is, tell the router to route all traffic to the specified external ip to the server and vice versa). I don't have static IPs, my ISP only offers DHCP.
So is there anyway to configure this? The firmware supports iptables, so if it can be done with iptables, then that is a solution. It is possible to do with pf, where the feature is called bidirectional nat mapping (1:1 mapping).