From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 10:37:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CB761065673 for ; Wed, 10 Dec 2008 10:37:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 113F38FC1E for ; Wed, 10 Dec 2008 10:37:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LAMRC-000831-VD for freebsd-questions@freebsd.org; Wed, 10 Dec 2008 10:37:02 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2008 10:37:02 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Dec 2008 10:37:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Wed, 10 Dec 2008 11:36:53 +0100 Lines: 36 Message-ID: References: <991123400812100213p3b14ab83rbdc9798993fc19d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig476C0EC7A56870DDB42F2B36" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: Hi X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 10:37:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig476C0EC7A56870DDB42F2B36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable pugal pugal wrote: > Hi all > I will explain the scenario clearly. >=20 > I have a server program say server.c listening on some XXX port-number.= I > accepts all the client. > Now i want to DENY only the particular client say x.x.x.x/16 . It looks like you are writing a server, therefore you can check the addresses yourself if you don't want to use libwrap. It's easy to do. Either that, or read host_access(3), or use some other library from the ports that does the same thing. --------------enig476C0EC7A56870DDB42F2B36 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJP5vIldnAQVacBcgRAggRAJ9V7eSxSHeHkyQD+Co5rLUigN6bgACg+8Oc ZatP4eAS57CUO7gUdmtWGR8= =bb6y -----END PGP SIGNATURE----- --------------enig476C0EC7A56870DDB42F2B36--