On Thursday 09 Feb 2006 8:42 am, Abhishek Daga wrote:
--- Manish Kathuria manish@tuxspace.com wrote:
Abhishek Daga wrote:
Hello folks, wondering if anyone has tried this and has worked for them? >
Need someone from the outside (remote location) to access a
*nix machine
here.
Setup is:
MTNL Triband (no static IP assigned to me.). Using Dlink DSL 502 router. LAN IP being 192.168.1.1. WAN IP is what the outsider would use to get in. Connected to Netgear Router. (WAN IP = 192.168.1.2, LAN IP = 192.168.0.1). Machines are connected to this netgear router as 192.168.0.X)
Earlier when I had Tataindicom broadband with a static IP, the only
configuration > > was required at the netgear router level where i did port
forwarding of the > > service to the desired machine.
The TATA router had a different interface and a bridge was enabled there. I do not see a similar option here with mtnl.
I tried to allow under advanced--filters, inbound access to the router IP (192.168.1.2) since this is the one connected to the mtnl dsl router.
It says ssh_exchange_identification: Connection closed by host. Telneting to same IP gets me to the mtnl router (linux box) with no worries.
Is it possible to ssh to any machine of mine with the current setup?
thanks! -abhi
There are two ways you can do this.
- Connect the MTNL DSL Router to a LAN port of your Netgear
Wireless Router. The Netgear Wireless Router will work as an Access Point. Your internal network would be 192.168.1.0/24 and the gateway would be 192.168.1.1 (i.e. the DLink Router). Now enable port forwarding for Port 22 from the DLink Router to the system you want to access through SSH.
- Alternatively, you can configure your DLink Router to work
in Bridge Mode. You can then connect the LAN interface of th DLink Router to the WAN Interface of the NetGear router. The NetGear Wireless router has PPPOE Dialer, configure it using the username and password provided by MTNL. Then enable Port Forwarding for Port 22 from the NetGear Wireless Router to the system you want to connect through SSH. Your existing network setup will remain unchanged.
Either of the methods should work. Let me know if you need more information.
--
Hi Manish, I tried #2 and it worked! well partially, but thanks anyways. So I could setup a bridge connection and via the PPPOE dialer of netgear router, get it all up and running. When I ssh into the public IP that triband alloted me, I can get through. It is slow though. However, when I log on to a remote server and try accessing the same public IP there is no response from the system. Ping works fine. The netgear router does have port forwarding enabled properly.
hope you dont mind if i ask you to trim quoted material before posting