This question already has an answer here:
System is Scientific Linux 7.2 with Mate Desktop. I am trying to copy an iptables-script from website https://www.pozzo-balbi.com/help/Iptables-script to a shell, which will create a file. It is the standard
cat > file << EOF bla, bla EOF
It is around 13kb of data and that seems to be the problem. The file saved is on 8kb big and
E.g. when I copy & pasting into the terminal I see errors like
> ipta > #iptables -A INPUT -i \$eth -f -j REJ
instead of correct
> iptables -A INPUT -i \$eth -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -m recent --name badguy --set -j DROP # NULL Packet > #iptables -A INPUT -i \$eth -f -j REJECT # block fragments - normally not legitimate traffic
So 1/3 of the pasted data somehow gets lost on the way.If I copy & paste only a few lines at a time, I don't get any problems. When copy & pasting into vi or the editor of mc, I also don't have problems. I normally copy over ssh to my server and I never had any problems. Only now copying locally I came across this problem.
Any hints greatly appreciated or is this a bug?