重新定向ip6tables中的端口

重新定向ip6tables中的端口

本文介绍了重新定向ip6tables中的端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用ip6tables将一个端口重定向到另一个本地端口?例如像这样的东西:ip6tables -t nat -A PREROUTING -j REDIRECT -p tcp --dport 443 --to-ports 8443

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

推荐答案

ip6tables不支持REDIRECT. (通常人们在NAT环境中使用此地址,而IPv6通常不支持NAT.)

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

如果您需要做的就是以普通用户身份绑定到低端端口,为什么不尝试使用?当然,对于Tomcat,这听起来意味着要向任何Java进程提供该功能.

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.

这篇关于重新定向ip6tables中的端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:54