Quick 1 to 1 NAT question

When doing 1 to 1 NAT on a routed system, what interface do I put the public IP on?

I’m routing a C class 209.40.40.0/24 and want to one to one NAT 209.40.40.40 to internal 192.168.40.40.

The gateway 209.40.40.254 is on the Internal interface, and the external interface has my connected IP for my provider of course.

Public address goes on your WAN interface.

Even though that public address gateway for the public IP is on the internal interface too?

hello friend,
i suppose that you have to re-post your question and make it clear. because i suppose nobody understand your last question. me too.
regards,
C. G.

IntraLink -
You already have your ‘public’ IP from your provider on your WAN

the external interface has my connected IP for my provider of course

so all you have to do is one to one nat public to private. There is no need to put your class C network IP address on any interface…

dst-nat 209.40.40.X/32 to 192.168.40.X/32, would look like this in terminal mode: chain=dstnat dst-address=209.40.40.XXX action=dst-nat to-addresses=192.168.40.XXX to-ports=0-65535

src-nat looks very similiar if you need to do that.


Hope this helps.


Thom