logo       

Re: IPFW-NAT-FWD: msg#00089

org.user-groups.bsd.turkey

Subject: Re: IPFW-NAT-FWD

Merhaba,

bence bu kadar ugrasi yerin bir adet PF(Packet Filter ) kurun, hem siz rahat edin hem FreeBSD makineniz rahat etsin ;-). Kurallarini yazmak da bu kadar karmasik ve uzun surmez

2006/2/7, Abdullah OZTURK <abdullahozturk@xxxxxxxxxxxxxxx>:

Arkadaslar frebsd gonuldaslari   mail server a yonlendirme isini bir turlu cozemedim  4.3 de normal calisan conf  6.0 da  yukledim calismadi nat ve ipfwde conf larindan baska bir ayar mi var  acaba

 

Rc.conf

…..

firewall_enable="YES"

firewall_type="/etc/ipfw/ipfw.conf"

#firewall_script="/etc/rc.firewall"

firewall_quiet="NO"

firewall_logging_enable="YES"

natd_enable="YES"

natd_interface="fxp0"

natd_flags="-f /etc/ipfw/natd.conf"

…..

 

ipfw.conf

add 00020 divert 8668 ip from any to any via fxp0

add 00021 pipe 1 ip from any to 192.168.1.128/25 out via rl0

pipe 1 config bw 200kbit/s

add 00022 fwd 192.168.1.2,25  tcp from any to any 25 in recv fxp0

add 00023 fwd 192.168.1.2,110  tcp  from any to  any 110 in recv fxp0

…..

…..

 

natd.conf

 

use_sockets

same_ports

interface fxp0

redirect_port tcp 192.168.1.2:25 25

redirect_port tcp 192.168.1.2:110 110

dynamic

 

 

 




--
Huzeyfe ÖNAL  
---
First Turkish Qmail book is out! Go check it.
Duydunuz mu! Turkiye'nin ilk Qmail kitabi cikti.
http://www.acikakademi.com/catalog/qmail/
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise