Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


bormidVo

3 posts

Wannabe Geek


#222922 4-Sep-2017 10:02
Send private message

Hi

 

I am trying to open a port to a box on the intranet. I have got a static ip and I have set port forwarding on the Huawei HG659 router. Nmap only shows the router ports open. When try to access the test webserver it just times out. Is there anything else I need to consider?

 

 

 

 

 

 


Create new topic
tchart
2396 posts

Uber Geek
+1 received by user: 577

ID Verified
Trusted

  #1857942 4-Sep-2017 10:17
Send private message

Machine firewall? Ie check the firewall on your web server.



yitz
2238 posts

Uber Geek
+1 received by user: 594


  #1858061 4-Sep-2017 12:20
Send private message

You need to be testing from outside the NAT, if you are trying to access the server using your external IP from inside the NAT it will not work as HG659 does not loopback NAT (which your previous router may have).

djtOtago
1181 posts

Uber Geek
+1 received by user: 605


  #1858101 4-Sep-2017 13:33
Send private message

Port forwarding allows an outside machine to talk to an inside machine on the port you have opened.

 

It doesn't affect whether an inside machine can talk to an outside machine on that port. 

 

We may need a little bit more information on what you are trying to do.

 

If after opening the port, the outside machine still can't talk to the inside machine, check if the inside machine is running a firewall, which it should be, and does it allow traffic on the port number through.

 

Edit: Remove already answered question.




bormidVo

3 posts

Wannabe Geek


  #1858131 4-Sep-2017 13:59
Send private message

Thanks for all the quick replies. I will try to access from outside the network. Here is some more info:

 

nmap ivo.olu.nz

 

Starting Nmap 6.47 ( http://nmap.org ) at 2017-09-04 13:43 NZST
Nmap scan report for ivo.olu.nz (219.88.233.163)
Host is up (0.0022s latency).
Not shown: 996 filtered ports
PORT STATE SERVICE
53/tcp open domain
80/tcp open http
443/tcp open https
5060/tcp open sip

 

Nmap done: 1 IP address (1 host up) scanned in 5.39 seconds

 

Nmap correctly routes to the external ip address, the open ports belong only to the router. I am looking at port 8001.

 

There is a firewall, but it should be open in the right places, see INPUT rule with -->:

 

Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED
fail2ban-ssh2 tcp -- anywhere anywhere multiport dports 2223
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
fail2ban-ssh2 tcp -- anywhere anywhere multiport dports 2223
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh
--> ACCEPT tcp -- anywhere anywhere multiport dports ssh,http,2223,8000:http-alt
ACCEPT all -- 192.168.1.0/24 anywhere

 

Chain FORWARD (policy DROP)
target prot opt source destination
DOCKER all -- anywhere anywhere
ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED

 

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

 

 


ResponseMediaNZ
518 posts

Ultimate Geek
+1 received by user: 196

ID Verified
Trusted

  #1858217 4-Sep-2017 15:25
Send private message

Have you told the box to accept requests with the FDQN not just the IP?

 

Also whats the platform of the web-server? The more details about the environment the easier it is for us to help. 


yitz
2238 posts

Uber Geek
+1 received by user: 594


  #1858261 4-Sep-2017 16:14
Send private message

As above you are attempting to connect to your outside NAT address 219.88.x.x (your static IP) from your LAN this will not work for port forwarded/virtual servers unless you have set specific traffic forwarding and NAT rules which is not available on the HG659. This may have worked on your previous router if NAT loopback rules were enabled.

 

 

A workaround might be to point the (FQDN) hostname to the 192.168.x.x LAN IP of the server.

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.