REDIRECT a port in ip6tables

前端 未结 2 1045
遇见更好的自我
遇见更好的自我 2021-02-13 00:36

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:07

    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.

提交回复
热议问题