Решено: Вопрос про iptables (Вопрос про iptables)

Обсуждение настройки и работы сервисов, резервирования, сетевых настроек и вопросов безопасности ОС.

Модераторы: SLEDopit, Модераторы разделов

vini1979
Сообщения: 98
ОС: debian 4.0

Решено: Вопрос про iptables

Сообщение vini1979 »

Народ подскажите команды в iptables как посмотреть какие порты открыты и как посмотреть есть ли редерект к примеры на порт 8080 с сквида.
Я помнил эти команды теперь забыл напомните пожалуйста.
Спасибо сказали:
IMB
Сообщения: 2567
ОС: Debian

Re: Решено: Вопрос про iptables

Сообщение IMB »

man 8 iptables

-L, --list [chain] List all rules in the selected chain. If no chain is selected, all chains are listed. Like every other iptables command, it applies to the specified table (filter is the default), so NAT rules get listed by iptables -t nat -n -L Please note that it is often used with the -n option, in order to avoid long reverse DNS lookups. It is legal to specify the -Z (zero) option as well, in which case the chain(s) will be atomically listed and zeroed. The exact output is affected by the other arguments given. The exact rules are suppressed until you use iptables -L -v ............................................. -t, --table table This option specifies the packet matching table which the com‐ mand should operate on. If the kernel is configured with auto‐ matic module loading, an attempt will be made to load the appro‐ priate module for that table if it is not already there.

Спасибо сказали:
Аватара пользователя
mandreika
Сообщения: 217
ОС: Debian 3,4,5,6

Re: Решено: Вопрос про iptables

Сообщение mandreika »

iptables -t filter -A INPUT -j ACCEPT

к примеру откроет все порты

по этому iptables-save и внимательно читать каждую строчку

iptables-save|grep "8080" покажет есть ли редирект
Спасибо сказали: