Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-03-18 Thread Balasubramaniam Natarajan
Agree Srini :-)

-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-03-18 Thread Shrinivasan T
friends.

our list has members around the globe.

we have to maintain the discussions in English so that it reaches most of
the members.

we have a separate list to discuss in Tamil.

ilugc.ta...@ae.iitm.ac.in

join in that list and discuss in Tamil

thanks.
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-03-18 Thread Balasubramaniam Natarajan
உங்கள் படத்தில் சூப்பர் வீடியோ கேமரா

அதன் முழுவதும் தகுதியான செயற்கள பெயரை மூலம் கணினி அடைய வேண்டும்


2012/3/19 ganesh moorthi 

> தமிழில் எழுதுங்கள் எனக்கு ஆங்கிலம் தெரியாது
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>



-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-03-18 Thread ganesh moorthi
தமிழில் எழுதுங்கள் எனக்கு ஆங்கிலம் தெரியாது
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread kenneth gonsalves
On Wed, 2012-02-08 at 16:12 +0530, Shrinivasan T wrote:
> > I maintain a server in a remote place. It is connected to a LAN -
> the
> > LAN is the usual poor man's LAN which uses the BSNL router as the
> dhcp
> > server. They have dynamic IP from bsnl. The machine the machine has
> a
> > fixed IP (192.168.1.123). The inward facing IP of the router is
> > 192.168.1.1. Is it possible to ssh into this machine from outside,
> and
> > if so how?
> 
> In the BSNL router, they have to port forward 22 port to the inner
> machine.
> check the site http://portforward.com for their model and guide on how
> to do port forward. 

an exe file?
-- 
regards
Kenneth Gonsalves

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread 0

> Take a look at this:
>
> https://pagekite.net/
>

This is an interesting service but you might face high latencies, 
especially for SSH. Unless, they have the service provided out of an 
Indian DC as well.

-- 
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Ravi Kumar Tenneti
Hi,

On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves wrote:

> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?
> --
> regards
> Kenneth Gonsalves
>
>
Take a look at this:

https://pagekite.net/

PageKite is software that gives your localhost servers names and makes them
globally visible. It works with any computer and any Internet connection.

It's so easy you'll never want to think about routers, IP addresses or
other technicalities again. It's open source, too!

Regards

Ravi Kumar
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Girish Venkatachalam
On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves
 wrote:
> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?
> --

An extremely popular thread!

Great going!

I always run a perl script from the dyndns.org site that updates the IP
whenever it changes.

You have to tweak it a bit everytime you have a different MODEM.

Basically all it does is figure out its own IP using the same method as
 http://www.checkmyip.com

which is nothing but a simple CGI that prints the env var
 REMOTE_ADDR

Anyway other than port forwarding there is one more technique which
 is quite excellent as there is no need to do any port forwarding but
 it is complex to get working and it requires the machine to be always
up and requires a third machine with a public IP.

With all these needs I call it excellent since it kind of breaks
firewalls and is quite interesting both from a crypto angle and from a
networking angle.

Anyway I am not going to dwell upon this because if you search last
year's or the previous year's posts I have sent a ssh port forwarding
technique mail.

Look at that and you will know what to do.

-Girish
-- 
G3 Tech
Networking appliance company
web: http://g3tech.in  mail: gir...@g3tech.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Raja Subramanian
On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves
 wrote:
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?

Others have already suggested the port forwarding method. Only
addition I would like to make is that you also configure iptables
connection rate limiting for ssh. This will ensure your server is not
brute forced by bots. I recommend you do this on all internet facing
servers.

Alternate methods which do not require port forwarding:

1. Initiate a connection from the internal server to an external server
and port forward from external server to internal ssh.

2. From your internal server connect to an external OpenVPN server.
>From this external network, you can ssh to the internal server's VPN
interface IP address.

- Raja
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread 0

I maintain a server in a remote place. It is connected to a LAN - the
LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
server. They have dynamic IP from bsnl. The machine the machine has a
fixed IP (192.168.1.123). The inward facing IP of the router is
192.168.1.1. Is it possible to ssh into this machine from outside, and
if so how?


This is pretty simple to do, I have been using it for a few years now.

There are three parts to the problem,

1. Accessing your Dynamic IP
2. Opening your SSH port
3. NAT Loopback

(1) Dynamic IP

Since the IP is dynamic, you need a domain name which can be updated 
periodically. There are several dynamic DNS providers, one of the 
popular ones is dyndns.org which is now dyn.com. They provide a couple 
of REST APIs which you can use to get your external IP and update the IP 
in your dyn.com account.


I have attached the shell script which you can use. Just modify the 
script with your newly created dyn.com account name and password.


(2) Port forwarding

BSNL modems are unpredictable when it comes to port forwarding but you 
can try it out. In the port forwarding table, just specify incoming port 
22 to be forwarded to IP (192.168.1.123) and port 22.


(3) NAT Loopback

This is just something you should know, it is not required. Even after 
the above setup, you might not be able to access your domain name 
directly from your internal network if the router doesn't support NAT 
loopback. AFAIK, linksys/cisco routers support this while the basic 
netgear routers don't. I don't know about BSNL modem/routers.


In case you are interested, the script does the following,

- gets your external ip
- resolves the domain name to the current ip
- if the current ip and external ip are different, issues an update.

Hope this helps.

--
0


update_dyndns.sh
Description: application/shellscript
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread satyaakam goswami
>
> run a script in the machine with dynamic ip. The script will write the new
> ip address to the machine which has static ip. In the machine with static
> ip, read the ip address and connect remotely to the machine. (This is what
> dyndns is doing internally).
>

How ?

in our case we either have

Server ( Dynamic Ip) <-> Internal Machine ( Private IP)

Router ( Dynamic Ip)   <> Server Host ( Private IP )

in both the cases either the server gets a dynamic public ip or router now
can you eloborate on how we can do it?

-Satya
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Karthikeyan Venkatraman
Hi,

You can also use the DNSExit tool which will be useful to access machine
which is in dynamic address. I have not used this product and it is similar
to Dynedns.

Hope you need to run their Dns client software which will help to catch the
registered domain name.

http://www.dnsexit.com/Direct.sv?cmd=11

Thanks,
V. Karthick



On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves wrote:

> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?
> --
> regards
> Kenneth Gonsalves
>
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>



-- 
Thanks,
V. Karthick

My Experience shared in : http://vkarthickeyan.wordpress.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread prasannatsmkumar
On Wed, Feb 8, 2012 at 4:15 PM, Manokaran K  wrote:

> On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves  >wrote:
>
> > hi,
> >
> > I maintain a server in a remote place. It is connected to a LAN - the
> > LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> > server. They have dynamic IP from bsnl. The machine the machine has a
> > fixed IP (192.168.1.123). The inward facing IP of the router is
> > 192.168.1.1. Is it possible to ssh into this machine from outside, and
> > if so how?
> >
>
> The following explains how to set up such a system. Instead of the first
> step, which updates dyndns, you can modify the script to send you an email
> whenever the IP address changes.
>
>
> http://www.dyndnscommunity.com/questions/426/how-do-i-access-my-device-from-outside-my-home-net.html
>
> I have not tried this. But I too am keen to know if this works.
>
> regds,
> mano
> ___
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>


run a script in the machine with dynamic ip. The script will write the new
ip address to the machine which has static ip. In the machine with static
ip, read the ip address and connect remotely to the machine. (This is what
dyndns is doing internally).
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread satyaakam goswami
On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves wrote:

> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?
>

yes using a dyndns kind of service this article explains it well
https://help.ubuntu.com/community/DynamicDNS
right now i am on dynamic ip we can test it , only part i will be missing
is the router , presently in my case you can directly also ssh using ip
address instead of coming through a third part service .


-Satya
fossevents.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread satyaakam goswami
On Wed, Feb 8, 2012 at 4:12 PM, Shrinivasan T wrote:

> On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves
>  wrote:
> > hi,
> >
> > I maintain a server in a remote place. It is connected to a LAN - the
> > LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> > server. They have dynamic IP from bsnl. The machine the machine has a
> > fixed IP (192.168.1.123). The inward facing IP of the router is
> > 192.168.1.1. Is it possible to ssh into this machine from outside, and
> > if so how?
>
> In the BSNL router, they have to port forward 22 port to the inner machine.
> check the site http://portforward.com for their model and guide on how
> to do port forward.
>

yes this will also work provided there is someone  around to tell us the
dynamic ip , i am presuming in my case we do not have anyone around to tell
us the dynamic ip address.

-Satya
fossevents.in
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Manokaran K
On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves wrote:

> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?
>

The following explains how to set up such a system. Instead of the first
step, which updates dyndns, you can modify the script to send you an email
whenever the IP address changes.

http://www.dyndnscommunity.com/questions/426/how-do-i-access-my-device-from-outside-my-home-net.html

I have not tried this. But I too am keen to know if this works.

regds,
mano
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread Shrinivasan T
On Wed, Feb 8, 2012 at 3:54 PM, kenneth gonsalves
 wrote:
> hi,
>
> I maintain a server in a remote place. It is connected to a LAN - the
> LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
> server. They have dynamic IP from bsnl. The machine the machine has a
> fixed IP (192.168.1.123). The inward facing IP of the router is
> 192.168.1.1. Is it possible to ssh into this machine from outside, and
> if so how?

In the BSNL router, they have to port forward 22 port to the inner machine.
check the site http://portforward.com for their model and guide on how
to do port forward.

-- 
Regards,
T.Shrinivasan


My Life with GNU/Linux : http://goinggnu.wordpress.com
Free/Open Source Jobs : http://fossjobs.in

Get CollabNet Subversion Edge :     http://www.collab.net/svnedge
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] remotely accessing a machine on a lan with dynamic IP

2012-02-08 Thread kenneth gonsalves
hi,

I maintain a server in a remote place. It is connected to a LAN - the
LAN is the usual poor man's LAN which uses the BSNL router as the dhcp
server. They have dynamic IP from bsnl. The machine the machine has a
fixed IP (192.168.1.123). The inward facing IP of the router is
192.168.1.1. Is it possible to ssh into this machine from outside, and
if so how?
-- 
regards
Kenneth Gonsalves

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc