[linux-network] IPtables

---------

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

From: fatih avcu (fatih@stu.inonu.edu.tr)
Date: Wed 04 Sep 2002 - 10:19:27 EEST


redhat 7.3 yüklü bir bilgisayarda 1 ethernet kartı mevcut. bu tek ethernet
ile IPtables yardımıyla nasıl IP sharing yapabilirim. gerekli kurallar
nedir acama.
iptables -t nat -A POSTROUTING -d ! 192.168.0.0/255.255.255.255 -j MASQUERADE
satırını rc.local dosyasına yazsam teterlimi acaba.
suan aynı işi ipchains ile yapabiliyorum aşağıdaki satırlar gibi ama
sorunlarım var. IPtables kurmak istiyorum.

echo 1 >/proc/sys/net/ipv4/ip_forward
/sbin/ifconfig eth0:0 192.168.9.1 netmask 255.255.255.0 up
/sbin/route add -net 192.168.9.0 netmask 255.255.255.0 eth0:0
/sbin/ipchains -A forward -j MASQ -s 192.168.9.0/24 -d 0.0.0.0/0


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

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.