On Wednesday 10 December 2008 08:07:39 Sebastian Tymków wrote:
> Hello,
>
> If you don't want to do this using server features you should do it in your
> program
> (like in config file).
>
> Best regards,
>
> Shamrock
>
> 2008/12/10 pugal pugal <[EMAIL PROTECTED]>
>
> > Hi all
> > I will explain the scenario clearly.
> >
> > 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 .
> >
> > I want to deny that Client by not using hosts.deny.
> >
> > For this scenario what can i do?? If anyone knows Let me explain clearly.
> > Since i am very new to this.please explain clearly.
> >
> > On Wed, Dec 10, 2008 at 3:43 PM, Odhiambo Washington <[EMAIL PROTECTED]
> >
> > >wrote:
> > >
> > >
> > >
> > > On Wed, Dec 10, 2008 at 12:44 PM, pugal pugal <[EMAIL PROTECTED]
> > >
> > >wrote:
> > >> Hi all
> > >> Did anyone knows how to deny the TCP connection Without using
> > >> hosts.deny and ipfilter.
> > >
> > > Let the "service" listen on 127.0.0.1 or just don't start it:-)
> > >
> > >
> > > --
> > > Best regards,
> > > Odhiambo WASHINGTON,
> > > Nairobi,KE
> > > +254733744121/+254722743223
> > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> > > "Okay guys. This is Kenya. You pay taxes because you feel
> > > philanthropic, unlike our MPs!"
> > >                     -- Kenneth Marende, Speaker, 10th Parilament.
> >
> > --
> > Thanks
> > With Regards
> > Pugal
> >  _______________________________________________
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "
> > [EMAIL PROTECTED]"
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

It seems you wrote the code, so you have the power. Just check the client's IP 
after accept()ing the connection. Then fork(), close(), etc...

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE)
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to