It is difficult to impossible to give you advice without you posting your rules. Keep in mind, order of your rules is important.
General advice:
- DROP is a poor choice, use REJECT. DROP is no more secure and in no way hides your IP address, the cracking tools are sophisticated enough to determine you are up at your IP address and DROP only then affects legitimate traffic.
Cracking tools are for the most part automated, rude, do not follow nettequate, and do not wait for acknowledgement or for the connection to time out. DROP does not slow them down in any way. crackers will run them in the background or overnight and review the output later, they usually play games while the tools are running.
See - http://www.chiark.greenend.org.uk/~peterb/network/drop-vs-reject
- Never set your default policy to DROP or REJECT. If you flush your rules you will lock yourself out.
Instead, keep your default policy as ACCEPT and add REJECT as the last rule in the chain.
- If you have a problem with a command, post the command you ran and output. either copy paste or use pastebinit
https://help.ubuntu.com/community/Pastebinit
See also http://bodhizazen.com/Tutorials/iptables
- Use iptables persistent to save your rules
iptables resets when server reboots
ufw
orfirewalld
which is much simpler to handle? – George Udosen Aug 15 '17 at 16:34