Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Sergey Goryachev                     2:5020/400     15 Oct 2002  16:04:26
 To : Kolya Karpov
 Subject : Re: natd -redirect_port ?
 -------------------------------------------------------------------------------- 
 
 
 "Kolya Karpov" <kolja@mailbox.riga.lv> сообщил/сообщила в новостях
 следующее: news:gkSq9.43$a65.571@news.rt.ru!rt.ru...
 
 > Всем приветик!
 >
 > Hе подскажите следующее, а то я тут пол инета облазил - и так и не нашел
 
 :(
 
 > В rc.conf следущее:
 > natd_flags="-s -redirect_port udp 192.168.0.2:5060 5060
 >          -redirect_port tcp 192.168.0.2:5060 5060
 >         -redirect_port udp 192.168.0.2:7098 7098
 >         -redirect_port tcp 192.168.0.2:7098 7098
 >         -redirect_port udp 192.168.0.2:16500-60000 16500-60000
 >         -redirect_port udp 192.168.0.2:1900 1900
 >
 >         -redirect_port tcp 192.168.0.4:1412 1412
 >         -redirect_port tcp 192.168.0.4:4899 4899
 >         -redirect_port tcp 192.168.0.2:4900 4899"
 > Можно ли так, тоесть использовать несколько rediredc_port ?
 > Все отформатировано для удобства чтения, но есть подозрения что он так
 > неможет ничего понять.
 > Как более правильно так или так:
 > natd_flags="-s -redirect_port udp 192.168.0.3:5060 5060 -redirect_port udp
 > 192.168.0.3:7098 7098 -redirect_port tcp 192.168.0.4:1412
 > 1412 -redirect_port tcp 192.168.0.4:4899 4899 -redirect_port tcp
 > 192.168.0.3:5060 5060 -redirect_port udp 192.168.0.3:16500-60000
 > 16500-60000 -redirect_port udp 192.168.0.3:1900 1900"
 > ?
 м/б лучше все-же так?
 natd_flags="-f /etc/natd.conf"   в /etc/rc.conf
 
 ~% cat /etc/natd.conf
 same_ports yes
 use_sockets yes
 unregistered_only yes
 #redirect_port tcp 192.168.0.4:1521 11521
 redirect_port tcp 192.168.0.4:22 1222
 #punch_fw 10000:10
 ~%
 > И еще, можно ли писать так: -redirect_port 192.168.0.4:22,123,2224
 > 22,123,2224 ?
 > В манах про это ни слова.
 
 nop
 -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.
 -- 
 Отправлено через сервер Форумы@mail.ru - http://talk.mail.ru
 --- ifmail v.2.15dev5
  * Origin: Talk.Mail.Ru (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 natd -redirect_port ?   Kolya Karpov   15 Oct 2002 14:52:18 
 Re: natd -redirect_port ?   Sergey Goryachev   15 Oct 2002 16:04:26 
 Re: natd -redirect_port ?   Igor Goncharenko   15 Oct 2002 15:38:22 
 Re: natd -redirect_port ?   Andriy Gapon   15 Oct 2002 17:33:00 
 Re: natd -redirect_port ?   Oleg Koreshkov   15 Oct 2002 18:12:00 
 natd -redirect_port ?   Wadim Shkirmantov   15 Oct 2002 21:40:34 
Архивное /ru.unix.bsd/64884b9b1935.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional