redirect to 127.0.0.1
Posted: 19 Jan 2024, 06:35
Hello,
i have a service to run only to 127.0.0.1 (for example 127.0.0.1:25000)
and i want to reach from public ip.
i can't expose service on public ip directly.
so my goal is redirect port 25000 to 127.0.0.1:25000 and apply ruleset from csf.
i try to
nano /etc/csf/csf.redirect
w.x.y.z|25000|127.0.0.1|25000|tcp
but
Error: csf: Incorrect csf.redirect setting ([127.0.0.1]): [w.x.y.z|25000|127.0.0.1|25000|tcp], at line 3226
how i can do this?
thank you in advance
i have a service to run only to 127.0.0.1 (for example 127.0.0.1:25000)
and i want to reach from public ip.
i can't expose service on public ip directly.
so my goal is redirect port 25000 to 127.0.0.1:25000 and apply ruleset from csf.
i try to
nano /etc/csf/csf.redirect
w.x.y.z|25000|127.0.0.1|25000|tcp
but
Error: csf: Incorrect csf.redirect setting ([127.0.0.1]): [w.x.y.z|25000|127.0.0.1|25000|tcp], at line 3226
how i can do this?
thank you in advance