Suppose I have 2 internal networks: and

I would like to NAT a specific IP address from one network to the other, in which the new address would be obtained via DHCP.

For example: --NAT--> 1.1.2.x (determined via DHCP)

Is this possible via iptables?

EDIT: Forgot to mention NAT is done by a router interfacing both networks.

  • Is there a specific reason why you need NAT rather than plain routing? – Hennes Dec 1 '12 at 23:59
  • No specific reason. Only experimentation and learning. – drum Dec 2 '12 at 0:17
  • We need more data to write iptables rules. We need interface names... anyway, maybe another post resolved about this can help you post – OscarAkaElvis Dec 10 '16 at 11:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.