Getitng Vera to listen on different port behind existing router?

In an existing home network setup I have my router set up with Dynamic DNS and I forward port 80 to a web server and another port to my router itself for remote management.

I added Vera to the network with a fixed IP address and had to change the forwarding on the router for port 80 to vera in order to see the control interface. I set Vera’s firewall as off in Switch mode.

My router is a netgear and does allow me to change the port number in the forwarding, only to forward the same port to a different IP.

How do I effectively get Vera to listen on a different port for http? I looked into the Advanced network settings and the port forwarding there seemed like it should allow be to forward and change ports but I think the UI is broken as there’s no place to specify 2 port numbers even though the help/docs would suggest there is. If that worked then I could enable the firewall and Vera would forward the port to itself?

Am I going about this in the wrong way - I just want to access Vera from a specific (non “80”) port number behind my existing router.


This issue was discussed recently, try to find it.

It’s just my personal opinion, but if you need this kind of flexibility you’d better get a flexible router. It’s just plain easier…

Ah, I found this suggestion from cj:

Vera's main http server has to run on port 80 for to work. But you can start also another web server that will run on another port. Just Copy Paste this in your vera command line:

PORT=8080 #define it as your desired port

(cp /etc/lighttpd.conf /etc/lighttpd.conf.${PORT}) && (sed -i “s/#server.port = 81/server.port = ${PORT}/” /etc/lighttpd.conf.${PORT}) &&
(cat /etc/lighttpd.conf.${PORT} | grep -i server.port) && (lighttpd -f /etc/lighttpd.conf.${PORT})

Note: you’ll have to add this also to start up:
sed -ir “s/^}$/lighttpd -f /etc/lighttpd.conf.${PORT}\n}/” /etc/init.d/lighttpd

It works a treat!
Thank you cj