LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables help (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-help-626112/)

nazrimy 03-06-2008 06:18 AM

iptables help
 
Hello.

Can someone help me. How to block all port using iptables and allow only accepted port like port 22, port 80. tq.

acid_kewpie 03-06-2008 06:21 AM

if you're as new to iptables as you sound, then don't use it. let a wrapper tool like firestarter or guarddog do the nasty stuff for you.

jschiwal 03-06-2008 06:31 AM

Some distro's have their own firewall configuration GUI programs where you can simply select the service you will be offering.

teek 03-06-2008 07:28 AM

Actually I'm also very new to iptables but I already spent a lot of time reading about it. A simple script which blocks everything but 22 and 80, perhaps with some explanation would be great!

acid_kewpie 03-06-2008 07:41 AM

well why not have a look for one...

http://wiki.linuxquestions.org/wiki/..._a_workstation


All times are GMT -5. The time now is 08:47 AM.