Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.86 sec)
Easy IPtables starting script

I want to run IPtables but if I write my own long script it will probably be full of newbie mistakes.

Can you recommend any scripts that are a good place to start off ? Cheers.
Asked by:
Keith
432 points
 Report Abuse
 Share Page - Category: Server Firewalls - Tags: Easy IPtables starting script
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

Here is one I found on Google that has the most comments I have ever seen on a file:

http://oceanpark.com/notes/firewall_example.html

Be aware that the above was written to be run on Red Hat, look out for OS specific commands. Mostly should be fine.

Response by:
stevenrossuk
1325 points
If you are not familiar with scripts..

you can use "webmin" for your purpose

download it from "webmin.com"

Response by:
jalal
3623 points
In iptables u first drop all roules

then any port and ip to need open

iptable action ip port

Response by:
mohamad_kian
1548 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle