Should be simple using
iptables, as for example described in this post by Richard Fergie, but my device, a Synology DS115j (Running DSM 5.0) is not able to do so apparently:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables v1.4.21: can't initialize iptables table `nat': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
Do I need to use the
nat table at all for port forwarding? This is no gateway and do not want to forward to another device, only to another local port.
- My goal is to run a server on a non-privileged port to avoid having to run it as root.
- I know about
authbindbut these are not available on a Synology NAS (DSM5).
- Synology DS115j also does not support Docker.