L
L
lilikon2018-03-31 15:53:47
Mikrotik
lilikon, 2018-03-31 15:53:47

Mikrotik access from network without white ip?

Good afternoon.
The situation is as follows, I assembled and configured the nas server, opened all the necessary ports on it.
I'm trying to set up access from outside to it, but it doesn't work.
The Internet on mikrotik is configured automatically, the provider is intersvyaz (Chelyabinsk).
There is no white ip!
ip mikrotik: 192.168.88.1
ip nas: 192.168.88.163
mikrotik sees ip 172.25.210.76 coming from the provider
if you look from the network then external ip 77.222.106.147
Previously (two years ago) I used Dynamic DNS via changeip.com and wrote the following script on mikrotik :

:local interfacename("ether1");
:local ddns("domain");
:local login("login");
:local password("password");
:local CurrentDynDNSIP [:resolve $ddns]
:local TMPDynDNSIP [/ip address get [/ip address find interface=$interfacename] address]
:local RealDynDNSIP [:pick $TMPDynDNSIP 0 ([:len $TMPDynDNSIP]-3)]
: if ($CurrentDynDNSIP!=$RealDynDNSIP) do={/tool ​​dns-update name=$ddns address=$RealDynDNSIP key-name=$login key=$password}

Now this script does not work, and if you register a specific ip (172.25.210.76 or 77.222.106.147) on the domain, there is zero sense.
Is it possible to set up access from the Internet to my nas servera without buying a white ip?
If there is, PLEASE help me!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
vreitech, 2018-03-31
@lilikon

172.25.210.76 is an address that is not routable to the internet. you need on a machine that has an external IP address (as I understand it, this is 77.222.106.147), forward the ports you need to 172.25.210.76.
if the machine with 77.222.106.147 is not yours, you need to contact the one whose machine it is.

A
Alexander, 2018-03-31
@alexr64

Is it possible to set up access from the Internet to my nas servera without buying a white ip?

Yes.
1) Raise the mikrotik vpn to the machine with a white ip.
2) On a machine with a white ip, proxy traffic to Mikrotik.
3)...
4) Profit!

M
Maxim_Q, 2020-05-11
@Maxim_Q

It may be possible to configure access if your provider supports UpnP. Ask him if he has support and if he forwards ports?

A
Anton Colt, 2014-01-27
@calliko

In general, frameworks are good because they already have everything you need, and if not, then most likely someone has already written it.
For authorization, you can, for example, take the ion_auth plugin. Not to say that it is ideal, but quite simple and versatile (I started with it myself, and now I use it, though there is little left of my own - I rewrote it almost completely)
there is a built-in class for sessions, there is nothing special - cidocs.ru/210/ libraries/sessions.html
there is also a simple class for the database - cidocs.ru/210/database/index.html

M
Maxim Timokhin, 2014-01-27
@timokhin

The way is right: don't use CodeIgniter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question