redirect to 127.0.0.1

Post Reply
ale-ab
Junior Member
Posts: 14
Joined: 17 Dec 2014, 22:25

redirect to 127.0.0.1

Post by ale-ab »

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
Post Reply