LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-26-2018, 12:13 PM   #1
shox
LQ Newbie
 
Registered: Mar 2018
Posts: 7

Rep: Reputation: Disabled
VNC connection issues


Hi folks,

I setup UltraVNC on my home computer so that I can access files while on the go at school etc.. I can connect via my internal IP, but outside the network is a different story, I can't connect and I can't seem to figure what it is.

I figured it was my modem/router perhaps? I have a Sagecomm F@st 2864 that I suspect, from what I've heard that the modem itself needs port forwarding? Is there such a thing with the modem/router I have?

Check list:
Allowed through windows firewall
Don't have antivirus firewall (disabled it though through services)
Port forwarded port 30005 to my home computer (something inconspicuous)
Checked that the port is open through (freeportscanner and canyouseeme.org)
dyn DDNS setup, have my own hostname pointed to my public facing IP.
Pinged/tracert my hostname, works.

I'm out of ideas, anyone got a clue?
 
Old 03-27-2018, 06:28 AM   #2
erabaddosi-2116
LQ Newbie
 
Registered: Mar 2018
Posts: 20

Rep: Reputation: Disabled
Hi shox,

This is probably a bad idea. There are, relatively constantly, automated scans looking for "open" ports (for example: https://www.shodan.io). If you enabled full access to your home computer to the Internet - expect that your computer would be taken over in short order. While there are many layers of security you could potentially add, one that is lightweight that may help here is to port forward to an ssh server (port of your choosing...that also works).

So the network diagram may look like this:

+----------+ +--------------+ +-------------+
| Home | ----> | modem/router | ----> (Internet) <---- | Your remote |
| Computer | +--------------+ | system |
+----------+ +-------------+

You need to choose an appropriate authentication mechanism on your home computer (username and password alone are probably not sufficient...ssh keys are one relatively easy way to go, depending upon how you plan to use this). Additionally, your ssh server is configured to AllowTcpForwarding yes.

When you are remote, you connect to your host name on the port of your choosing by using an ssh client (openssh, putty, others...). You will need to configure it to open a "tunnel". Here is an example configuration summary from putty on Windows:

Connection -> SSH -> Tunnels:
Local ports accept connections from other hosts (unchecked)
Remote ports do the same (SSH-2 only) (unchecked)
Source port: 127.0.0.1:5900
Destination: 127.0.0.1:5900
Local (checked)
Auto (checked)

(Don't forget to "Save" in Putty, or you will need to reconfigure the putty client from scratch.)

But...there are 1000 ways of answering this. The above is relatively easy to obtain software for across Operating Systems, should work with your current setup, and doesn't take long to configure.
 
Old 03-30-2018, 03:32 PM   #3
shox
LQ Newbie
 
Registered: Mar 2018
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by erabaddosi-2116 View Post
Hi shox,

This is probably a bad idea. There are, relatively constantly, automated scans looking for "open" ports (for example: https://www.shodan.io). If you enabled full access to your home computer to the Internet - expect that your computer would be taken over in short order. While there are many layers of security you could potentially add, one that is lightweight that may help here is to port forward to an ssh server (port of your choosing...that also works).

So the network diagram may look like this:

+----------+ +--------------+ +-------------+
| Home | ----> | modem/router | ----> (Internet) <---- | Your remote |
| Computer | +--------------+ | system |
+----------+ +-------------+

You need to choose an appropriate authentication mechanism on your home computer (username and password alone are probably not sufficient...ssh keys are one relatively easy way to go, depending upon how you plan to use this). Additionally, your ssh server is configured to AllowTcpForwarding yes.

When you are remote, you connect to your host name on the port of your choosing by using an ssh client (openssh, putty, others...). You will need to configure it to open a "tunnel". Here is an example configuration summary from putty on Windows:

Connection -> SSH -> Tunnels:
Local ports accept connections from other hosts (unchecked)
Remote ports do the same (SSH-2 only) (unchecked)
Source port: 127.0.0.1:5900
Destination: 127.0.0.1:5900
Local (checked)
Auto (checked)

(Don't forget to "Save" in Putty, or you will need to reconfigure the putty client from scratch.)

But...there are 1000 ways of answering this. The above is relatively easy to obtain software for across Operating Systems, should work with your current setup, and doesn't take long to configure.
Thanks, but I want to use my vps as a mediator between my pc and the network I'm connecting from (school, cafe etc..)

//*EDIT

Last edited by shox; 03-31-2018 at 09:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC displays 'terminal window' that can't be closed after VNC connection to CentOS Hispacific Red Hat 1 10-15-2010 03:44 PM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
VNC connection issues to KDE shared desktop tisource Linux - Networking 1 05-13-2006 11:19 PM
VNC connection issues... Joshoowa Linux - Networking 2 02-05-2005 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration