LinuxForum.Fans
Тема

Забастовка ufw

Автор: Xela 7 сообщений 1459 просмотров
#167778

Ubuntu 10.10 (ядро 2.6.39.1), использую ufw (guwf), всегда программа работала стабильно, теперь же во включённом состоянии блокирует интернет намертво хотя существующие настройки сам давно не менял, параметры сети тоже неизменны. Сбрасываю конфигурацию - проблема сохраняется. Удалил, вычистил в системе все хвосты (за исключением значков Faenza), установил заново - всё по-прежнему, то есть интеренет лишь при отключении или же при разрешении всех входящих и исходящих. В общем вопрос прост: как вновь запустить и заставить работать?

#167802

выкинуть этот ufw куда подальше и настроить ручками. Специально писал http://linuxforum.ru/viewtopic.php?pid=176106#p176106
А так, вывод команды iptables -L -n -v когда нет интернета выложи.

#167808

Вот, пожалуйста:

Показать
Chain INPUT (policy DROP 568 packets, 44099 bytes)
pkts bytes target prot opt in out source destination
757K 882M ufw-before-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
757K 882M ufw-before-input all -- * * 0.0.0.0/0 0.0.0.0/0
757K 882M ufw-after-input all -- * * 0.0.0.0/0 0.0.0.0/0
757K 882M ufw-after-logging-input all -- * * 0.0.0.0/0 0.0.0.0/0
757K 882M ufw-reject-input all -- * * 0.0.0.0/0 0.0.0.0/0
757K 882M ufw-track-input all -- * * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ufw-before-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-before-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-after-logging-forward all -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ufw-reject-forward all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 163 packets, 8792 bytes)
pkts bytes target prot opt in out source destination
614K 186M Nanny all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-before-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-before-output all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-after-output all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-after-logging-output all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-reject-output all -- * * 0.0.0.0/0 0.0.0.0/0
599K 184M ufw-track-output all -- * * 0.0.0.0/0 0.0.0.0/0

Chain Nanny (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-logging-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-logging-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-logging-output (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-after-output (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-before-forward (1 references)
pkts bytes target prot opt in out source destination
0 0 ufw-user-forward all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-before-input (1 references)
pkts bytes target prot opt in out source destination
568 44099 ufw-user-input all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-before-logging-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-before-logging-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-before-logging-output (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-before-output (1 references)
pkts bytes target prot opt in out source destination
210 12442 ufw-user-output all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-logging-allow (0 references)
pkts bytes target prot opt in out source destination

Chain ufw-logging-deny (0 references)
pkts bytes target prot opt in out source destination

Chain ufw-reject-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-reject-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-reject-output (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-skip-to-policy-forward (0 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-skip-to-policy-input (0 references)
pkts bytes target prot opt in out source destination
0 0 DROP all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-skip-to-policy-output (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-track-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-track-output (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW
47 3650 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW

Chain ufw-user-forward (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-user-input (1 references)
pkts bytes target prot opt in out source destination

Chain ufw-user-limit (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG all -- * * 0.0.0.0/0 0.0.0.0/0 limit: avg 3/min burst 5 LOG flags 0 level 4 prefix `[UFW LIMIT BLOCK] '
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable

Chain ufw-user-limit-accept (0 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain ufw-user-logging-forward (0 references)
pkts bytes target prot opt in out source destination

Chain ufw-user-logging-input (0 references)
pkts bytes target prot opt in out source destination

Chain ufw-user-logging-output (0 references)
pkts bytes target prot opt in out source destination

Chain ufw-user-output (1 references)
pkts bytes target prot opt in out source destination
#167811
newzenon написал:
выкинуть этот ufw куда подальше и настроить ручками..

Так можно 9/10 системы выкинуть. Ufw - надстройка очень удобная. (а вот gufw уже считаю лишним)
Лень искать косяки - так переустановить систему и всё волшебным образом заработает! - это второй путь, аналогичный выкиданию ufw, ничем не хуже. :)

#167814
babay2004 написал:

Так можно 9/10 системы выкинуть. Ufw - надстройка очень удобная. (а вот gufw уже считаю лишним)
Лень искать косяки - так переустановить систему и всё волшебным образом заработает! - это второй путь, аналогичный выкиданию ufw, ничем не хуже. :)

babay2004 - для меня ufw приблуда не просто бесполезная, она мне мешать будет, потому как себе правила брандмауэра сам пишу.
И сравнение с переустановкой системы - нелепо.
Кстати время потраченное на изучение работы с ufw лучше потратить на изучение iptables - пользы больше будет, нужен простой firewall - ссылку уже дал - помочь настроить для чьих-то конкретных условий- пожалуйста - спрашивайте.

#167822

На ufw время? Да 5 минут. А на iptables? :)
Если есть задача: простой комп, всё снаружи закрыть, выпускать тока изнутри.
Правило пищется в iptables в 3 строки. В ufw - одна команда.
А потом чё-то открыть, поделать и закрыть... ???

Вопщем разные задачи требуют разных решений. И ufw где-то удобнее.

Я же не против десктопов полностью на жоских текстовых конфигах. Но тут стоит вспомнить вой по поводу Гнома-3 - отсутствие ГУИшных конфигурялок снесло мозг половине Ъ-сообщества. :)

#167823
babay2004 написал:

Я же не против десктопов полностью на жоских текстовых конфигах. Но тут стоит вспомнить вой по поводу Гнома-3 - отсутствие ГУИшных конфигурялок снесло мозг половине Ъ-сообщества. :)

Баба с возу, кобыле легче.

Войдите или зарегистрируйтесь, чтобы ответить.