1. IMPORTANT - 11/13/2015: In light of a possible breach we have scrubbed all passwords. You will need to request a password reset through the site. Click here for more information.

how can i change iptables rule's line number?

Discussion in 'General Linux' started by linjieli, Oct 9, 2012.

  1. linjieli

    linjieli New Member

    Oct 7, 2012
    Likes Received:
    If I have a iptables rule it's line number is 2,like below:
    Chain INPUT (policy ACCEPT 4 packets, 614 bytes)
    num pkts bytes target port opt in out source destination
    1 0 0 ACCEPT all -- * * cstate RELATED,ESTABLISHED
    2 0 0 ACCEPT all -- * * state RELATED,ESTABLISHED
    Now I want to change the rule's line number is 2 to 1, how can I do that?


Share This Page