[ SlackList ] [ WkikiSlack ]



Re: problem z iptables

From: Czarek Kiczkaj³o <cezi@hq.ltd.pl>
Date: Sat Feb 08 2003 - 16:42:28 CET
[slacklist] Re: problem z iptables

Daj taki skrypt maskarady

#!/bin/sh
echo "1" > = /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -X -t nat
iptables -F -t filter
iptables -X -t filter
iptables -t filter -P FORWARD DROP
iptables -t filter -A FORWARD -s 192.168.100.0 -j = ACCEPT
iptables -t filter -A FORWARD -s 0/0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.100.2 -j = MASQUERADE

itd az do 12

modprobe ip_nat_ftp
modprobe ip_nat_irc

i juz

zapisz to jako rc.masq np daj prawa +x dodaj do = rc.local czy rc.M i juz


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