> #!/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