Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to clean up iptables?

    My iptables script is getting bloated, redundant, and there's code duplication everywhere, how can I clean it up?

    Use shell script functions?
    Develop it in a different language, like python?

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    The Keystone State
    How about using iptables-save and then edit this file to remove things that are no longer needed then load iptables using the supplied init script?

    Scripts are nice for setting up iptables but iptables should really be called from the supplied init script.


    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