Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Network & Security
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Network & Security Any network and / or security related questions should be posted in here.

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-May-2008, 09:51
beli0135
Guest
 
Posts: n/a
Default

Hello! Writng after a long time being absent..
I really never done thing and have no clue how to do it. Here's the problem

On my work, I have (obligatory) Ubuntu 7.10.

In my home, I use openSUSE 10.3, have a DSL connection.
One of the problems is that I have D-Link router which has external IP (which is dynamic, but rarely changes), and computer has local 192.168 address, accessing through d-link gateway.

What I need to install and how can I access my home computer from work?
If anyone could explain, I would be very much obliged.

Thanks
  #2 (permalink)  
Old 13-May-2008, 10:38
oldcpu
Guest
 
Posts: n/a
Default

Assuming your office does not block the ports (and many/most do) you simply need to use ssh and vnc (or nx) on your Ubuntu PC, to access your home.

Reference your IP-Address, just use something like dyndns to create a beli0135.homelinux.net mapping to your dynamic IP address. Most new routers will allow dynamic updating of dyndns and if they don't, you can setup your openSUSE PC to continually update dyndns.

You also need to open a port on your Home router for ssh (default=22) and for vnc (default=5900). You also need to open the same ports on your openSUSE PC. Presumeably you also need to open the same ports on your Ubuntu PC.

But odds are your office IT people have blocked these ports on their router, and such home access from the office is simply not possible.
  #3 (permalink)  
Old 13-May-2008, 12:18
beli0135
Guest
 
Posts: n/a
Default

Thanks, I will try that tonight at home to set it up there, and then tomorrow here in office.
No, office does not block anything for us - developers. Most of us can override most of the things so they just opened everything up (well, for now, at least).

So, if I understood, procedure is following:
1. On my home PC, I use dyndns to create domain + dynamic IP address linking
2. open ports 22 and/or 5900

office:
1. open same ports
2. use ssh to connect

well, but where do I set up password? Can I see my desktop? can I execute some commands?

Actually, besides opening ports in firewall, I do not have a clue what you told me


update: Aaaah... dyndns is a website
2 things understood, more to go...
  #4 (permalink)  
Old 13-May-2008, 13:09
oldcpu
Guest
 
Posts: n/a
Default

Quote:
Actually, besides opening ports in firewall, I do not have a clue what you told me [/b]
Take a look at these posts (all on the same thread):
http://forums.suselinuxsupport.de/index.ph...st&p=257061
http://forums.suselinuxsupport.de/index.ph...st&p=257102
http://forums.suselinuxsupport.de/index.ph...st&p=257104
http://forums.suselinuxsupport.de/index.ph...st&p=257105

Once you sort that out, and can do a basic connection, you then have to go back and modify things, to put in protection against a serious hack attempt.
  #5 (permalink)  
Old 13-May-2008, 14:28
beli0135
Guest
 
Posts: n/a
Default

Oh, thank you very much for this. I will read that carefully tonight. I will make it work one way or another. I am not in rush.

However, one thing bothers me (networking is not something I am expert at):
If my router's IP is 200.xxx.xxx.xxx (which is also 192.168.0.1 gateway), will DDCLIENT be able to do things automaticaly or I need to set up something on my router? Something like redirecting REAL_IP -> 192.168.0.10 (PC address)?
How it is done?

  #6 (permalink)  
Old 13-May-2008, 14:49
oldcpu
Guest
 
Posts: n/a
Default

Quote:
If my router's IP is 200.xxx.xxx.xxx (which is also 192.168.0.1 gateway), will DDCLIENT be able to do things automaticaly or I need to set up something on my router? Something like redirecting REAL_IP -> 192.168.0.10 (PC address)?[/b]
I don't understand your question.

Typically there are two ways to update dyndns with your routers current static IP address:
a. there will be a menu in your router, and you just fill that in (with your dyndns user name / password), or
b. you setup ddclient as appropriate on one PC (and only 1 PC) on your home lan.

What will happen is either ddclient (or your router's dyndns section), will go to a web site and get your router's current static IP-address (as assigned by your ISP and as seen by the external internet), and pass that to the dyndns site, where it is assigned to your beli0135.homelinux.net.

From then on to access your router (from the web) you will use belio0135.homelinux.net.

Note, dependant on the LAN that you have in place behind your router, for ssh you may have to port forward an arbitrary selected high port (say port 42001) to port#22 on PC#1. And maybe port forward another arbitrary selected high port (say port 42002) to port#22 on PC#2. Note only one PC on your LAN needs to run the ddclient (or instead simply fill in the appropriate section in your router if it is available) to update dyndns.
  #7 (permalink)  
Old 13-May-2008, 17:57
beli0135
Guest
 
Posts: n/a
Default

Ok, here it is, but I do not know is it working. What I did:
1. registered domain on dyndns, it picked up my address fine
2. gone to YaST/Firewall and opened ports 22 and 5900
3. gone to D-Link settings and filled up DDNS properly to point to dyndns, my user/pass
3A. added one register to firewall (see picture, I have added "Test SSH", below already was)

However, I do not know how to test it. It won't even ping (well doing it only from home PC, I have one and only at this time).
What else is missing?


  #8 (permalink)  
Old 14-May-2008, 00:20
oldcpu
Guest
 
Posts: n/a
Default

Quote:
It won't even ping (well doing it only from home PC, I have one and only at this time).[/b]
You should be able to ping "beli0135@homelinux.net" from your home PC.

Also check to ensure you have openssh installed. For example, on my PC I get:
<span style="font-family:Courier New">oldcpu@athlon:~> rpm -qa | grep ssh
openssh-4.6p1-58.6
openssh-askpass-4.6p1-58.6
oldcpu@athlon:~> </span>



  #9 (permalink)  
Old 14-May-2008, 07:21
beli0135
Guest
 
Posts: n/a
Default

Yes! Yes!
Worked.... I tried in local, didn't worked
now, from my work, I have been able to access
well, from ssh, in text mode... this is first I tried and now I will learn how to use it

Thank you!
(sure will be more questions)
  #10 (permalink)  
Old 14-May-2008, 09:32
beli0135
Guest
 
Posts: n/a
Default

OK, that works on my home computer, I can access it from work.
Now, extending my question.

I live 10500 Km away from my family, and I would like to do what you (oldcpu) did. I want to be able to access my father's PC. He has windows XP installed.
Beside using dyndns, what software he needs to install so I can access it with ssh/openvnc as I do it now with my machine?

Thanks
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2