Lines Matching refs:runIptablesCmd
33 static int runIptablesCmd(const char *cmd) {
55 runIptablesCmd("-N oem_out");
56 runIptablesCmd("-D OUTPUT -j oem_out");
57 if (runIptablesCmd("-I OUTPUT -j oem_out"))
60 runIptablesCmd("-N oem_fwd");
61 runIptablesCmd("-D FORWARD -j oem_fwd");
62 if (runIptablesCmd("-I FORWARD -j oem_fwd"))
65 runIptablesCmd("-t nat -N oem_nat_pre");
66 runIptablesCmd("-t nat -D PREROUTING -j oem_nat_pre");
67 if (runIptablesCmd("-t nat -I PREROUTING -j oem_nat_pre"))
79 runIptablesCmd("-D OUTPUT -j oem_out");
80 runIptablesCmd("-F oem_out");
81 runIptablesCmd("-X oem_out");
83 runIptablesCmd("-D FORWARD -j oem_fwd");
84 runIptablesCmd("-F oem_fwd");
85 runIptablesCmd("-X oem_fwd");
87 runIptablesCmd("-t nat -D PREROUTING -j oem_nat_pre");
88 runIptablesCmd("-t nat -F oem_nat_pre");
89 runIptablesCmd("-t nat -X oem_nat_pre");