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.


2 posts

Wannabe Geek


Topic # 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
1453 posts

Uber Geek
+1 received by user: 177


  Reply # 1857942 4-Sep-2017 10:17
One person supports this post
Send private message

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

1176 posts

Uber Geek
+1 received by user: 262


  Reply # 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).

342 posts

Ultimate Geek
+1 received by user: 130

Subscriber

  Reply # 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.




2 posts

Wannabe Geek


  Reply # 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

 

 


263 posts

Ultimate Geek
+1 received by user: 50

Trusted
Emergency Management

  Reply # 1858217 4-Sep-2017 15:25
One person supports this post
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. 


1176 posts

Uber Geek
+1 received by user: 262


  Reply # 1858261 4-Sep-2017 16:14
2 people support this post
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

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07


All or Nothing: New Zealand All Blacks arrives on Amazon Prime Video
Posted 2-Jun-2018 16:21


Innovation Grant, High Tech Awards and new USA office for Kiwi tech company SwipedOn
Posted 1-Jun-2018 20:54


Commerce Commission warns Apple for misleading consumers about their rights
Posted 30-May-2018 13:15


IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41



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.

Alternatively, you can receive a daily email with Geekzone updates.