Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Change in iptables syntax fails to load rule
Date: Fri, 29 Mar 2013 20:36:57
Message-Id: CAA2qdGXFjL_nr-6_Mp+mdZKdW+MfCPFBicFcLBNpSnkomB=ANw@mail.gmail.com
In Reply to: [gentoo-user] Change in iptables syntax fails to load rule by Mick
1 On Mar 30, 2013 2:54 AM, "Mick" <michaelkintzios@×××××.com> wrote:
2 >
3 > Hi All,
4 >
5 > A few months ago I got some errors about the match option in some iptables
6 > rules that I was running at the time. I modified these to remove match
7 and
8 > add conntrack and all went well.
9 >
10 >
11 > Now I am trying to run this:
12 >
13 > /sbin/iptables -t nat -A OUTPUT -v -p tcp --dport 1935 -j REDIRECT
14 >
15 > but it fails to load and it does not give me any particularly informative
16 > message:
17 >
18 > # /sbin/iptables -t nat -A OUTPUT -v -p tcp --dport 1935 -j REDIRECT
19 > REDIRECT tcp opt -- in * out * 0.0.0.0/0 -> 0.0.0.0/0 tcp dpt:1935
20 >
21 > # /sbin/iptables -L -v -n | grep 1935
22 > #
23 >
24 > Any idea how I should rewrite this rule? I was using it to redirect the
25 > output to rtmpsrv to capture the address of a rtmpe stream, but now it
26 does
27 > not work.
28 > --
29 > Regards,
30 > Mick
31
32 IIRC, iptables -L by default only dumps the "filter" table.
33
34 Just use iptables-save and pipe the result through less (more info there;
35 you can ensure that the rule gets inserted to the proper table and chain).
36
37 Rgds,
38 --

Replies

Subject Author
Re: [gentoo-user] Change in iptables syntax fails to load rule Mick <michaelkintzios@×××××.com>