On Wed, 2016-06-29 at 10:49 -0700, Gordon Messmer wrote:
On 06/29/2016 03:00 AM, Leon Vergottini wrote:
#!/bin/bash
# RESET CURRENT RULE BASE iptables -F service iptables save
Why would you save the existing rule set? This script throws it away later, when it runs save again.
He flushes all the tables, then saves an empty iptables configuration. Later he adds to that empty iptables configuration.
Long-winded, but nothing wrong. Don't forget he is a learner (leerling) No person is perfect when starting to learn a new system.
Only by experimenting will one learn.