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: