Results 1 to 2 of 2

Thread: iptables howto -c packet counter not numeric

  1. #1
    Join Date
    Jun 2016
    Beans
    2

    iptables howto -c packet counter not numeric

    I have recently installed Ubuntu 16.04 on my VPS and am trying to get iptables set up, but following the https://help.ubuntu.com/community/Ip...ished_Sessions, when I enter
    Code:
    iptables -A INPUT -m conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT
    I get the following error:
    Code:
    iptables v1.6.0: -c packet counter not numeric
    I've tried
    Code:
    iptables -Z
    but that's not working... Just below that I saw
    If the line above doesn't work, you may be on a castrated VPS whose provider has not made available the extension...
    so do I need to install an extension for conntrack?

    TIA

  2. #2
    Join Date
    Jun 2016
    Beans
    2

    Re: iptables howto -c packet counter not numeric

    Never mind, apparently adding a rule with
    Code:
    ... -m state -state ...
    initiated the counter. After a
    Code:
    iptables -F
    it works as stated.

    So the question now becomes: is there something I missed that would initialize the counter without having to do the above?

    TIA

Tags for this Thread

Bookmarks

Posting Permissions

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