How do I set up a firewall under Linux?
Answer:
In Linux, IPTables is the default firewall for kernels 2.4 and above.
IPTables is quite a complicated software which cannot be explained in just a few words, please refer to a more comprehensive howto:
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How do I set up a firewall under Linux?
Answer:
In Linux, IPTables is the default firewall for kernels 2.4 and above.
IPTables is quite a complicated software which cannot be explained in just a few words, please refer to a more comprehensive howto:
Ban a remote IP Address using iptables
Answer:
iptables -A INPUT -s IP -j DROP
Replace IP with the actual remote IP address.
Note that the blocking will be lost when server reboot. You would need to save the rule(s) into a script and reload when server reboot.