Original Post
I'm having a hard time figuring out how to forward an incoming request on port x to a dynamically (via DHCP) created local IP on port y. The specific case:
[edited by - crispy on January 16, 2004 4:53:42 PM]
|-> subnet1
out ->[R]-|
|-> subnet2
R is a Linux router box, which runs a DHCP server for subnets 1 and 2.
My first problem is coming up with a proper iptables script to add to the forwarding chain. Is it that I need to add an ACCEPT clause to the INPUT chain and a different clause to the FORWARD chain? And also, given that I'm forwarding a port to a http server, do I also need to add a clause to the OUTPUT chain?
Secondly, since the IP is volatile, can I do this based on the MAC address of the computer running the http server?
edit: added formatting