REDIRECT a port in ip6tables

前端 未结 2 544
无人及你
无人及你 2021-02-13 00:37

How can I redirect one port to another local port by using ip6tables ? e.g. something like this : ip6tables -t nat -A PREROUTING -j REDIRECT -p tcp --dport 443 --to-ports 8443<

2条回答
  •  感动是毒
    2021-02-13 01:21

    ip6tables does not support REDIRECT. (Normally people use this in a NAT environment, and NAT is generally not supported with IPv6.)

    If all you need to do is bind to the low port as a normal user, why not try the workaround described in this answer? Of course, in the case of Tomcat, it sounds like this would mean giving any Java process that capability.

提交回复
热议问题