Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Общий по FreeBSD (http://forum.oszone.net/forumdisplay.php?f=10)
-   -   Открытия портов! (http://forum.oszone.net/showthread.php?t=231588)

Ruslan19891989 29-03-2012 14:58 1889301

Открытия портов!
 
Вложений: 1
Не могу открыть порт 6969.
Подскажите пожалуйста где Я сделал ошибку!
Спасибо!

leonty 29-03-2012 15:13 1889320

ты издеваешься?! нафига вордоский документ прилепил?
почему ты решил что где-то допустил ошибку?

Ruslan19891989 29-03-2012 15:14 1889321

Потому что там не все введенные мною порты работают.
Не могу понять почему один работает а второй нет?

leonty 29-03-2012 15:16 1889324

с такой постановкой вопроса, можешь расчитывать толькой на флейм.

Ruslan19891989 29-03-2012 15:37 1889352

int_if="xl0"

ext_if_cheap="tun0"

icmp_types="{ echoreq, unreach}"

trusted_lan="192.168.0.0/24"

localnet="127.0.0.0/8"

nat on $ext_if_cheap from $servers to any -> ($ext_if_cheap)

nat on $ext_if_cheap from $trusted_lan to any port { 25 80 50160 22 110 443 519

0 8000 8080 465 9996 3128 4433 3084 6969 } -> ($ext_if_cheap)

nat on $ext_if_cheap from 192.168.0.203 to any -> ($ext_if_cheap)

nat on $ext_if_cheap from $trusted_lan to any port { 25 80 50160 22 110 443 519

0 8000 8080 465 9996 3128 4433 3084 6969 } -> ($ext_if_cheap)

nat on $ext_if_cheap from 192.168.0.203 to any -> ($ext_if_cheap)

rdr on $int_if proto tcp from $ext_if_cheap to ! 192.168.0.220 port http -> 192.

168.0.201 port 3128
pass out on $ext_if_cheap from $ext_if_cheap to any keep state

pass in log on $ext_if_cheap proto tcp from any to $ext_if_cheap port {25 53 501

60 80 110 2222 22 21 2121 8080 6969} keep state

pass in log on $ext_if_cheap proto udp from any to $ext_if_cheap port {53} keep
state

pass log inet proto icmp all icmp-type $icmp_types

ВОТ ПРОПИСАНЫ ПОРТЫ
nat on $ext_if_cheap from $trusted_lan to any port { 25 80 50160 22 110 443 519

0 8000 8080 465 9996 3128 4433 3084 6969 } -> ($ext_if_cheap)

nat on $ext_if_cheap from 192.168.0.203 to any -> ($ext_if_cheap)

nat on $ext_if_cheap from $trusted_lan to any port { 25 80 50160 22 110 443 519

0 8000 8080 465 9996 3128 4433 3084 6969 } -> ($ext_if_cheap)

nat on $ext_if_cheap from 192.168.0.203 to any -> ($ext_if_cheap)

И ВОТ ПРОПИСАНЫ ПОРТЫ

pass in log on $ext_if_cheap proto tcp from any to $ext_if_cheap port {25 53 501

60 80 110 2222 22 21 2121 8080 6969} keep state

ТОЛЬКО 110 25 53 22 РАБОТАЮТ А ВСЕ ОСТАЛЬНЫЕ НЕ РАБОТАЮТ.
В ЧЕМ ПРИЧИНА?
СПАСИБО!

leonty 29-03-2012 15:53 1889369

мда...
ты бы сам стал разбираться в таком сообщении?
пункт 2.3 Правил
Для выделения или постановки ударения на слово или фразу, используйте жирный шрифт или выделение цветом. Не используйте ЗАГЛАВНЫЕ буквы.

Для конфигов есть соответствующие теги.
Цитата:

Цитата Ruslan19891989
В ЧЕМ ПРИЧИНА? »

Причина в сервисе, который на них висит.


Время: 06:52.

Время: 06:52.
© OSzone.net 2001-