[ SlackList ] [ WkikiSlack ]



Re: IPTABLES - mały lecz upierdliwy problem

From: Maciej Paszta <paszczi@go2.pl>
Date: Mon Apr 14 2003 - 07:36:55 CEST
[slacklist] Re: IPTABLES - mały lecz upierdliwy problem

> #!/bin/sh
> iptables -F -t nat
> iptables -X -t nat
> iptables -F -t filter
> iptables -X -t filter
>
> iptables -A INPUT -j DROP
> iptables -A FORWARD -j DROP
> iptables -A OUTPUT -j ACCEPT
>
> iptables -A INPUT -d 192.168.0.1  -j = ACCEPT
> iptables -A FORWARD -d 192.168.0.1  -j = ACCEPT
Oczywisccie, ze tracisz lacznosc. Dlatego, ze od razu = wywalasz wszystkie
pakiety.  I reszta reguklek jest pomijana. Zmien = kolejnosc albo zmien to:
iptables -P INPUT DROP. Wtedy DROP bedxzie wykonywany = po wszystkich innych
regulkach.
--
Maciek Paszta .::. paszczi@go2.pl .::. = JID:macp@jabber.gda.pl
gg: 2810043 .::. Linux User #304533 .::. BLUG Member = #0274
"The roots of education are bitter, but the = fruit is sweet."-Aristotle 

Received on Sat Feb 21 03:36:06 2004
This archive was generated by hypermail 2.1.8. Wyprawa Shackleton 2014