🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

pilne w2k serwer www i OpenBSD firewall

#419
From: Juliusz Papciak
Date: Mon, 05 Apr 2004 07:42
32 lines
1782 bytes
Witam grupowiczow
Prosze o pomoc w nastepującym temacie :
Chcę udostepnic serwer www na w2k pracujący w sieci lokalnej firmy za
firewall'em
adres ip np. 192.168.1.5
aby byl widziany z internetu
firewall: Packet Filter OS: OpenBSD 3.4
zewnetrzny NIC fxp1
wewnetrzny NIC fxp0
pf.conf do testu:
# macros
int_if = "fxp0"
ext_if = "fxp1"

# nat/rdr
nat on $ext_if inet from 192.168.1.0/24 to any -> ($ext_if)
rdr on $ext_if proto tcp from any to any port 80 -> 192.168.1.5 port 80

# filter rules

pass in all
pass out all

Moje proby polaczenia się z serwerem www na w2k przez internet nie udaly
sie.
Ciekawa rzecza dla mnie jest to ,że z drugim serwerem www w sieci lokalnej
postawiony na RH 7.2
to same przekierowanie dziala (oczywiscie ip z sieci lokalnej w regule rdr
sie zmienia ).

pozdrawiam
Juliusz Papciak
Technical Details
Message-ID: <c4r2q8$6k5$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Juliusz Papciak" <juli...@kuznia.com.pl>
Newsgroups: pl.comp.os.bsd
Subject: pilne w2k serwer www i OpenBSD firewall
Date: Mon, 5 Apr 2004 09:42:35 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 33
Message-ID: <c4r2q8$6k5$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: brama.kuznia.com.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1081151113 6789 213.25.144.181 (5 Apr 2004 07:45:13 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Mon, 5 Apr 2004 07:45:13 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit