Chain INPUT (policy ACCEPT)
target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination i deleted all rules now ho do i start from the begining :| |
Quote:
My script starts out like this: Code:
iptables -P INPUT DROP 2nd section: allows all established connections to go through 3rd section: allows local machine processes to talk to each other. This is very important. 4th section: is where you can specifically allow connections via port. This is not nearly all my script, but it should get you started. Don't place your script in the rc.local until you're sure it will work. You can just restart your box to regain access. Otherwise if you make a booboo you might not be able to access your system. |
All times are GMT -5. The time now is 08:47 AM. |