Re: help me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



make the default policy of the incoming chain (input) drop, but allow established and related traffic, and allow all outgoing traffic by setting the default policy to allow for the output chain (although it's adviced to specify the outgoing traffic further..)

# drops all traffic
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD DROP

# allow established an related incoming traffic
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT


christoph


umar draz wrote:
hi dear members!

  i have one interface card in my linux machine <eth0>

  now i attache DSL modem with this interface now i
want block all incoming traffic.

but i want i can access every thing.

how i can do it

regards

Umar Draz

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


--


Christoph Georgi
-----------------------------
email.  christoph.georgi@xxxxxx
fon.	+64 (0)9 815 8259

registered linux user #380268
ubuntu 5.04 (ubuntu.com)


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux