void
fw3_set_defaults(struct fw3_state *state)
{
- info("Setting sysctl values");
-
set_default("ecn", state->defaults.tcp_ecn);
set_default("syncookies", state->defaults.tcp_syncookies);
set_default("window_scaling", state->defaults.tcp_window_scaling);
if (ipset->external && *ipset->external)
return;
- info("Creating ipset %s", ipset->name);
+ info(" * Creating ipset %s", ipset->name);
first = true;
fw3_pr("create %s %s", ipset->name, methods[ipset->method]);
if (fw3_no_family(s))
{
- info("Deleting ipset %s", s->name);
+ info(" * Deleting ipset %s", s->name);
fw3_pr("flush %s\n", s->name);
fw3_pr("destroy %s\n", s->name);
if (!family_used(family) || !restore_pipe(family, true))
continue;
- info("Removing %s rules ...", fw3_flag_names[family]);
-
for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++)
{
if (!fw3_has_table(family == FW3_FAMILY_V6, fw3_flag_names[table]))
continue;
- info(" * %sing %s table",
- complete ? "Flush" : "Clear", fw3_flag_names[table]);
+ info(" * %sing %s %s table", complete ? "Flush" : "Clear",
+ fw3_flag_names[family], fw3_flag_names[table]);
fw3_pr("*%s\n", fw3_flag_names[table]);
if (complete && (ct = fopen("/proc/net/nf_conntrack", "w")) != NULL)
{
- info("Flushing conntrack table ...");
+ info(" * Flushing conntrack table ...");
fwrite("f\n", 2, 1, ct);
fclose(ct);
if (!family_loaded(state, family) || !restore_pipe(family, false))
continue;
- info("Constructing %s rules ...", fw3_flag_names[family]);
-
for (table = FW3_TABLE_FILTER; table <= FW3_TABLE_RAW; table++)
{
if (!fw3_has_table(family == FW3_FAMILY_V6, fw3_flag_names[table]))
continue;
- info(" * Populating %s table", fw3_flag_names[table]);
+ info(" * Populating %s %s table",
+ fw3_flag_names[family], fw3_flag_names[table]);
fw3_pr("*%s\n", fw3_flag_names[table]);
fw3_print_default_chains(table, family, state);