0

I have setup ubuntu on my old computer and create a home ubuntu server. I have access the server on my network.I have use putty and with server (old computer) ip i have access it.But now i want to connect with a domain and also want to access outside the network.

I dont have any idea related to this issue. I have find some help but confuse. In my opinion i need a static ip for my server but how ?Please explain

  • This is a complex topic not for newbies. It may have security implications too. The steps are like this: Give a static LAN IP to your Ubuntu "server". Get a static WAN IP from your service provider. Forward TCP port 22 from your router to your server's TCP port 22 (you can choose another TCP port on your router). Optional steps: Activate firewall (ufw) on your server and limit access to the possible Internet IPs that you are planning to access your server. Install and configure fail2ban on your server to limit possible break-in attempts. Monitor your server for illegal access attempts. – FedonKadifeli May 29 at 9:01
  • Also look at Related questions on the right of this page. Especially: askubuntu.com/questions/716184/… – FedonKadifeli May 29 at 9:02
  • have a look at wireguard.com it is a very safe way to communicate with your server. it creates an encrypted vpn connection to your server. the service itself is not visible from the outisde, so portscanner are no threat. next your server needs a static ip or domain name. there are lots of free dynamic dns service providers out there. If your server is at your home, for simplicity check your router what service provider you can use.Have a look at your routers webinterface. The only thing that you than have to do is forward the wireguard port to the port of your server in your lan. – AlexOnLinux May 29 at 9:11
  • The downside of this approch by using a vpn is that only preconfigured clients are able to use your server. If it is only you and a couple of friends using it, it improves safety a lot. [CB16] WireGuard: Next Generation Abuse-Resistant Kernel Network Tunnelby Jason Donenfeld - youtube.com/watch?v=eYztYCbV_8U – AlexOnLinux May 29 at 9:12
  • Thanks for the help but i cant access my router because i am working in a office.They said they will give my a static ip.Can anyone explain it setup by setup? – majid May 29 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.