Merhaba,

/etc/iproute2/rt_tables dosyasının içinde ne var?


On Tue, May 14, 2013 at 4:35 AM, Ahmet Murat Turhanlı <
[email protected]> wrote:

> Merhaba Emre Bey;
>
> Linkte tarif edilen yöntemi denedim ancak iş görmedi. Örnek yapılandırmamı
> aşağıda paylaşıyorum;
>
> /etc/network/interfaces
>
> # The loopback network interface
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> #allow-hotplug eth2
> auto eth2
> iface eth2 inet static
>         address 213.xx.xxx.74
>         netmask 255.255.255.248
>         network 213.xx.xxx.72
>         broadcast 213.xx.xxx.79
> #       gateway 213.xx.xxx.73
>         # dns-* options are implemented by the resolvconf package, if
> installed
>         dns-nameservers 8.8.8.8
> #       dns-search berkossistem.com
>
>         post-up ip route add 213.xx.xxx.72/29 dev eth2 src 213.xx.xxx.74
> table SOL
>         post-up ip route add default via 213.xx.xxx.73 table SOL
>         post-up ip rule add from 213.xx.xxx.74 table SOL
>         post-down ip rule del from 213.xx.xxx.74 table SOL
>
> #allow-hotplug eth0
> auto eth0
> iface eth0 inet static
>         address 192.168.20.1
>         netmask 255.255.255.0
>         post-up iptables-restore < /etc/iptables.up.rules
>
> #allow-hotplug eth3
> auto eth3
> iface eth3 inet static
>         address 192.168.1.33
>         netmask 255.255.255.0
>
>         post-up ip route add 192.168.1.0/24 dev eth2 src 192.168.1.33
> table GDSL
>         post-up ip route add default via 192.168.1.1 table GDSL
>         post-up ip rule add from 192.168.1.33 table GDSL
>         post-down ip rule del from 192.168.1.33 table GDSL
>
> /etc/rc.local
>
> ip route add default scope global nexthop via 213.xx.xxx.73 dev eth2
> weight 1 nexthop via 192.168.1.1 dev eth3 weight 1
>
> /etc/iptables.up.rules
>
> -A POSTROUTING -o eth2 -j MASQUERADE
> -A POSTROUTING -o eth3 -j MASQUERADE
>
> -A PREROUTING -p tcp -m tcp -d 192.168.1.33/255.255.255.0 --dport 80 -j
> DNAT --to-destination 192.168.20.50:80
> -A PREROUTING -p tcp -m tcp -d 213.xx.xxx.74/255.255.255.248 --dport 80
> -j DNAT --to-destination 192.168.20.50:80
>
>
> _______________________________________________
> Linux-sunucu E-Posta Listesi
> [email protected]
>
> Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından
> okuyabilirsiniz;
>
> Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen
> e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1
> dakika içinde üyeliğinizi sonlandırabilirsiniz.
> https://liste.linux.org.tr/mailman/listinfo/linux-sunucu
>
>
_______________________________________________
Linux-sunucu E-Posta Listesi
[email protected]

Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından 
okuyabilirsiniz;

Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen 
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 
dakika içinde üyeliğinizi sonlandırabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux-sunucu

Cevap