|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.jwall.rbl.RblServer
public class RblServer
This class implements a very simple DNS server for running a real-time blackhole list. The server only responds to A records. Support for AAAA record queries is planned.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static Inet4Address |
BLOCKED_VALUE
|
org.slf4j.Logger |
log
|
static String[] |
PROPERTY_NAMES
These properties can be overwritten using system properties (command line) |
static String |
RBL_ADDRESS
|
static String |
RBL_ADMIN_PORT
|
static String |
RBL_DOMAIN
|
static String |
RBL_FILE
|
static String |
RBL_HOME
|
static String |
RBL_PERMISSIONS
|
static String |
RBL_PORT
|
static String |
VERSION
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
RblServer(InetAddress addr,
Integer port)
This method creates a new RBL server listening at the specified address on the given port. |
|
RblServer(Properties p)
Create a new RblServer with the provided set of properties. |
|
| Method Summary | |
|---|---|
void |
block(String address,
Integer ttl)
|
RBList |
getBlockList()
|
String |
getDomain()
|
RblSecurityManager |
getRblSecurityManager()
|
static void |
main(String[] args)
This is the server's main entry point. |
void |
run()
|
void |
setBlockList(RBList list)
Sets the block list for this server. |
void |
setRblSecurityManager(RblSecurityManager manager)
|
void |
shutdown()
This method is called upon server shutdown, e.g. by the VM's ShutdownHook. |
void |
unblock(String address)
|
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RBL_HOME
public static final String RBL_PORT
public static final String RBL_ADDRESS
public static final String RBL_ADMIN_PORT
public static final String RBL_FILE
public static final String RBL_DOMAIN
public static final String RBL_PERMISSIONS
public static final String[] PROPERTY_NAMES
public static Inet4Address BLOCKED_VALUE
public static final String VERSION
public org.slf4j.Logger log
| Constructor Detail |
|---|
public RblServer(Properties p)
throws Exception
p -
Exception
public RblServer(InetAddress addr,
Integer port)
throws Exception
addr - port -
Exception| Method Detail |
|---|
public void setRblSecurityManager(RblSecurityManager manager)
public RblSecurityManager getRblSecurityManager()
public void setBlockList(RBList list)
list - public RBList getBlockList()
public String getDomain()
public void block(String address,
Integer ttl)
public void unblock(String address)
public void run()
run in interface Runnablerun in class ThreadThread.run()public void shutdown()
public static void main(String[] args)
throws Exception
This is the server's main entry point. It will read the configuration
from ${RBL_HOME}/etc/jwall-rbld.conf if that file exists or
from a configuration file specified as first argument at the command
line.
args -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||