I was trying to figure this out for the last 2 weeks, with little info posted on this, since I wanted IPv6 support, and ip6tables does not support redirect yet on raspberry pi.
It is the cleanest way I have found so far:
1. install privbind
sudo apt-get -y install privbind
2. Edit /etc/init.d/fhem or whatever startup script you are using for FHEM
You change the line:
perl fhem.pl fhem.cfg
To:
privbind -u fhem perl fhem.pl fhem.cfg
Why "privbind -u fhem.."? Because you tell it as who it should run. And normally fhem runs perl as fhem user, so it all stays just the way it should be.
3.Now you just change the port in config from 8083 or whatever to 80 or anything below 1024.
If you have any better ways or stories about this, feel free to share them below :)
Hi, you can also use apache as a proxy ;)
The fhem-related howtos seem all to be in german, so here's the documentation of the required command:
http://httpd.apache.org/docs/2.4/en/mod/mod_proxy.html#proxypass
The problem I found with proxies is that when the web updates, for you to see you must refresh (liek a dor closing, you would not se until a refresh), but that just may be my experience.
Well, I have been using it from the beginning and it works perfectly fine ;)