Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blocking Incoming Traffic
#2

slight refinement..

 



Code:
# iptables -F INPUT
# iptables -A input -i lo -s 127.0.0.1/8 -d 127.0.0.1/8 -j ACCEPT
# iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
# iptables -A INPUT -j DROP




 

ensures that loopback is actually looping.. addition of RELATED state (for instance passive ftp, dcc connections) and DROP rather than REJECT. Drop throws them away, Reject responds.. always better to be non-existant instead of visible..

Reply


Messages In This Thread
Blocking Incoming Traffic - by jsn06 - 2005-09-29, 03:45 PM
Blocking Incoming Traffic - by znx - 2005-11-05, 04:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)