[Linux] Re: ipchains - iptables

---------

New Message Reply About this list Date view Thread view Subject view Author view

From: Dogan Zorlu (doganzorlu@doganzorlu.com)
Date: Mon 01 Apr 2002 - 03:12:47 EEST


iptables i en basit haliyle su sekil kullanabilirsiniz ;

forwarding i acalim.

# echo 1 > /proc/sys/net/ipv4/ip_forward

bu 4 satır aski rule leri temizler, eğer bir rule yoksa gerekmez

# iptables --flush
# iptables --table nat --flush
# iptables --delete-chain
# iptables --table nat --delete-chain

asil is bu iki satırda. Masq ve forward acilir

# iptables --table nat --append POSTROUTING --out-interface ppp0 -j
MASQUERADE
# iptables --append FORWARD --in-interface eth0 -j ACCEPT

Bu kadar.

-----------------------------------------------------------------------
Liste üyeliğiniz ile ilgili her türlü işlem için
http://liste.linux.org.tr adresindeki web arayüzünü kullanabilirsiniz.

Listeden çıkmak için: 'linux-request@linux.org.tr' adresine,
"Konu" kısmında "unsubscribe" yazan bir e-posta gönderiniz.
-----------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.