Page 1 of 1

Quick 1 to 1 NAT question

Posted: Wed Feb 21, 2007 3:10 am
by IntraLink
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.

Posted: Wed Feb 21, 2007 3:13 am
by jwcn
Public address goes on your WAN interface.

Posted: Wed Feb 21, 2007 7:41 pm
by IntraLink
Even though that public address gateway for the public IP is on the internal interface too?

Posted: Fri Feb 23, 2007 11:25 pm
by chvdr
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.

Posted: Sat Mar 03, 2007 4:59 pm
by galaxynet
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