nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
rdr on $int_if proto tcp from any to any port 21 -> 127.0.0.1 \
port 8021
Sinan yazmış:
Arkadaşlar pf.conf un içeriği şu şekilde
******************
ext_if="le0"
ext_ip="{10.0.0.19 <http://10.0.0.19>, 10.0.0.20 <http://10.0.0.20>}"
scrub in all
pass quick on lo0 keep state
pass in quick on $ext_if inet proto tcp from any to $ext_ip port {22,
80, 21} keep state flags S/SA
pass in quick on $ext_if inet proto tcp from any to $ext_ip port = 53
keep state flags S/SA
pass in quick on $ext_if inet proto udp from any to $ext_ip port = 53
keep state
pass out log on $ext_if inet proto tcp from ($ext_if) port > 1023 \ to
any port ftp modulate state
pass out log on $ext_if inet proto tcp from ($ext_if) port > 1023 \ to
any port > 1023 modulate state
pass in log on $ext_if inet proto tcp from ($ext_if) port > 1023 \ to
any port > 1023 modulate state
pass in on $ext_if proto tcp from any to any port 21 keep state
pass in on $ext_if proto tcp from any to any port > 49151 \ keep state
pass out quick on $ext_if inet proto tcp all modulate state flags S/SA
pass out quick on $ext_if inet proto { udp, icmp } all keep state
block in quick all
block out quick all
****************************************************
ve /etc/inetd.conf 127.0.0.1:8021 <http://127.0.0.1:8021> stream
tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -t 300 -A -u
proxy bunu girdim fakat halen internet explorerdan erisilmiyor
ftp ye pass mode tarzı bir sorun var galiba sorunu cozemedim gitti :(....
--
Bâkır EMRE
EnderUNIX Core Team Member
http://www.enderunix.org
FreeBSD 6 kitabi: http://www.acikakademi.com/catalog/freebsd6
---------------------------------------------------------------------
Listeye soru sormadan once lutfen http://ipucu.enderunix.org sitesine bakiniz.
Cikmak icin, e-mail: [EMAIL PROTECTED]
Liste arsivi: http://news.gmane.org/gmane.org.user-groups.bsd.turkey