How to map csf ip ports
This article mainly explains "how to map csf ip ports". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "how to map csf ip ports"!
csf is based on iptables and does not support SNAT, other mappings are supported. I don't know if the latest version solves this problem. The configuration file/etc/csf.allow
1,DNAT
Usage: IPx| *| IPy| *| tcp/udp //IPX mapping IPY IPx| portA| IPy| portB| tcp/udp //IPX port portA mapped to ipY port portB Example: 192.168.254.62| *| 10.0.0.1| *| tcp 192.168.254.62| 666| 10.0.0.1| 25| tcp
2,REDIRECT
IPx|portA|*|portB|tcp/udp //IPX portA mapped to portB *| portA| *| portB| tcp/udp //portA maps to portB Example *| 666| *| 25| tcp 192.168.254.60| 666| *| 25| tcp 192.168.254.4| 666| *| 25| TCP to this point, I believe we have a deeper understanding of "how to map csf ip ports," may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!