[ SlackList ] [ WkikiSlack ]



IPTABLES - ma³y lecz upierdliwy problem

From: Info IiE <iie1@wp.pl>
Date: Sun Apr 13 2003 - 20:52:02 CEST
[slacklist] IPTABLES - ma³y lecz upierdliwy problem

Witam, mam nastêpuj±cy problem:
£±czê siê z Internetem za po¶rednictwem = nata.
Internet <==192.168.0.1<==> firewall = 192.168.0.2.
W momencie jak uruchamiam poni¿szy skrypt na kompie = 192.168.0.2 tracê
³±czno¶æ ze 192.168.0.1 i Internetem. Na =
zadzia³aæ. Czy kto¶ mi mo¿e powiedzieæ =
momencie pope³ni³em b³±d ?
Z góry dziêki , Pozdro Kees
#!/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

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