LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-16-2009, 03:14 PM   #1
nonidentity
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Angry problem with remote accessing c/w firewall


I want to access a PC with ubuntu that is remote. I can log into the PC when I am there - my son can do this for me.
It is behind a firewall and has a 10,x,x,x address. I can invoke a session from there outwards and browse BUT I cannot access the PC remotely from where I am now.
Obviously if there was Logmein 4 linux then I could get around this as port 80 is OK.
I cannot ssh or vnc it - any ideas?
 
Old 04-16-2009, 03:57 PM   #2
derek990
LQ Newbie
 
Registered: Apr 2009
Location: Canada
Distribution: Gentoo, CentOS, Fedora
Posts: 4

Rep: Reputation: 1
The remote PC you are trying to access is blocked by a firewall. If you have access to the firewall/router you should forward the SSH(22) and VNC(5900) port to your Ubuntu machine. Before implementing this you have to set a static ip address on the Ubuntu machine.
 
Old 04-16-2009, 04:02 PM   #3
nonidentity
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Unfortunately I cannot access the f/wall

perhaps I can tunnel with openvpn?
 
Old 04-16-2009, 11:28 PM   #4
derek990
LQ Newbie
 
Registered: Apr 2009
Location: Canada
Distribution: Gentoo, CentOS, Fedora
Posts: 4

Rep: Reputation: 1
Openvpn would work except you would have to initiate the tunnel from the (source) Ubuntu machine in order to keep that port(s) open in the firewall. However this tunnel would have to be pointed to a machine on a static ip which you could then open a VNC connection through the tunnel. If you are using dynamic ip's at the destination of the openvpn tunnel, you would most likely like to have some type of dynamic dns software which would allow your ubuntu machine to establish a tunnel with you anywhere you are. Maybe i have made this sound more complicated than it really is but it does work. The key is to keep the tunnel connected to whatever machine you are using so you can launch a VNC session.
 
Old 05-02-2009, 01:36 PM   #5
nonidentity
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Talking

Maybe I was not very clear.

So I am at home with ADSL connection. I have full control of my environment.

My son, is studying and his PC is behind a "corporate" firewall. His address is a 10,x,x,x range and seems static.

He can initiate a PuTTY session from his position and connect via DynDNS to my PC.

However the objective is that I need to connect to his PC and conduct some changes.

In Win I would use LogMeIn as a service and in fact I do so with his laptop; however this is Ubuntu on both ends thus PuTTY or VNC from either end cannot connect.

How do I over come this?
 
Old 05-02-2009, 07:20 PM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
What you want is a reverse ssh tunnel. Google for 'reverse ssh' and you will find many good how-tos.
 
  


Reply

Tags
access, firewall, remote


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing remote desktops, is it possible? Spike Spiegel Linux - General 3 10-30-2008 04:38 AM
problem in accessing my site from a remote machine shweta Linux - Networking 1 12-03-2006 06:08 PM
Remote Desktop Access Firewall Problem avonsydow Linux - Networking 4 11-14-2006 01:01 PM
Accessing remote computer adilturbo Linux - Networking 4 06-29-2006 04:32 AM
accessing a host from a remote server onlynimal Linux - Networking 5 04-20-2006 07:37 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration