Answer the question
In order to leave comments, you need to log in
Xinetd sees only part of the config, how to fix it?
Good day! Happy winter holidays everyone!
Actually the essence of the issue. There is a config for xinetd of the following form:
service redirect1
{
disable = no
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
port = 4461
redirect = 107.181.161.157 5025
user = nobody
}
service redirect2
{
disable = no
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
port = 4462
redirect = 107.181.161.157 5025
user = nobody
}
Answer the question
In order to leave comments, you need to log in
There is an opinion that this task should be solved using iptables
iptables -t nat -I PREROUTING --src $SRC_IP_MASK --dst $DST_IP -p tcp --dport $portNumber -j REDIRECT --to-ports $rediectPort
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question