Browse files

support -i and -o

  • Loading branch information...
1 parent 853b471 commit 542a5ef033a96b60296baf0426c72ab0e9477893 @pkrumins committed Apr 3, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 index.js
View
4 index.js
@@ -43,8 +43,10 @@ function iptablesArgs (rule) {
if (rule.protocol) args = args.concat(["-p", rule.protocol]);
if (rule.src) args = args.concat(["--src", rule.src]);
if (rule.dst) args = args.concat(["--dst", rule.dst]);
- if (rule.dport) args = args.concat(["--dport", rule.dport]);
if (rule.sport) args = args.concat(["--sport", rule.sport]);
+ if (rule.dport) args = args.concat(["--dport", rule.dport]);
+ if (rule.in) args = args.concat(["-i", rule.in]);
+ if (rule.out) args = args.concat(["-o", rule.out]);
if (rule.target) args = args.concat(["-j", rule.target]);
return args;

0 comments on commit 542a5ef

Please sign in to comment.