Jump to content

Remote access to Linux server (Ubuntu 16.04.3)

Hey,

 

I am running several Ubuntu servers at the moment to fold on them. SSH works as always, but can someone explain to me how to set up the firewall on the server and at home... I need tcp 36330 in and out to be free for my IP at home... that way I can monitor the Servers MUCH more comfortably 

 

THX!

FOLDING MONTH 2021! GOGOGO and save on some heating costs 🙂

 

Link to comment
https://linustechtips.com/topic/1111473-remote-access-to-linux-server-ubuntu-16043/
Share on other sites

Link to post
Share on other sites

Easiest way to setup firewall in terminal environment imo is UFW.

sudo apt-get install ufw

sudo ufw allow 36330/tcp

sudo ufw enable

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18! jellYfIn Client siDE TRanscoDinG

Link to post
Share on other sites

You need to enable port forwarding on your router in its firewall settings.

 

Do note some ISPs don't allow port forwarding, some even charge you a fee for each port you want open. So do be aware of this moving forward.

Link to post
Share on other sites

22 minutes ago, Windows7ge said:

You need to enable port forwarding on your router in its firewall settings.

 

Do note some ISPs don't allow port forwarding, some even charge you a fee for each port you want open. So do be aware of this moving forward.

on my side or at the servers side?

FOLDING MONTH 2021! GOGOGO and save on some heating costs 🙂

 

Link to post
Share on other sites

23 minutes ago, Levent said:

Easiest way to setup firewall in terminal environment imo is UFW.

sudo apt-get install ufw

sudo ufw allow 36330/tcp

sudo ufw enable

kk, I will try this. To keep SSH (when SSH goes down I am fed)

I have to ufw allow 22

right?

FOLDING MONTH 2021! GOGOGO and save on some heating costs 🙂

 

Link to post
Share on other sites

Just now, Metallus97 said:

kk, I will try this. To keep SSH (when SSH goes down I am fed)

I have to ufw allow 22

right?

sudo ufw allow ssh

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18! jellYfIn Client siDE TRanscoDinG

Link to post
Share on other sites

7 minutes ago, Metallus97 said:

on my side or at the servers side?

Well now I'm confused as to what the goal is. Are you trying to modify the server with an application or are you trying to connect to the server from outside the local network?

Levent's got you covered if the former is the goal.

Port Forwarding is what you'd want if the latter.

Link to post
Share on other sites

2 minutes ago, Windows7ge said:

Well now I'm confused as to what the goal is. Are you trying to modify the server with an application or are you trying to connect to the server from outside the local network?

Levent's got you covered if the former is the goal.

Port Forwarding is what you'd want if the latter.

Sorry! Let me explain better

I rented a linux server and want to connect to it via a monitoring app. The calculating program on the server "FAHClient" has a build in Server wich outputs stats (on Port 36330) from home I now want to connect to that port to monitor my application on the server.

FOLDING MONTH 2021! GOGOGO and save on some heating costs 🙂

 

Link to post
Share on other sites

2 minutes ago, Metallus97 said:

Sorry! Let me explain better

I rented a linux server and want to connect to it via a monitoring app. The calculating program on the server "FAHClient" has a build in Server wich outputs stats (on Port 36330) from home I now want to connect to that port to monitor my application on the server.

Oh, you're renting a server. If the monitoring program is already running/configured then you'd want Port Forwarding on the router to connect to it.

 

That complicates things. I don't know how most hosting services govern requests to open ports. I would imagine they'll let you but probably not for free.

Link to post
Share on other sites

6 minutes ago, Windows7ge said:

Oh, you're renting a server. If the monitoring program is already running/configured then you'd want Port Forwarding on the router to connect to it.

 

That complicates things. I don't know how most hosting services govern requests to open ports. I would imagine they'll let you but probably not for free.

Yes the program is awaiting connection on the server.

Hm someone did get it working on Google Compute engine... there you can manually set up your rules, but I did not have luck with that either... help there would also be nice. 

I also have some cherry servers but no idea how they handle this. Lets first care about Google Compute engine.

FOLDING MONTH 2021! GOGOGO and save on some heating costs 🙂

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×