Community discussions

MikroTik App
 
IntraLink
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Fri May 28, 2004 5:44 pm
Location: Utah Valley
Contact:

Quick 1 to 1 NAT question

Wed Feb 21, 2007 3:10 am

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.
 
User avatar
jwcn
Forum Guru
Forum Guru
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Wed Feb 21, 2007 3:13 am

Public address goes on your WAN interface.
 
IntraLink
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Fri May 28, 2004 5:44 pm
Location: Utah Valley
Contact:

Wed Feb 21, 2007 7:41 pm

Even though that public address gateway for the public IP is on the internal interface too?
 
User avatar
chvdr
Member
Member
Posts: 403
Joined: Thu Sep 22, 2005 8:53 pm

Fri Feb 23, 2007 11:25 pm

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.
 
galaxynet
Long time Member
Long time Member
Posts: 646
Joined: Fri Dec 17, 2004 2:52 pm
Contact:

Sat Mar 03, 2007 4:59 pm

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

Who is online

Users browsing this forum: coreywithne, hgholipoor, yhfung, zugzwang and 21 guests