ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] tc и iptables
@ 2006-10-02  8:32 Alex
  2006-10-02 14:03 ` Victor Forsyuk
  0 siblings, 1 reply; 3+ messages in thread
From: Alex @ 2006-10-02  8:32 UTC (permalink / raw)
  To: sisyphus

Здравствуйте!

Пытаюсь разобраться с IFB ( http://linux-net.osdl.org/index.php/IFB ) как вариант
замены используемого сейчас IMQ
Делаю из доки:
]# tc qdisc add dev eth0 ingress
]# tc filter add dev eth0 parent ffff: protocol ip prio 10 u32 \
>   match u32 0 0 flowid 1:1 \
>   action ipt -j MARK --set-mark 1  
/usr/local/lib/iptables/libipt_mark.so: cannot open shared object file: No such file
or directory failed to find target MARK

bad action parsing
parse_action: bad value (5:ipt)!
Illegal "action"
]#

]# rpm -qa |grep iptables
iptables-devel-1.3.5-alt4
iptables-1.3.5-alt4
iptables-ipv6-1.3.5-alt4
]# rpm -qa |grep iproute2
iproute2-2.6.16.20060323-alt1

Это бага нашей сборки или я что-то не так делаю?


Алекс.

В догонку: А есть где-нибудь описание tc filters....в lartc только u32 присутствует.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] tc и iptables
  2006-10-02  8:32 [sisyphus] tc и iptables Alex
@ 2006-10-02 14:03 ` Victor Forsyuk
  2006-10-02 14:07   ` Dmitry V. Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Forsyuk @ 2006-10-02 14:03 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

On Mon, Oct 02, 2006 at 12:32:10PM +0400, Alex wrote:
> Здравствуйте!
> 
> Пытаюсь разобраться с IFB ( http://linux-net.osdl.org/index.php/IFB ) как вариант
> замены используемого сейчас IMQ
> Делаю из доки:
> ]# tc qdisc add dev eth0 ingress
> ]# tc filter add dev eth0 parent ffff: protocol ip prio 10 u32 \
> >   match u32 0 0 flowid 1:1 \
> >   action ipt -j MARK --set-mark 1  
> /usr/local/lib/iptables/libipt_mark.so: cannot open shared object file: No such file
--^^^^^^^^^^^^^^^^^^^^^^^
Это неправильный каталог.


> or directory failed to find target MARK
> 
> bad action parsing
> parse_action: bad value (5:ipt)!
> Illegal "action"
> ]#
> 
> ]# rpm -qa |grep iptables
> iptables-devel-1.3.5-alt4
> iptables-1.3.5-alt4
> iptables-ipv6-1.3.5-alt4
> ]# rpm -qa |grep iproute2
> iproute2-2.6.16.20060323-alt1
> 
> Это бага нашей сборки или я что-то не так делаю?

Это из-за неправильного определения IPT_LIB_DIR в /usr/include/iptables.h.
Так что первоначальная бага в недопатченности сборки iptables-1.3.5-alt4.
Я могу сделать патчик для перекрытия IPT_LIB_DIR при сборке iproute2, но
правильнее исправить сборку iptables.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] tc и iptables
  2006-10-02 14:03 ` Victor Forsyuk
@ 2006-10-02 14:07   ` Dmitry V. Levin
  0 siblings, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2006-10-02 14:07 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 945 bytes --]

On Mon, Oct 02, 2006 at 05:03:37PM +0300, Victor Forsyuk wrote:
> On Mon, Oct 02, 2006 at 12:32:10PM +0400, Alex wrote:
> > Пытаюсь разобраться с IFB ( http://linux-net.osdl.org/index.php/IFB ) как вариант
> > замены используемого сейчас IMQ
> > Делаю из доки:
> > ]# tc qdisc add dev eth0 ingress
> > ]# tc filter add dev eth0 parent ffff: protocol ip prio 10 u32 \
> > >   match u32 0 0 flowid 1:1 \
> > >   action ipt -j MARK --set-mark 1  
> > /usr/local/lib/iptables/libipt_mark.so: cannot open shared object file: No such file
> --^^^^^^^^^^^^^^^^^^^^^^^
> Это неправильный каталог.
> 
[...]
> Это из-за неправильного определения IPT_LIB_DIR в /usr/include/iptables.h.

А также IP6T_LIB_DIR в ip6tables.h.

> Так что первоначальная бага в недопатченности сборки iptables-1.3.5-alt4.
> Я могу сделать патчик для перекрытия IPT_LIB_DIR при сборке iproute2, но
> правильнее исправить сборку iptables.

OK


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-02 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-02  8:32 [sisyphus] tc и iptables Alex
2006-10-02 14:03 ` Victor Forsyuk
2006-10-02 14:07   ` Dmitry V. Levin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git