Results 1 to 3 of 3
Hi everybody...
I am a newbie to Linux and linux-iptables
I just tried the following:
iptables -F ...to flush the rules
iptables -A INPUT -d 59.95.24.233 -j DROP ...59.95.24.233 is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-03-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Is this correct??
Hi everybody...
I am a newbie to Linux and linux-iptables
I just tried the following:
iptables -F ...to flush the rules
iptables -A INPUT -d 59.95.24.233 -j DROP ...59.95.24.233 is my IP
iptables-save ...to save the rules
These three statements should ...as I suppose ...block all packets to my computer. I tried connecting to the internet and it does!!!
Whats wrong ...please explain me..
Thanx
- 03-03-2007 #2
If you want all your input packets to your system to be dropped...
1. Set your INPUT policy as DROPiptables -F
iptables -F -t nat
iptables -F -t mangle
2. Set your FORWARD policy as DROPiptables -P INPUT DROP
3. Set you OUTPUT policy as ACCEPTiptables -P FORWARD DROP
4. Allow only REALTED and ESTABLISHED PACKETS on your WAN interfaceiptables -P OUTPUT ACCEPT
5. Allow forward from WAN to LOCAL interfaceiptables -I INPUT -i <wanIF> -m --state REALTED, ESTABLISHED -j ALLOW
6. Allow all traffic from your loopback interface
There are just some examples. Try this out!iptables -A INPUT -i lo -j ACCEPT---------------------------------
Registered Linux User #440311
HI2ARUN _AT_ GMAIL _DOT_ COM
---------------------------------
- 03-03-2007 #3Just Joined!
- Join Date
- Feb 2007
- Posts
- 34
Originally Posted by cyberinstru
Right!! I'll try it out!! I will let u know if it works!
ThanX


Reply With Quote
