[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: Mon 07 Oct 2002 - 18:39:04 EEST


 iptables -F
 iptables -F INPUT
 iptables -F OUTPUT
 iptables -F FORWARD
 iptables -F -t mangle
 iptables -X
 iptables -F -t nat
 
 echo 1 > /proc/sys/net/ipv4/ip_forward
 iptables -t nat -A POSTROUTING -s 192.168.9.0/24 -d 0/0 -j MASQUERADE
 
ile internet paylasimi yapabiliyorum. ama suan da ir ethernet kartina 5 ip
verdim ve 5 grubum var
192.168.0.0
192.168.6.0
192.168.2.0
192.168.7.0
192.168.9.0
gibi
hepsi 1 makinada ve hepsine IPtables ile paylaÃsim yapacagim

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -d 0/0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.6.0/24 -d 0/0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -d 0/0 -j MASQUERADE

þeklinde yazdim ama eth0:1 , eth0:2 gibi ethernete IP yerdim. bu eth lar
iptablesin neresine yazacagim..


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

---------

Bu arsiv hypermail 2b29 tarafindan uretilmistir.