I have a block of static public IP addresses assigned by my ISP and I wish to assign specific machines on my LAN to specific public IPs. My modem is set up so as to pass all traffic to the router so it does not do NAT or anything.
My question is what do I need to do in OpenWRT to map specific open IP addresses to particular machines in such a way that OpenWRT performs port forwarding on the accesses? Eg, I have a webserver on machine A on the LAN so I need all HTTP and HTTPS request traffic to the corresponding WAN public IP addresse a.a.a.a to be routed to machine A but all other traffic to a.a.a.a to be dropped as it would be for a NAT setup with port forwarding.
Does OpenWRT do this (I'm sure it does) and if so, how ?
Shouldn't it be possible to use proxy-ARP in this case instead of forwarding ports? But how would you configure it in OpenWrt which seems to lack settings for proxy-ARP? If the OpenWrt answers ARP requests using proxy ARP then it would be able to route the IP address directly to the server. In this case the server must be configured with the public IP address as a secondary IP address (with netmask /32) on the external interface or on the loopback interface.