3 ms·
Although most of the pro-tips are good (in general), some look like put together without understanding... Especially this fragment got my attention: # Drop
by viraptor 17y ago
Although most of the pro-tips are good (in general), some look like put together without understanding... Especially this fragment got my attention:
# Drop sync
$IPT -A INPUT -i ${PUB_IF} -p tcp ! --syn -m state --state NEW -j DROP
# Drop Fragments
$IPT -A INPUT -i ${PUB_IF} -f -j DROP
1. First rule drops everything apart from SYN on unknown connection, so the comment is wrong.
2. Why would anyone drop fragmented packets? Good luck with people on strange / misconfigured links.
3. spoof ips looks very dodgy... why would anyone drop localhost?
4. (own rule) You should never ever follow anything that mentions "SSL" and "Type the following commands" without reading the openssl docs and understanding how certificates work.