Author Topic: Port forwarding howtos  (Read 37817 times)

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Port forwarding howtos
« on: July 29, 2013, 02:15:01 pm »
Port forwarding from your router allows you to access your BlueSpray controller from any where on the internet.

Port forwarding is configured differently on different routers, but the idea is the same.  Your router has a public IP address.  BlueSpray controller (assumed to be on the network) has a private IP address.  The router blocks all direct requests to all of the devices in its network by default, but you can configure it to bypass it.

The idea is to open a port on the router's public interface that forwards  all requests to BlueSpray controller.  BlueSpray has a web server that listens to 4 ports: 80, 8000 (http) and 443, 8443 (https).  You don't want to use these ports on your router because you might need them to access your router.  You should use different port, for example, router:8080 -> controller:80 or router:8443 -> controller:443.  If your controller can only do port translation, you can use router:8000 to controller:8000 or router:8443 to controller:8443.  Note that you can also change these 2 ports (8000 and 8443) in Settings->System.

Port forwarding will fail at times if your controller's IP address is dynamic.  Since it it dynamic, it can change from time to time.  When it changes, the router will forward to the wrong IP address.  What you will need to do is reserve a fixed or static IP address for your controller.  Different routers has different ways to reserve IP address.  Please consult your router's User Manual for instructions on how to do it.

If you have any info about your particular router, please share it here.
« Last Edit: January 02, 2015, 07:33:51 pm by bluespray_admin »

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Port forwarding for openwrt
« Reply #1 on: July 29, 2013, 02:19:36 pm »
According to openwrt wiki:

http://wiki.openwrt.org/doc/howto/port.forwarding

Port forwarding can be done by editing the /etc/config/firewall file:

config redirect
   option name 'bluespray'
   option src 'wan'
   option proto 'tcp'
   option src_dport '8080'
   option target 'DNAT'
   option dest 'lan'
   option dest_ip '192.168.2.7'
   option dest_port '80'

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Port forwarding for Netgear
« Reply #2 on: July 29, 2013, 02:21:44 pm »
Here is a very good document on how to configure port forwarding on Netgear routers:

http://kb.netgear.com/app/answers/detail/a_id/20917/~/how-is-port-forwarding-configured%3F

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Port forwarding for Belkin routers
« Reply #3 on: July 29, 2013, 02:23:13 pm »
Instructions on port forwarding for Belkin routers:

http://en-us-support.belkin.com/app/answers/page/a_id/60

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Port forwarding for Linksys routers
« Reply #4 on: July 29, 2013, 02:24:52 pm »
From Linksys support site:

http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=21470

There are also instruction videos on Youtube as well.

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Re: Port forwarding for Verizon FIOS router
« Reply #5 on: May 13, 2014, 03:38:08 pm »
If you have a Verizon FIOS router, you'll need firmware 1.2.

1. In Settings->System, set HTTP and HTTPS ports.  Example: 8000 and 8443, but you can choose any other port not 80 and 443.
2. In your router, your port forwarding set up should look something like this:

BlueSpray IP address ->
    Destination Ports 8xxx
TCP Any -> 8xxx    All Broadband Devices    Active

Where 8xxx can be either 8000 or 8443 or other ports that you've set in (1) above.

For example. if your BlueSpray controller IP address is 192.168.1.100, then your rule should look something like this:

192.168.1.100:8000             HTTP                            All Broadband Devices                     Active
                                                  TCP Any ->8000

Or if you prefer https:

192.168.1.100:8443             HTTPS                            All Broadband Devices                     Active
                                                  TCP Any ->8443
« Last Edit: May 29, 2014, 05:18:22 pm by bluespray_admin »

bryanbrutus

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Port forwarding howtos
« Reply #6 on: June 03, 2014, 09:01:28 pm »
How do you set up the port forwarding for Bluespray on a Uverse 2 wire modem/router?

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Re: Port forwarding howtos
« Reply #7 on: June 04, 2014, 03:35:44 pm »
There is a good instruction discussion from AT&T itself here:

http://www.att.com/esupport/article.jsp?sid=KB413180&cv=812#fbid=8aVxa3-puXN

You'd input the IP address of BlueSpray controller as the host computer, use BlueSpray as application name,
from port is 8000 (up to you), end port same.  Map to host is 80, protocol is TCP.

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Re: Port forwarding howtos
« Reply #8 on: August 18, 2014, 10:46:33 pm »
Don't forget to set or reserve a static IP address for the controller.
On most routers, you can view attached devices, then select the device with the controller's IP address, and set the static IP address.

bluespray_admin

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 327
    • View Profile
Re: Port forwarding howtos
« Reply #9 on: January 02, 2015, 07:38:25 pm »
There is a very good instruction on how to do port forwarding for airport here:

http://www.macworld.com/article/2081139/how-to-set-up-port-forwarding.html

Remember, the port you'd want to use is 8000.  You'd also want to reserve an IP
address for your controller as mentioned on the bottom of the page.