Skip to content

Iptables rules

kdhageman edited this page Apr 17, 2019 · 1 revision

In case hknd does not listen on the default HTTP(s) ports (i.e. 80 and 443), you can specify forwarding rules in iptables as follows for HTTP

sudo iptables -t nat -A PREROUTING -i <network interface> -p tcp -m tcp --dport 80 -j DNAT --to <ip address>:<port>

and HTTPS

sudo iptables -t nat -A PREROUTING -i <network interface> -p tcp -m tcp --dport 443 -j DNAT --to <ip address>:<port>
Clone this wiki locally