[linux-network] Re: iptables

---------

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

From: Gürkan KARABATAK (gkarabatak@firat.edu.tr)
Date: Mon 07 Oct 2002 - 16:34:49 EEST


Selam
Ben tam olarak sorununu anlayamadim biraz daha açiklayabilirsen belki
yardimci olabiliriz.
----- Original Message -----
From: "fatih avcu" <fatih@stu.inonu.edu.tr>
To: <linux-network@linux.org.tr>
Sent: Monday, October 07, 2002 6:39 PM
Subject: [linux-network] iptables

>
>
> 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.