🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Przekierowanie pf filter

#21925
From: .>hedon
Date: Tue, 05 Apr 2011 08:21
31 lines
2074 bytes
Witam,

Chce przekierować ruch z localhosta serwera na zewnętrzny serwer.\

Mam coĹ› takiegow pf.conf:

ext_if = "xn0"
ext_ip = "xx.xx.xx.xx, 192.168.254.102"
int_if = "lo0"
int_ip = "127.0.0.1"

# Redirect mysql local host to remont host 192.168.254.101
rdr on $int_if inet proto tcp from any to any port 3306 ->
192.168.254.101 port 3306
# Redirect smpt local host to remont host 192.168.254.100
rdr on $int_if inet proto tcp from any to any port 25 ->
192.168.254.100 port 25


W pftop widzÄ™ coĹ› takiego:

PR        DIR SRC
DEST                                              STATE
AGE       EXP     PKTS    BYTES
tcp       In  127.0.0.1:55545
192.168.254.100:25                            CLOSED:SYN_SENT
00:00:19  00:00:23       10      692

I oczywiście nie działa może jakaś sugestia?

Pozdrawiam
Technical Details
Message-ID: <b12839a2-eb04-478f-95c5-04b3cd198feb@n12g2000yqc.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!news.osn.de!diablo2.news.osn.de!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!n12g2000yqc.googlegroups.com!not-for-mail

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!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!news.osn.de!diablo2.news.osn.de!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!n12g2000yqc.googlegroups.com!not-for-mail
From: ".>hedon" <c2n.rybicki@gmail.com>
Newsgroups: pl.comp.os.bsd
Subject: Przekierowanie pf filter
Date: Tue, 5 Apr 2011 01:21:27 -0700 (PDT)
Organization: http://groups.google.com
Lines: 31
Message-ID: <b12839a2-eb04-478f-95c5-04b3cd198feb@n12g2000yqc.googlegroups.com>
NNTP-Posting-Host: 87.205.218.43
Mime-Version: 1.0
X-Trace: posting.google.com 1301991687 1455 127.0.0.1 (5 Apr 2011 08:21:27 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 5 Apr 2011 08:21:27 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: n12g2000yqc.googlegroups.com; posting-host=87.205.218.43; posting-account=ERQIPgoAAABqYP0jtHjenolyTOYybnXd
User-Agent: G2/1.0
X-HTTP-Via: 1.1 w3cache (squid/3.1.1-20100428)
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit