From: Enver ALTIN (ealtin@parkyeri.com)
Date: Tue 28 Dec 2004 - 00:51:40 EET
Merhaba,
On Mon, 2004-12-27 at 13:12 -0800, fatih yilmaz wrote:
> iptables -t nat -A PREROUTING -s 192.168.1.1/255.255.255.0 -p tcp --dport 80 -j REDIRECT --to 3128
> iptables -t nat -A PREROUTING -s 192.168.1.1/255.255.255.0 -p tcp --dport 80 -j DNAT --to 127.0.0.1:3128
> iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Bunlari bosverin, ben size (Internet baglantinizin eth1 uzerinde
oldugunu varsayarak) dogrusunu yazayim:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -F
iptables -t nat -X
iptables -F
iptables -X
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j MASQUERADE
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp --dport 80 -j REDIRECT --to 3128
Bunlara bakarak hatanizi kendiniz bulabilirsiniz sanirim.
Iyi eglenceler,
-- Enver ALTIN | http://skyblue.gen.tr/ Software developer @ Parkyeri | http://www.parkyeri.com/
_______________________________________________
Linux-ag mailing list
Linux-ag@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-ag