🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #20840

Re: najprostszy pf.conf

#20840
From: bulba008
Date: Fri, 10 Apr 2009 14:16
45 lines
2568 bytes
>> ## MAKRA 
  ext_if = "bge0"
>> int_if = "bge1"
>> tcp_services = "{ 22, 25, 37, 52, 53, 80, 110, 113, 123, 143, 443, 
>> 5901, 6001 }"
>> udp_services = "{ 37, 53, 80, 110, 123 }"
>> icmp_types = "echoreq"
>> natone=int_if
>> privnets="{ 127.0.0.0/8, 192.168.1.0/24 }"
>> ## USTAWIENIA
>> set block-policy return
>> set loginterface $ext_if
>> set skip on lo
>> ## NATOWANIE
>> nat on $ext_if from $int_if to any -> $ext_if
>> nat-anchor "ftp-proxy/*"
>> ## PRZEKIEROWANIA
>> rdr-anchor "ftp-proxy/*"
>> rdr on $int_if proto tcp from any to any port 21 -> 127.0.0.1 port 8021
>> rdr on $int_if inet proto tcp from any to any port www -> 127.0.0.1 
>> port 3128
> ## FILTROWANIE
>> block in
>> pass out keep state
>> anchor "ftp-proxy/*"
>> antispoof quick for { lo $int_if }
>> pass in on $int_if inet proto tcp from any to 127.0.0.1 port 3128 keep 
    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 in on $ext_if inet proto tcp from any to $ext_if \
>    port $tcp_services flags S/SA keep state
>> pass in on $ext_if inet proto udp from any to $ext_if \
>>    port $udp_services keep state
>>
>> pass in inet proto icmp all icmp-type $icmp_types keep state
>> pass in quick on $int_if
>> pass out on $ext_if inet proto tcp from any to any port www keep state
>> pass quick on lo all

Problem jest juz tylko z dostepem do zew serwera ftp z komputerow w 
sieci lokalnej ale tylko w przypadku sesji przez przegladarke. Co do 
tego pf.conf jeszcze dopisac aby to chodzilo.
W przegladarce komunikat bledu jest taki:
Technical Details
Message-ID: <grnkem$ha7$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <gr3d4l$in4$1@news.onet.pl> <slrngtbe0a.1c7n.piotrek@pikachu.wsa.lublin.pl> <gr54f2$ff3$2@news.onet.pl> <grb2e8$bv6$1@news.onet.pl> <grddgm$n4h$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: bulba008 <bulba008@op.pl>
Newsgroups: pl.comp.os.bsd
Subject: Re: najprostszy pf.conf
Date: Fri, 10 Apr 2009 16:16:52 +0200
Organization: http://onet.pl
Lines: 46
Message-ID: <grnkem$ha7$1@news.onet.pl>
References: <gr3d4l$in4$1@news.onet.pl> <slrngtbe0a.1c7n.piotrek@pikachu.wsa.lublin.pl> <gr54f2$ff3$2@news.onet.pl> <grb2e8$bv6$1@news.onet.pl> <grddgm$n4h$1@news.onet.pl>
NNTP-Posting-Host: chello089076044061.chello.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1239373078 17735 89.76.44.61 (10 Apr 2009 14:17:58 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Fri, 10 Apr 2009 14:17:58 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
In-Reply-To: <grddgm$n4h$1@news.onet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit