🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.freesco
Article #11180

Re: blokowanie portów

#11180
From: Kacper
Date: Wed, 23 Nov 2005 15:42
25 lines
1952 bytes
Użytkownik "news.tpi.pl" napisał :
>
> Zablokowałem porty na gadugady wszystkich wpisem w plok rc_user:
>
> ipfwadm -I -i deny -P tcp -S 192.168.1.0/24 -D any/0 443
> ipfwadm -I -i deny -P tcp -S 192.168.1.0/24 -D any/0 8074
>
>
> teraz chciałbym aby dwa kompy miały dostęp do GG np. 192.168.1.23 i 
> 192.168.1.45
>
> Jak zablokować wszystkim porty na GG z wyjątkiem dwóch użytkowników.

moim zdaniem w rc_user powinno byc tak:
ipfwadm -I -i deny -P tcp -S 192.168.1.0/24 -D any/0 443
ipfwadm -I -i deny -P tcp -S 192.168.1.0/24 -D any/0 8074
ipfwadm -I -i accept -P tcp -S 192.168.1.23/32 -D any/0 443
ipfwadm -I -i accept -P tcp -S 192.168.1.23/32 -D any/0 8074
ipfwadm -I -i accept -P tcp -S 192.168.1.45/32 -D any/0 443
ipfwadm -I -i accept -P tcp -S 192.168.1.45/32 -D any/0 8074
lub krocej:
ipfwadm -I -i deny -P tcp -S 192.168.1.0/24 -D any/0 443 8074
ipfwadm -I -i accept -P tcp -S 192.168.1.23/32 -D any/0 443 8074
ipfwadm -I -i accept -P tcp -S 192.168.1.45/32 -D any/0 443 8074 
Technical Details
Message-ID: <dm22ks$2cv$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
References: <dlus2a$i6a$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.gazeta.pl!not-for-mail
From: "Kacper" <kacper182_@gazeta.pl>
Newsgroups: alt.pl.freesco
Subject: Re: blokowanie portów
Date: Wed, 23 Nov 2005 16:42:24 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 27
Message-ID: <dm22ks$2cv$1@inews.gazeta.pl>
References: <dlus2a$i6a$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: xdsl-3068.lodz.dialog.net.pl
X-Trace: inews.gazeta.pl 1132760540 2463 84.40.204.252 (23 Nov 2005 15:42:20 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Wed, 23 Nov 2005 15:42:20 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-User: kacper182
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit