-
Notifications
You must be signed in to change notification settings - Fork 39
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>