Unable to add rule on Chain with 28 characters.

Jason Opperisano opie at 817west.com
Fri Jul 8 21:50:49 CEST 2005


On Fri, Jul 08, 2005 at 04:00:23PM -0300, Rafael Dreher wrote:
> Hi,
> 
> I'm trying do add a rule on a user-defined chain, on the NAT table, with 28 
> characters.

my guess is you're leaving out the '-t nat' as custom chains only exist
in the table they're created in:

  # iptables -t nat -N GqKOJUpUAOboDEbYcaVUCDqprFy
  # iptables -t nat -A GqKOJUpUAOboDEbYcaVUCDqprFy -j ACCEPT
  # iptables -t nat -A PREROUTING -j GqKOJUpUAOboDEbYcaVUCDqprFy
  # iptables -t nat -vnxL
  Chain GqKOJUpUAOboDEbYcaVUCDqprFy (1 references)
      pkts      bytes target     prot opt in     out     source
  destination
         1       78 ACCEPT     all  --  *      *       0.0.0.0/0
  0.0.0.0/0

  Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
      pkts      bytes target     prot opt in     out     source
  destination
         1       78 GqKOJUpUAOboDEbYcaVUCDqprFy  all  --  *      *
  0.0.0.0/0            0.0.0.0/0

  <--- snip --->

  # iptables -V && uname -r
  iptables v1.3.1
  2.6.11.4-21.7-default

i also tested this on:

  # iptables -V && uname -r
  iptables v1.2.11
  2.4.27-2-386

alas--i have no 2.4 + 1.3.1 combo i can test on; so i cannot say there
isn't some weird interaction between those two that causes your issue to
crop up.

-j

--
"Brian: Whose leg do I have to hump to get a dry martini around here?"
        --Family Guy



More information about the netfilter mailing list