xinetd и проклятый 3784

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

borin
Сообщения: 67

xinetd и проклятый 3784

Сообщение borin »

Пытаюсь настроить редирект порта через xinetd, у меня таким образом перекидывается порт для citrix, а вот для 3784 ну ни как.

Код: Выделить всё

sudo /usr/sbin/xinetd -d
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/CITRIX [file=/etc/xinetd.conf] [line=14]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/VENTRILO [file=/etc/xinetd.d/VENTRILO] [line=14]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/chargen [file=/etc/xinetd.d/chargen] [line=16]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/daytime [file=/etc/xinetd.d/daytime] [line=28]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/discard [file=/etc/xinetd.d/discard] [line=26]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/echo [file=/etc/xinetd.d/echo] [line=25]
08/10/31@15:34:01: DEBUG: 7203 {handle_includedir} Reading included configuration file: /etc/xinetd.d/time [file=/etc/xinetd.d/time] [line=26]
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing chargen
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing chargen
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing daytime
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing daytime
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing discard
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing discard
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing echo
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing echo
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing time
08/10/31@15:34:01: DEBUG: 7203 {remove_disabled_services} removing time
Service defaults
        Bind = All addresses.
        Only from: All sites
        No access: No blocked sites
        No logging

Service configuration: CITRIX
        id = CITRIX
        flags = IPv4
        type = UNLISTED
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        port = 1494
        wait = no
        user = 0
        Groups = no
        PER_SOURCE = -1
        Bind = All addresses.
        Redirect = 192.168.2.8:1494
        Only from: All sites
        No access: No blocked sites
        Logging to file: /var/log/redirect.log (no limits)
        Log_on_success flags = HOST DURATION USERID TRAFFIC
        Log_on_failure flags = HOST ATTEMPT USERID

Service configuration: ventrilo
        id = ventrilo
        flags = REUSE IPv4
        type = UNLISTED
        socket_type = stream
        Protocol (name,number) = (tcp,6)
        port = 3784
        wait = no
        user = 0
        Groups = no
        PER_SOURCE = -1
        Bind = All addresses.
        Redirect = 192.168.2.40:3784
        Only from: All sites
        No access: No blocked sites
        Logging to file: /var/log/redirect.log (no limits)
        Log_on_success flags = HOST DURATION USERID TRAFFIC
        Log_on_failure flags = HOST ATTEMPT USERID

08/10/31@15:34:02: DEBUG: 7203 {cnf_start_services} Started service: CITRIX
08/10/31@15:34:02: DEBUG: 7203 {cnf_start_services} Started service: ventrilo
08/10/31@15:34:02: DEBUG: 7203 {cnf_start_services} mask_max = 8, services_started = 2
08/10/31@15:34:02: NOTICE: 7203 {main} xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
08/10/31@15:34:02: NOTICE: 7203 {main} Started working: 2 available services
08/10/31@15:34:02: DEBUG: 7203 {main_loop} active_services = 2
08/10/31@15:35:53: NOTICE: 7203 {general_handler} Unexpected signal 2 (Interrupt)


Код: Выделить всё

service ventrilo
{
type                    = UNLISTED
flags                   = REUSE
socket_type             = stream
wait                    = no
server                  = /bin/false
protocol                = tcp
port                    = 3784
user                    = root
disable                 = no
redirect                = 192.168.2.40 3784
log_type                = FILE /var/log/redirect.log
log_on_success          += HOST DURATION USERID TRAFFIC USERID
log_on_failure          = HOST ATTEMPT USERID
}


Код: Выделить всё

 nmap 127.0.0.1

Starting Nmap 4.53 ( http://insecure.org ) at 2008-10-31 15:58 YEKT
Interesting ports on localhost (127.0.0.1):
Not shown: 1706 closed ports
PORT     STATE SERVICE
21/tcp   open  ftp
53/tcp   open  domain
80/tcp   open  http
953/tcp  open  rndc
1494/tcp open  citrix-ica
1723/tcp open  pptp
3306/tcp open  mysql
5555/tcp open  freeciv

Nmap done: 1 IP address (1 host up) scanned in 0.149 seconds


Пробовал в этом конфиге перенаправлять 3389 все нормально и в nmap 127.0.0.1 он светится, а вот 3784 ну ни как, мож кто что подскажет?
ubuntu 8.04 | Debian lenny
Спасибо сказали: