[Linux-ag] IP tables

---------

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

From: mustafa ozturk (mustafaozturk82@yahoo.com)
Date: Thu 14 Jul 2005 - 12:16:14 EEST


    Firmamda bir win2000server ve slackware linux
kurulu.
Win de Muhasebe programım calisiyor.Linux la ise
yerelmail (qmail) ve internet
paylasımını kullanıyorum.
IP tables ile istedigim kullanıcılara nat
yaparak internete cıkarıyorum. Fakat bi
problemim var.
    Dısardan bazi kullanicilarin win2000 e RDP
ile baglanmalari gerekiyor.Bunu hangi nat kuralı
ile yapabilirim.

 Linux da
 eth0:192.168.16.1 (iç network)
 eth1:192.194.0.4 (ADSL networkü)
 
 win2000 ip 192.168.16.2

 IP tables kurallarım aşagıdaki gibi

iptables -t nat -A POSTROUTING -s 192.168.16.105 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.106 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.107 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.108 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.109 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.110 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.111 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.112 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.113 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.114 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.115 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.116 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.117 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.118 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.119 -o
eth1 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.16.120 -o
eth1 -j MASQUERADE

 
   Kolay Gelsin
www.netpro.com.tr

                
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
 

_______________________________________________
Linux-ag mailing list
Linux-ag@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-ag


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

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.