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.0.0/255.255.255.0 -d 0/0 -j ACCEPT
iptables -t filter -A FORWARD -s 0/0 -d 192.168.0.0/255.255.255.0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.1/254 -d 0/0 -j MASQUERADE
modprobe ip_nat_ftp
modprobe ip_nat_irc
but fastest way is just
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.1/254 -d 0/0 -j MASQUERADE
:P
U?ytkownik "Peter Pohlmann" <pe...@e-partner.com> napisa3 w wiadomo?ci
news:C_NAa.3543$fj7.405555@news20.bellglobal.com...
--
Serwis Usenet w portalu Gazeta.pl -> http://www.gazeta.pl/usenet/