Bring Data Library online
In order to bring DL online we have to make accessible our server online because Data Library is in the server.
We have done online access the data library machine with third party platform called ngrok.com. so we can access the data library through internet by ssh.
to setup openssh client on linux : https://hostadvice.com/how-to/how-to-set-up-ssh-private-key-authentication-on-a-centos-7-vps-with-a-windows-client/
or windows : download putty : https://www.putty.org/
type the link(server link) port number then log in as ssh.
we want to make the server online without third party so we have to have an IP (static IP).
I have been using NGRok as a server. So I want to create a local server using my static IP & Host. Anyone knows how to do this?
I got some results for my question
- Ensure that your static IP is publically reachable (if you want to access your server from the public internet). A lot of ISPs do not offer customers a public IPv4 address, but instead, use NAT to offer you access to the IPv4 internet. To verify this, you could use a site, such
as
ifconfig.coto see your public ip address and if this matches your static IP address it should work. If the IPs do not match, you might only have a static IP inside your home network, but not one that is publically routed to/from the internet. If the address is shown byifconfig.comatches the IP of your router, you can enable port forwarding in your router to the host running your server. This, however, strongly depends on how your network is set up.
If all of these apply, you should be able to access the server using your public ip and the specified port. But you might want to consider securing the connection by using HTTPS instead of plain HTTP. Depending on the specifics of your setup you should be able to find many guides online on how to accomplish this. Just a few pointers:
- You need a TLS key and certificate for your host. The key you have to generate for yourself and the certificate can be either self-signed or issued by an CA, such as lets-encrypt.
- Then you either have to modify your application to use HTTPs instead of HTTP or change your application to only listen to local connections and placing it behind a reverse proxy that does the SSL termination for you. For this nginx and apache are both valid options with various resources on the Internet on how to set them up.
So I got the static IP from SLT for our 0812300415 phone, because that one contains the port forwarding option as default.
Now the DL is online with open http, https and SSH with 17022 port number. and we can log in with server IP and port number.
Security Issue: The DL is online with open SSH, therefore we should protect the password, because before I have opened the ports http (80) and https (443) only but now opened the port http, https as well as SSH(22,17022) - able to access entire data library files remotely.
Comments
Post a Comment