linux - The -t option cannot be used in iptables-restore -
i got error when want restore iptables rules file.
iptables-restore v1.4.21: -t option (seen in line 5) cannot used in iptables-restore. error occurred @ line: 5 try `iptables-restore -h' or 'iptables-restore --help' more information.
there iptables:
*filter :input accept [0:0] :forward accept [0:0] :output accept [0:0] -t nat -a postrouting -o eth0 -j masquerade -a forward -i eth0 -o lxcbr0 -m state --state related,established -j accept -a forward -i lxcbr0 -o eth0 -j accept commit
i cannot without -t option.
i solved it:
*nat :prerouting accept [0:0] :input accept [0:0] :output accept [1:76] :postrouting accept [0:0] -a postrouting -o eth0 -j masquerade commit *filter :input accept [95:5492] :forward accept [0:0] :output accept [48:3648] -a forward -i eth0 -o lxcbr0 -m state --state related,established -j accept -a forward -i lxcbr0 -o eth0 -j accept commit
Comments
Post a Comment