You are not logged in.

#1 2016-02-07 13:45:16

echo.motd
Member
Registered: 2014-06-08
Posts: 20

How to test server from WAN?

I installed ssh, web and ftp server to a computer which is in the LAN of my ADSL router.
I configured iptables to accept the trafic.
I configured the ADSL router for port forwarding.

I can access to all servers on the LAN but I cannot access to it from WAN. I thought the ADSL router firewall blocks the access. After few tests, I had realised using a proxy server gives me the access from WAN to my web server in the LAN. I think all client computers in my LAN have not access from WAN to the servers. I do not understand why?

How to test the servers from WAN? And actually I still cannot access to the ssh server from WAN since the proxy server I use is a web site like https://www.proxysite.com/ for example.

Please advise.
Thanks

Offline

#2 2016-02-07 16:04:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,349

Re: How to test server from WAN?

My preferred method is to use a service like koding.com.  You can set up a virtual free (as in gratis) Linux shell environment.  From a terminal environment in browser, your browser you can ssh, curl and ftp back to your machine to your hearts content.
Other methods would be to USB tether a phone that is using your phone carrier's data to a computer that is in your location, but not on the LAN.

Do you have access to the router logs of the router?
What firmware is the router using? Is it OEM, DD-WRT, Tomato?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-02-07 16:52:31

echo.motd
Member
Registered: 2014-06-08
Posts: 20

Re: How to test server from WAN?

Hello ewaller,

I would prefer second solution.
I tried to set up my phone for personal hotspot without wifi, but smile since I have only edge at home I skipped it.

I do not have an access to the log files of my OEM router. I have got it from my ISP. I would like to change it.

As you mentioned DD-WRT and Tomato. How to know if it works with my ISP? I am looking forward to have DD-WRT or Tomato router but I do not know which one. And also in perspective if I change the ISP or I cange the service ADSL to SDSL for exmaple will it work?

Thank you

Offline

#4 2016-02-08 19:40:33

katsuki
Member
From: NY, USA
Registered: 2015-01-28
Posts: 26

Re: How to test server from WAN?

I'm going to go out on a limb and assume your ADSL router is using NAT.

Here is the problem (made up addresses):

Your local server (that is listening on 22 and 80) has an internal IP Address of 192.168.1.2 (as your router allocates the 192.168.1.0/24 address space for devices connected to it). Your router probably has an internally facing IP of 192.168.1.1. The externally facing IP of your router, however, is probably something like 69.44.55.121. So, when you try to access your server that is sitting behind your router, you have to talk to the 69.44.55.121 address, not the 192.168.1.2. The issue here is that your router isn't an SSH or Web server.

Provided you trust the security you have put in place on your server, you can set up port forwarding on your router. This generally requires either assigning a static IP address to your server or using static DHCP (basically, your router dedicates an IP Address to a specific MAC address so your device can continue to use DHCP without knowing it has a static IP; this is especially useful for laptops or devices that change networks regularly). Then, you assign the router to assign traffic on designate ports (such as TCP-80 for Web traffic) to route to that static IP Address.

Offline

#5 2016-02-10 19:08:35

echo.motd
Member
Registered: 2014-06-08
Posts: 20

Re: How to test server from WAN?

Hello katsuki,
I guess the network build the way that you cannot send data from router to router if it has the same IP address.
But it is possible using a LAN bicause there are differnt IPs.
Thanks

Offline

Board footer

Powered by FluxBB