mxm1975
Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору djelektronik so, have a fun Цитата: It works(!) even in such configuration, look what I did: Host running natd: (internal interface 192.168.1.1/24) fxp0: flags=8843 mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 (external interface 212.110.138.1/28) fxp2: flags=8843 mtu 1500 inet 212.110.138.1 netmask 0xfffffff0 broadcast 212.110.138.15 # ipfw list 1 00001 divert 6666 tcp from any to any 80 00001 divert 6666 tcp from any 80 to any ** Note that there are no "via" keywords, otherwise it will not work. # natd -v -p 6666 -n fxp2 -u -redirect_port tcp 192.168.1.13:80 80 (telnet from 192.168.1.3 to 212.110.138.1:80) In [TCP] [TCP] 192.168.1.3:4138 -> 212.110.138.1:80 aliased to [TCP] 192.168.1.3:4138 -> 192.168.1.13:80 Out [TCP] [TCP] 192.168.1.3:4138 -> 192.168.1.13:80 aliased to [TCP] 212.110.138.1:4138 -> 192.168.1.13:80 (reply from 192.168.1.13:80) In [TCP] [TCP] 192.168.1.13:80 -> 212.110.138.1:4138 aliased to [TCP] 192.168.1.13:80 -> 192.168.1.3:4138 Out [TCP] [TCP] 192.168.1.13:80 -> 192.168.1.3:4138 aliased to [TCP] 212.110.138.1:80 -> 192.168.1.3:4138 (telnet from 212.110.138.4 to 212.110.138.1:80) In [TCP] [TCP] 212.110.138.4:49247 -> 212.110.138.1:80 aliased to [TCP] 212.110.138.4:49247 -> 192.168.1.13:80 Out [TCP] [TCP] 212.110.138.4:49247 -> 192.168.1.13:80 aliased to [TCP] 212.110.138.4:49247 -> 192.168.1.13:80 (reply from 192.168.1.13:80) In [TCP] [TCP] 192.168.1.13:80 -> 212.110.138.4:49247 aliased to [TCP] 192.168.1.13:80 -> 212.110.138.4:49247 Out [TCP] [TCP] 192.168.1.13:80 -> 212.110.138.4:49247 aliased to [TCP] 212.110.138.1:80 -> 212.110.138.4:49247 | | Всего записей: 279 | Зарегистр. 31-07-2002 | Отправлено: 21:02 02-06-2003 | Исправлено: mxm1975, 21:33 02-06-2003 |
|