csf.redirect for only specific IP address(es)

Post Reply
dandude
Junior Member
Posts: 2
Joined: 21 Apr 2022, 10:24

csf.redirect for only specific IP address(es)

Post by dandude »

Hi!

My server uses for instance 1.1.1.1 and I want to redirect port 60000 (1.1.1.1:60000) to another server's 2.2.2.2:3392 TCP port.
For this I put the following in csf.redirect:
1.1.1.1|60000|2.2.2.2|3392|tcp

My problem is that this opens TCP port 60000 from anywhere. It doesn't matter what is in csf.conf TCP-IN section (60000 isn't in it, but if a put !60000 it locks it for everyone, csf.allow doesn't matter), so using csf.allow doesn't matter here (that would be the best), it opens the port for everyone.

What is the solution here to only allow and redirect from 3.3.3.3?

Thanks,
Daniel
Post Reply