Find the answer to your Linux question:
Results 1 to 9 of 9

Thread: IpTables errors

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    IpTables errors


    Can anyone tell me why this rule would spit out an error:

    /sbin/iptables -t nat -I PREROUTING -p tcp --dport 2525 -j REDIRECT --to-port 25
    iptables: No chain/target/match by that name

    This is a normal VPS server on Parallels connected directly to the net, but I'm not sure how to debug this one. The information I've seen elsewhere on the net doesn't seem to help either.

    I would give out more information, but I'm not sure what would help.

    Thanks,
    Yeshua

  2. #2
    Wait, the iptables version might help.

    iptables v1.3.8

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    Do you have NAT and PREROUTE setup?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  4. $spacer_open
    $spacer_close
  5. #4
    Not sure. How can I tell?

    Webmin shows them there, but NAT is blank w/ no rules.

  6. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    Which distro are you using?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  7. #6
    Linux hostname 2.6.9-023stab046.2-smp #1 SMP Mon Dec 10 15:04:55 MSK 2007 x86_64 x86_64 x86_64 GNU/Linux

    Fedora Core release 6 (Zod)

  8. #7
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    OK, Fedora is RH based and RH keeps it's firewall rules in /etc/sysconfig/iptables and see if there is a section towards the top with '*nat'.

    If you feel comfortable post this file so that I can take a look.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  9. #8
    Code:
    # Generated by webmin
    *filter
    :FORWARD ACCEPT [0:0]
    :INPUT ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A FORWARD -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A FORWARD -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    -A OUTPUT -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A INPUT -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    -A FORWARD -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A FORWARD -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    -A OUTPUT -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A INPUT -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    -A FORWARD -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A FORWARD -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    -A OUTPUT -o venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_OUT:
    -A INPUT -i venet0 -j LOG  --log-level 7 --log-prefix BANDWIDTH_IN:
    # iax
    -A INPUT -p udp -m udp -m multiport --ports 4569 -j ACCEPT
    COMMIT
    # Completed
    # Generated by webmin
    *mangle
    :FORWARD ACCEPT [0:0]
    :INPUT ACCEPT [0:0]
    :PREROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    COMMIT
    # Completed
    # Generated by webmin
    *nat
    :PREROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    COMMIT
    # Completed

  10. #9
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,798
    What's with all the duplicate entries?
    What's with 'venet0'?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •