iptables: No chain/target/match by that name.

debian, linux, servers, tutorial

iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
iptables: Bad policy name. Run `dmesg’ for more information.
iptables: Bad policy name. Run `dmesg’ for more information.
iptables: Bad policy name. Run `dmesg’ for more information.

If this happens to you, maybe you have ^M at the end of each line because you copy and paste from windows, you can check it writing this on your terminal: cat -v yourfilename and if you have them, just add this line “dos2unix yourfilename” and they will disapear.

It took me a few forums to find this :-) here is the link thanks!

Source:
https://www.mail-archive.com/lugro@lugro.org.ar/msg30171.html