|
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) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/659008375872.html, оценка из 5, голосов 10
|