2 Mayıs 2010 Pazar

Lİnux'u Router gibi kullanmak

sysctl -w net.ipv4.ip_forward=1

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT -o eth0
¬ --to-source 144.122.30.1
Açılışta etkin olması için
/etc/rc.d/rc.local a ekleyiniz.

ftp routing için
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT -o eth0
¬ --to-source 144.122.30.1
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp

/etc/sysctl.conf dosyasında 0 1 olmalı.
Routingi aktif etmek # sysctl -p
Eğer Arp proxy kurmak isteniyorsa
/proc/sys/net/ipv4/conf/
örneğin eth0 ise içine girip proxy arp 1 yapılır

Hiç yorum yok:

Yorum Gönder

Not: Yalnızca bu blogun üyesi yorum gönderebilir.