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


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Alexander Zinin                      2:5020/400     07 Dec 2003  21:36:48
 To : Andrew Filonov
 Subject : Re: natd  с того же интерфейса...
 -------------------------------------------------------------------------------- 
 
 Hello, Andrew!
 You wrote to Alexander Zinin on Sun, 7 Dec 2003 16:25:08 +0000 (UTC):
 
  AF>  man ipfw короче
 
 man, конечно, решает, но по нему сложно что-либо понять сразу.
 читаю, но не фига не понимаю ((
 вот пример:
 
      fwd | forward ipaddr[,port]
              [skipped]
              If ipaddr is not a local address, then the port number (if speci-
              fied) is ignored, and the packet will be forwarded to the remote
              address, using the route as found in the local routing table for
              that IP.
 
 gsp# ipfw show
 00099       0         0 fwd 192.168.1.2 ip from any to 192.168.1.1 dst-port 139
 00100  715301 492636632 divert 8668 ip from any to any via ed0
 00200 1051598 652676590 allow ip from any to any
 65535       1       333 deny ip from any to any
 gsp# telnet 192.168.1.2 139
 Trying 192.168.1.2...
 Connected to 192.168.1.2.
 Escape character is '^]'.
 dgffdgfdgfdgfdg
 Connection closed by foreign host.
 gsp# telnet 192.168.1.1 139
 Trying 192.168.1.1...
 telnet: connect to address 192.168.1.1: No route to host
 telnet: Unable to connect to remote host
 gsp# route get 192.168.1.2
    route to: 192.168.1.2
 destination: 192.168.1.2
   interface: rl0
       flags: <UP,HOST,DONE,LLINFO,WASCLONED>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
        0         0         0        82        40         0      1500       760
 gsp# route get 192.168.1.1
    route to: 192.168.1.1
 destination: 192.168.1.1
   interface: lo0
       flags: <UP,HOST,DONE,LLINFO,WASCLONED,LOCAL>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
        0         0         0         0         0         0      1500         0
 
 почему не работает, что нету маршрута до 192.168.1.2 ? (((
 fwd на локальную машину работает.
 
 With best regards, Alexander Zinin.  E-mail: zinin@comtv.ru
 
 --- ifmail v.2.15dev5.1
  * Origin: Comcor-TV (2:5020/400)
 
 

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

 Тема:    Автор:    Дата:  
 natd с того же интерфейса...   Alexander Zinin   07 Dec 2003 20:09:50 
 Re: natd с того же интерфейса...   Andrew Filonov   07 Dec 2003 20:25:08 
 Re: natd с того же интерфейса...   Alexander Zinin   07 Dec 2003 21:36:48 
 Re: natd с того же интерфейса...   Andrew Filonov   07 Dec 2003 21:51:00 
 Re: natd с того же интерфейса...   Alexander Zinin   08 Dec 2003 20:40:56 
 Re: natd с того же интерфейса...   Andrew Filonov   09 Dec 2003 11:24:45 
 natd с того же интерфейса...   Andrey Ostanovsky   07 Dec 2003 22:19:12 
 Re: natd с того же интерфейса...   Alexander Zinin   08 Dec 2003 00:29:18 
Архивное /ru.unix.bsd/659008375872.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional