[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables kurallari



Merhaba,

On Thu, 2005-01-27 at 02:11 +0200, Emre Kadıoğlu wrote:
> komutunu giriyorum diğer makinalara internet paylaştırılıyor fakat port yönlendirme için
> www.netfilter.org adresindeki nat howto dan öğrendiğim
> iptables -A PREROUTING -t nat -p tcp -d 195.174.34.201 --dport 15100 -j DNAT --to 
> 192.168.0.25:15100
> komutunu çalıştırdığımda hiç bir şey olmuyor yani istenilen yönlendirmeyi yapamamış oluyorum.
> ayrıca howto da çok aradım bulabildiğim sadece port numaralarını el ile girmek oluyor yani port 
> aralığını vermek için ne yapabilirim? Bu komutta yanlış ve eksik olan ne var?

iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 15100 -j DNAT --to 192.168.0.25

> Ayrıca burda 195.174.34.201 adresi yerine eth1 aygıtını nasıl yerleştirebilirim -o eth1 şeklinde 
> denedim
> iptables v1.2.11: Can't use -o with PREROUTING
> hatasını aldım

-i (paketin geldigi Interface)

Ayrıca http://skyblue.gen.tr/blog/iptables.html

İyi eğlenceler,
-- 
Enver ALTIN                   |        http://skyblue.gen.tr/
Software developer @ Parkyeri |      http://www.parkyeri.com/

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: