Question : xinetd

hi,

I'm new to xinetd, how can we create a local proxy to forward the request to another ip & port?
trying to implement: all tcp request from port 12345 should be forwarded to ip:10.200.200.200 port 50111

here's what I have

default
{
flags  = REUSE
socket_type = stream
wait = no
port = 12345
redirect = 10.200.200.200 50111
}




Cheers!

Answer : xinetd

You dont need to add the port to /etc/services, simply

# cat /etc/xinetd.d/fw-port12345
service fw-port12345
{
    type = UNLISTED
    port = 12345
    flags = REUSE
    socket_type = stream
    wait = no
    user = nobody
    redirect = 212.122.1.3 25
    per_source = UNLIMITED
    disable = no
    #only_from = 192.168.0.0 192.168.1.0
}
Random Solutions  
 
programming4us programming4us