Народ подскажите команды в iptables как посмотреть какие порты открыты и как посмотреть есть ли редерект к примеры на порт 8080 с сквида.
Я помнил эти команды теперь забыл напомните пожалуйста.
Решено: Вопрос про iptables (Вопрос про iptables)
Модераторы: SLEDopit, Модераторы разделов
-
IMB
- Сообщения: 2567
- ОС: Debian
Re: Решено: Вопрос про iptables
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
iptables -t filter -A INPUT -j ACCEPT
к примеру откроет все порты
по этому iptables-save и внимательно читать каждую строчку
iptables-save|grep "8080" покажет есть ли редирект
к примеру откроет все порты
по этому iptables-save и внимательно читать каждую строчку
iptables-save|grep "8080" покажет есть ли редирект