Bridge и iptable

Аватара пользователя
Dennis

Bridge и iptable

Сообщение Dennis »

Fedora core 1, натроил прозрачный шлюз, запускаю iptables и он ничего не фильтрует. С чем может быть связано?

Раньше юзал RH7.3 c ipchais и все работало.
Аватара пользователя
ruslandh

Re: Bridge и iptable

Сообщение ruslandh »

А что в iptables --list ?
Аватара пользователя
Dennis

Re: Bridge и iptable

Сообщение Dennis »

Дайте пожалуйста ссылку, у меня AltLinux.
Аватара пользователя
Dennis

Re: Bridge и iptable

Сообщение Dennis »

А в iptables - какие бы правила не писал, ставлю forward drop для всех или input drop, шлюз проходит насквозь ;-(



Может проблема в таблице route?



[s]Исправлено: Dennis, 16:45 17-03-2004[/s]
Аватара пользователя
Dennis

Re: Bridge и iptable

Сообщение Dennis »

Шлюз "прозрачный",

с одной стороны х.х.х.1 и все

с другой х.х.х.4 - х.х.х.254

Адреса менять не могу.
Аватара пользователя
ruslandh

Re: Bridge и iptable

Сообщение ruslandh »

А сам iptables - то запущен ?
Аватара пользователя
Dennis

Re: Bridge и iptable

Сообщение Dennis »

Разумеется.

ip forwarding включен.

Он не хочет работать в связке с мостом.

Чего еще нужно включить, чтобы пакеты шли через фильтр?
Аватара пользователя
ruslandh

Re: Bridge и iptable

Сообщение ruslandh »

Dennis

Вы опишите поподробне что и как Вы настроили - с логами, конфигами и т.д. а то не очень ясно что и почему у Вас не работает Изображение
Аватара пользователя
Dennis

Re: Bridge и iptable

Сообщение Dennis »

ip forwarding включен

мост:

brctl addbr br

brctl setbridgeprio br 0

brctl addif br eth0

brctl addif br eth2

ifconfig eth0 0.0.0.0

ifconfig eth2 0.0.0.0

ifconfig eth1 0.0.0.0

ifconfig eth3 0.0.0.0

ifconfig eth0 promisc

ifconfig eth2 promisc

brctl sethello br 1

brctl setmaxage br 4

brctl setfd br 4

brctl stp br off

ifconfig eth0 up

ifconfig eth2 up

ifconfig br 0.0.0.0 up

route add default br

route add default gw x.x.x.1



А в iptables, например, даю команды:

iptables -A FORWARD -j DROP

iptables -A INPUT -j DROP

- раньше в ipchais все блокировалось таким образом.

Почему не проходит в RH9 и в FC1?
Аватара пользователя
berkut_174

Re: Bridge и iptable

Сообщение berkut_174 »

Помогите пожалуйста, как установить это
http://sourceforge.net/projects/brid...ar.gz/download


Распаковал, а дальше не знаю что делать...

Вот это пробовал



Код:

Код: Выделить всё

./configure && make && make install

не помогает.



Вот ReadMe:




читать дальше »




This version of the bridge utilities is for Linux 2.4 and 2.6,

it uses the sysfs interface if possible on Linux 2.6.



The code repository is:

git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git



Advantages of the new code are:

- Support for multiple bridge port groups (i.e. multiple independent

bridges in one machine).

- Each bridge is seen as a logical device, which allows you to do

firewalling between port groups for example.

- Everything is dynamic; bridges are created dynamically using the

userspace configuration tool, ports are 'enslaved' dynamically, etc.

- It is being actively maintained.

- It uses a hash table for MAC addresses, not an AVL tree.

- It's small (currently 4 pages of i386 code) and modular.

- The source isn't a mess.

- It works as a module.





If you have any comments, questions or suggestions, please send email to

the mailing list [url=mailto:bridge@linux-foundation.org]bridge@linux-foundation.org[/url]

--------------------------



Files in this package:



AUTHORS Authors of this package



COPYING The GNU General Public License.



Makefile Recursive Makefile.



README This file.



brctl/ The userspace bridge configuration tool.



bridge-utils.spec

A .spec file for Red Hat package building. "rpm -tb

" ought to give you a .RPM file.



doc/ Some documentation files.



libbridge/ The bridge configuration interface library.



misc/ Miscellaneous utilities.
Ответить

Вернуться в «Общий по Linux»