Access to the server from the outside, whether via 3G modem?

Hi all!

There is a server on Ubuntu, which is stuck in 3G modem. The Internet it gets from the modem and distributes through internal slavushka in the LAN (masquerade). Works all OK.

Appeared the need to access the server from outside. And then I encountered a problem.

1) I have registered on dyndns service freedns.afraid.org I used to set it up for normal non-modem connection in Ubuntu and everything was flying. Now I registered there and made a subdomain tipo home.site.ru

2) In the settings site.ru created subdomain home, where the na servers, prescribed na servers afraid. It eradu much, and he has reported that he is ready to work.

3) For permanent messages to afrade what IP the server, they yuzayut wget script that will connect to afraid.org and reports the current IP (for the crown). In the end, if you ping the address home.site.ru I consistently see the correct mapping name > address. That is, the service dyndns earned right.

Problem: SSH but I can't get on the server. The answer is simply no. No.
* In LAN with the server everything is OK on port 22 can zakonektitsya on it with no problems.
** If the ping response from the server, only see in the console mapping name>address
*** On the line on the current issued gray ip reaction is the same...

Lord where to dig? Iptables server?
July 8th 19 at 10:00
4 answers
July 8th 19 at 10:02
You have NAT, you have to contact your operator to get a white IP.
Personally for me white ip I had to buy a new SIM card with special tariff for X5 the price

Or use ipv6 tunnels through a broker
July 8th 19 at 10:04
Use Teamviewer and GUI )))
it's not so long ago massively hacked. Fig is. - giovanny_Rath commented on July 8th 19 at 10:07
well then, pay for the external IP for the SIM card. PPC which is "in demand" service. Niche just. - Jarred.Gleason51 commented on July 8th 19 at 10:10
July 8th 19 at 10:06
Address gray, to appeal to it from the outside impossible.
External VPN or dedicated address buy.
July 8th 19 at 10:08
In cellular networks you have a grey address. The best option is to raise on your available hardware VPN server, and on Ubuntu to configure the connection.

PS: Here is a similar decision was made on Mikrotik, but the principle is the same - arxont.blogspot.ru/2014/01/3g.html

Find more questions by tags DynDNSMobile communicationUbuntuIptables