Well, the problem here in Asia, the ISP's are not giving public IP,
instead, they have NAT Router ouside somewhere in their office
premises, from there they are giving multiples of Ethernet connections
directly to each and every home (most of the people have one PC at home
for internet connection, ISP is hardcoding ip addr in their PC). Their
Router does NAT functinality, but whatever the ethrnet they are giving
to home is private static ip adress, but I can use one more router
inside my home and I can hardcode WAN ip addr as static ip addr into
router and I can use different subnet for my local LAN, where it
servers all internet and e-mail purposes (here my subnet is different
from their subnet on WAN). This way I have two Linux PC's on net. But
if I want to access anything from those PC's to different location
which is I have small office again with Router and multiple Linux PC's
(there I have cable modem and public IP addr on router's wan port and I
can do port forwarding to access any linux machine) , I can directly do
ssh from home to work machines which are on public IP addr and I
couldn't do anything viceversa since I don't have public ip addr at
home where I got this staic ip on wan port at home. (I don't have cable
modem service in res. area, which is available on work side)
Onething is, when I do ssh to work machines from home, it goes through
(this is my office at diff location with cable service with public ip
on my office router), there I can see incoming ssh session's ip address
as ISP's public ip address. also I did what is my ip addr at home, it
shows the same ip addr what I swa with ssh session to my work.
How can I connect these two sites together? or how can I access my home
machines from work?. Do I have to talk to my ISP at home to do port
forwarding. Thanks.
|