----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


If you're using Linux, you can restrict connections on particular ports
using the IP chains utility.  You'll have to build support for it into the
kernel, if it isn't already there (say 'yes' to CONFIG_FIREWALL and
CONFIG_IP_FIREWALL).

You would set up the IP chains rules as follows for your scenario:

# create the input chain
/sbin/ipchains -N eth-in
/sbin/ipchains -A input -i eth0 -j eth-in

# set the rules for the chain
# allow connections from localhost on port 1521 (the oracle listener)
/sbin/ipchains -A eth-in -j ACCEPT -p TCP -s 203.135.0.3 -d 203.135.0.3 
1521
# allow connections from 'test' (203.135.28.10) on port 1521
/sbin/ipchains -A eth-in -j ACCEPT -p TCP -s 203.135.28.10 -d 203.135.0.3 
1521

You may also have to (re)configure the Oracle listener to listen on
203.135.0.3 instead of just 127.0.0.1.

-Rob


On Tue, 20 Jun 2000, sajida kalsoom wrote:

> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
> 
> Hi user,
> 
>         I am using Oracle 8i (8.1.6) server and want to restrict user to
> connect with oracle server from a particular host through sql net .Is there
> any way to restrict connection from any host. e.g if oracle server is
> running on 203.135.0.3 then client say ' test ' is authorized to connect
> with server only from 203.135.28.10 machine. If some one knows way Please
> tell me.
> 
> regards
> sajida.
> 
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to