Community discussions

MikroTik App
 
estdata
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Mon Feb 20, 2012 9:05 pm
Contact:

v5.11nat port forwarding

Mon Mar 05, 2012 5:23 pm

When im ssh port forwarding . I cant port forwarding. Im setting nat rules and i cant
chain dstnat
dst-aadress: 0.0.0.0/0
dst-port: 22
in-interface: enternet port1(wanport)
action:

dstnat: localport aadress
and prioriteet nr 1 thats for nat
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: v5.11nat port forwarding

Fri Mar 09, 2012 12:25 am

/ip firewall nat add chain=dstnat dst-port=22 action=dst-nat protocol=tcp to-address=192.168.1.1 to-port=22

192.168.1.1 the ip where you forward
 
estdata
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Mon Feb 20, 2012 9:05 pm
Contact:

Re: v5.11nat port forwarding

Thu Mar 29, 2012 8:16 am

/ip firewall nat add chain=dstnat dst-port=22 action=dst-nat protocol=tcp to-address=192.168.1.1 to-port=22

192.168.1.1 the ip where you forward


your case has been tested but it offered not helped me. I've tried this option but it does not work. Whether the matter should only be to adjust or NATis filter and mangle also view?
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: v5.11nat port forwarding

Thu Mar 29, 2012 12:43 pm

Did you redirected your ports in the mail router? The public IP is directly in the routerOS? Can you explain how is configured your network?
 
estdata
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Mon Feb 20, 2012 9:05 pm
Contact:

Re: v5.11nat port forwarding

Thu Mar 29, 2012 4:10 pm

Did you redirected your ports in the mail router? The public IP is directly in the routerOS? Can you explain how is configured your network?


Yes, I have a Public IP, or cable to a router and then one goes mikrotik
on the second server.
I want to be the party's Public IP address to the server in with ssh '
I did this only to say you wrote here. I put the settings but it does NAT work.


I mean that either should not be put on not only the provisions but also filter NAT and mangle.
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1686
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: v5.11nat port forwarding

Thu Mar 29, 2012 4:41 pm

are you trying to access from your LAN internal IP to your WAN external IP? If it's this, you need to:

http://wiki.mikrotik.com/wiki/Hairpin_NAT

If not,

please, copy paste the export of your router.

thanks,

Who is online

Users browsing this forum: Adrijan, txfz, Wxjeep and 91 guests