2005-09-29, 03:45 PM
You want to block all incoming network traffic, except from your system itself. Does not affect outgoing traffic.
For iptables:
# iptables -F INPUT
# iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
# iptables -A INPUT -j REJECT
For ipchains:
# ipchains -F input
# ipchains -A input -i lo -j ACCEPT
# ipchains -A input -p tcp --syn -j REJECT
# ipchains -A input -p udp --dport 0:1023 -j REJECT :P
johnny06