The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Перенаправление портов"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"Перенаправление портов" 
Сообщение от Town Искать по авторуВ закладки(ok) on 21-Июл-05, 23:18  (MSK)
Какими средствами можно в BSD сделать сделующее, перенаправить порт, т.е. клиент идет в инет по any_ip:4000 а нужно переделать в тот же any_ip:4010. Читал man natd.conf там такого нет. Подскажите.

Спасибо

  Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Индекс форумов | Темы | Пред. тема | След. тема
Сообщения по теме

1. "Перенаправление портов" 
Сообщение от llelik Искать по авторуВ закладки on 22-Июл-05, 00:12  (MSK)
>Какими средствами можно в BSD сделать сделующее, перенаправить порт, т.е. клиент идет
>в инет по any_ip:4000 а нужно переделать в тот же any_ip:4010.
>Читал man natd.conf там такого нет. Подскажите.
>
>Спасибо
man natd
-redirect_port proto targetIP:targetPORT[-targetPORT]
                 [aliasIP:]aliasPORT[-aliasPORT]
                 [remoteIP[:remotePORT[-remotePORT]]]
                 Redirect incoming connections arriving to given port(s) to
                 another host and port(s).  Argument proto is either tcp or
                 udp, targetIP is the desired target IP number, targetPORT is
                 the desired target port number or range, aliasPORT is the
                 requested port number or range, and aliasIP is the aliasing
                 address.  Arguments remoteIP and remotePORT can be used to
                 specify the connection more accurately if necessary.  The
                 targetPORT range and aliasPORT range need not be the same
                 numerically, but must have the same size.  If remotePORT is
                 not specified, it is assumed to be all ports.  If remotePORT
                 is specified, it must match the size of targetPORT, or be 0
                 (all ports).  For example, the argument

                       tcp inside1:telnet 6666

                 means that incoming TCP packets destined for port 6666 on
                 this machine will be sent to the telnet port on the inside1
                 machine.

                       tcp inside2:2300-2399 3300-3399

                 will redirect incoming connections on ports 3300-3399 to host
                 inside2, ports 2300-2399.  The mapping is 1:1 meaning port
                 3300 maps to 2300, 3301 maps to 2301, etc.

  Удалить Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх

2. "Перенаправление портов" 
Сообщение от Дениска Искать по авторуВ закладки(??) on 22-Июл-05, 09:04  (MSK)
>>Читал man natd.conf там такого нет. Подскажите.
там такое есть.
если не стоит nat (и не хочется его включать) можно воспользоваться rinetd  - прожка такая, делает как раз перенаправление портов.
  Удалить Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх

3. "Перенаправление портов" 
Сообщение от Town Искать по авторуВ закладки(??) on 22-Июл-05, 10:30  (MSK)
>>Какими средствами можно в BSD сделать сделующее, перенаправить порт, т.е. клиент идет
>>в инет по any_ip:4000 а нужно переделать в тот же any_ip:4010.
>>Читал man natd.conf там такого нет. Подскажите.
>>
>>Спасибо
>man natd
>-redirect_port proto targetIP:targetPORT[-targetPORT]
>            
>     [aliasIP:]aliasPORT[-aliasPORT]
>            
>     [remoteIP[:remotePORT[-remotePORT]]]
>            
>     Redirect incoming connections arriving to given
>port(s) to
>            
>     another host and port(s).  Argument
>proto is either tcp or
>            
>     udp, targetIP is the desired target
>IP number, targetPORT is
>            
>     the desired target port number or
>range, aliasPORT is the
>            
>     requested port number or range, and
>aliasIP is the aliasing
>            
>     address.  Arguments remoteIP and remotePORT
>can be used to
>            
>     specify the connection more accurately if
>necessary.  The
>            
>     targetPORT range and aliasPORT range need
>not be the same
>            
>     numerically, but must have the same
>size.  If remotePORT is
>            
>     not specified, it is assumed to
>be all ports.  If remotePORT
>            
>     is specified, it must match the
>size of targetPORT, or be 0
>            
>     (all ports).  For example, the
>argument
>
>            
>          
>tcp inside1:telnet 6666
>
>            
>     means that incoming TCP packets destined
>for port 6666 on
>            
>     this machine will be sent to
>the telnet port on the inside1
>            
>     machine.
>
>            
>          
>tcp inside2:2300-2399 3300-3399
>
>            
>     will redirect incoming connections on ports
>3300-3399 to host
>            
>     inside2, ports 2300-2399.  The mapping
>is 1:1 meaning port
>            
>     3300 maps to 2300, 3301 maps
>to 2301, etc.

это я читал. так я не знаю ip inside1,inside2 и в мане не сказано, что типа слово any означает ЛЮБЫЕ, как например в ipfw

  Удалить Правка | Высказать мнение | Ответить | Рекомендовать в FAQ | Cообщить модератору | Наверх


Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ]
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру