fixed hopm, started moving services to redis
This commit is contained in:
parent
47acaa8c2d
commit
9bdc509069
@ -1,18 +1,15 @@
|
||||
module {
|
||||
name = "help";
|
||||
name = "help"
|
||||
}
|
||||
|
||||
module
|
||||
{
|
||||
name = "m_mysql"
|
||||
mysql
|
||||
name = "m_redis"
|
||||
redis
|
||||
{
|
||||
name = "mysql/main"
|
||||
database = "anope"
|
||||
server = "100.64.64.130"
|
||||
username = "root"
|
||||
password = ""
|
||||
port = 3306
|
||||
name = "redis/main"
|
||||
ip = "100.64.64.130"
|
||||
port = 6379
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ options
|
||||
retrywait = 60s;
|
||||
hideprivilegedcommands = yes;
|
||||
hideregisteredcommands = yes;
|
||||
languages = "de_DE.UTF-8 el_GR.UTF-8 es_ES.UTF-8 fr_FR.UTF-8 hu_HU.UTF-8 it_IT.UTF-8 nl_NL.UTF-8 pt_PT.UTF-8";
|
||||
|
||||
}
|
||||
|
||||
include
|
||||
@ -163,8 +163,8 @@ log
|
||||
channels = "~mode *";
|
||||
users = "oper";
|
||||
other = "*";
|
||||
rawio = no;
|
||||
debug = no;
|
||||
rawio = yes;
|
||||
debug = yes;
|
||||
}
|
||||
|
||||
log
|
||||
@ -262,12 +262,11 @@ mail
|
||||
%t";
|
||||
}
|
||||
|
||||
|
||||
module
|
||||
{
|
||||
name = "db_sql_live";
|
||||
engine = "mysql/main";
|
||||
prefix = "anope_db_";
|
||||
import = false;
|
||||
name = "db_redis";
|
||||
engine = "redis/main";
|
||||
}
|
||||
|
||||
module {
|
||||
|
@ -3,38 +3,31 @@
|
||||
*/
|
||||
|
||||
options {
|
||||
pidfile = "var/run/hopm.pid";
|
||||
pidfile = "/dev/shm/hopm.pid";
|
||||
command_queue_size = 64;
|
||||
command_interval = 10 seconds;
|
||||
command_timeout = 180 seconds;
|
||||
# negcache = 1 hour;
|
||||
negcache_rebuild = 12 hours;
|
||||
dns_fdlimit = 102400;
|
||||
dns_timeout = 5 seconds;
|
||||
# scanlog = "var/log/scan.log";
|
||||
};
|
||||
|
||||
irc {
|
||||
# vhost = "0.0.0.0";
|
||||
nick = "SCANNER";
|
||||
realname = "n3tw3rk 1ns3cur1ty c0rp pr0xy sc4nn3r";
|
||||
username = "sc4nn3r";
|
||||
server = "irc.example.org";
|
||||
password = "password";
|
||||
server = "100.64.64.66";
|
||||
port = 6667;
|
||||
tls = no;
|
||||
# rsa_private_key_file = "etc/rsa.key";
|
||||
# tls_certificate_file = "etc/cert.pem";
|
||||
tls_hostname_verification = yes;
|
||||
readtimeout = 15 minutes;
|
||||
reconnectinterval = 30 seconds;
|
||||
# nickserv = "NS IDENTIFY password";
|
||||
oper = "hopm operpass";
|
||||
nickserv = "NS IDENTIFY password";
|
||||
oper = "hopm password";
|
||||
mode = "+c";
|
||||
away = "go privmsg someone else";
|
||||
channel {
|
||||
name = "#hopm";
|
||||
# key = "somekey";
|
||||
invite = "CS INVITE #hopm";
|
||||
};
|
||||
|
||||
@ -98,10 +91,6 @@ opm {
|
||||
|
||||
kline = "KLINE 180 *@%i :TOR exit node found";
|
||||
};
|
||||
# dnsbl_from = "mybopm@myserver.org";
|
||||
# dnsbl_to = "bopm-report@dronebl.org";
|
||||
# sendmail = "/usr/sbin/sendmail";
|
||||
|
||||
};
|
||||
|
||||
scanner {
|
||||
@ -111,17 +100,12 @@ scanner {
|
||||
protocol = HTTP:8080;
|
||||
protocol = HTTP:3128;
|
||||
protocol = HTTP:6588;
|
||||
# protocol = HTTPS:443;
|
||||
# protocol = HTTPS:8443;
|
||||
protocol = SOCKS4:1080;
|
||||
protocol = SOCKS5:1080;
|
||||
protocol = ROUTER:23;
|
||||
protocol = WINGATE:23;
|
||||
protocol = DREAMBOX:23;
|
||||
protocol = HTTPPOST:80;
|
||||
# protocol = HTTPSPOST:443;
|
||||
# protocol = HTTPSPOST:8443;
|
||||
# vhost = "127.0.0.1";
|
||||
fd = 102400;
|
||||
max_read = 4 kbytes;
|
||||
timeout = 30 seconds;
|
||||
@ -195,12 +179,11 @@ scanner {
|
||||
};
|
||||
|
||||
user {
|
||||
mask = "*!*@*";
|
||||
mask = "*!*@";
|
||||
scanner = "default";
|
||||
};
|
||||
|
||||
user {
|
||||
# mask = "*!~*@*";
|
||||
mask = "*!squid@*";
|
||||
mask = "*!nobody@*";
|
||||
mask = "*!www-data@*";
|
||||
@ -215,4 +198,6 @@ user {
|
||||
|
||||
exempt {
|
||||
mask = "*!*@127.0.0.1";
|
||||
mask = "*!*@*.n3tw3rk.1ns3cur1ty.c0rp";
|
||||
mask = "*!*@100.64.0.0/17";
|
||||
};
|
||||
|
@ -12,6 +12,14 @@ auth {
|
||||
xline_exempt, resv_exempt, can_flood, no_tilde;
|
||||
};
|
||||
|
||||
auth {
|
||||
spoof = "h0pm.n3tw3rk.1ns3cur1ty.c0rp";
|
||||
user = "*@100.64.64.67";
|
||||
class = "hopm_scanner";
|
||||
flags = need_password, exceed_limit, kline_exempt,
|
||||
xline_exempt, resv_exempt, can_flood, no_tilde;
|
||||
};
|
||||
|
||||
auth {
|
||||
spoof = "c0ns0l3.n3tw3rk.1ns3cur1ty.c0rp";
|
||||
user = "*@*";
|
||||
|
@ -24,6 +24,17 @@ class {
|
||||
max_idle = 1000 years;
|
||||
};
|
||||
|
||||
class {
|
||||
name = "hopm_scanner";
|
||||
ping_time = 2 seconds;
|
||||
number_per_ip_local = 1;
|
||||
max_number = 10240;
|
||||
sendq = 1 megabyte;
|
||||
max_channels = 60;
|
||||
max_idle = 1000 years;
|
||||
};
|
||||
|
||||
|
||||
class {
|
||||
name = "tor_edge_hub";
|
||||
ping_time = 2 seconds;
|
||||
|
@ -107,6 +107,8 @@ connect {
|
||||
};
|
||||
|
||||
listen {
|
||||
host = "100.64.64.66"; # HOPM
|
||||
port = 6667;
|
||||
host = "100.64.64.42"; # Oper bouncer
|
||||
port = 6666;
|
||||
host = "100.64.64.50"; # Console
|
||||
|
@ -13,4 +13,5 @@ exempt {
|
||||
ip = "100.64.64.40/29";
|
||||
ip = "100.64.64.48/29";
|
||||
ip = "100.64.64.56/29";
|
||||
ip = "100.64.64.64/29";
|
||||
};
|
@ -16,6 +16,19 @@ operator {
|
||||
kline, module, rehash, restart, set, unkline, unxline, xline;
|
||||
};
|
||||
|
||||
operator {
|
||||
name = "hopm";
|
||||
user = "*@h0pm.n3tw3rk.1ns3cur1ty.c0rp";
|
||||
password = "password";
|
||||
whois = "I'm too lame to read BitchX.doc";
|
||||
class = "hopm_scanner";
|
||||
encrypted = no;
|
||||
umodes = locops, servnotice, wallop, softcallerid, hidden,
|
||||
invisible, external, debug, rej, skill, hideidle,
|
||||
wallop, expiration;
|
||||
flags = admin, connect, connect:remote, die, globops, kill, kill:remote,
|
||||
kline, module, rehash, restart, set, unkline, unxline, xline;
|
||||
};
|
||||
|
||||
operator {
|
||||
name = "external_hub_operator";
|
||||
|
@ -8,6 +8,9 @@ networks:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 100.64.48.24/30
|
||||
hub:
|
||||
external:
|
||||
name: hb_hub_hopm
|
||||
|
||||
services:
|
||||
hopm:
|
||||
@ -17,7 +20,7 @@ services:
|
||||
context: ../hopm
|
||||
dockerfile: Dockerfile
|
||||
image: hopm:latest
|
||||
command: "/usr/local/hopm/bin/hopm"
|
||||
command: "/usr/local/hopm/bin/hopm -c hopm -d"
|
||||
environment:
|
||||
LANG: en_US.utf8
|
||||
TZ: UTC
|
||||
@ -29,6 +32,8 @@ services:
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 100.64.48.26
|
||||
hub:
|
||||
ipv4_address: 100.64.64.67
|
||||
volumes:
|
||||
- type: volume
|
||||
source: ephemeral
|
||||
|
@ -58,6 +58,12 @@ networks:
|
||||
config:
|
||||
- subnet: 100.64.64.56/29
|
||||
internal: true
|
||||
hopm:
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 100.64.64.64/29
|
||||
internal: true
|
||||
|
||||
services:
|
||||
hub:
|
||||
@ -95,6 +101,8 @@ services:
|
||||
ipv4_address: 100.64.64.50
|
||||
tor_edge_hub:
|
||||
ipv4_address: 100.64.64.58
|
||||
hopm:
|
||||
ipv4_address: 100.64.64.66
|
||||
volumes:
|
||||
- type: volume
|
||||
source: ephemeral
|
||||
|
@ -25,9 +25,7 @@ services:
|
||||
mysql:
|
||||
restart: unless-stopped
|
||||
hostname: mysql.n3tw3rk.1ns3cur1ty.c0rp
|
||||
image: mariadb:latest
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
image: redis
|
||||
networks:
|
||||
default:
|
||||
ipv4_address: 100.64.0.6
|
||||
@ -38,7 +36,7 @@ services:
|
||||
volumes:
|
||||
- type: volume
|
||||
source: ephemeral
|
||||
target: /var/lib/mysql
|
||||
target: /data
|
||||
volume:
|
||||
nocopy: false
|
||||
ulimits:
|
||||
|
@ -25,8 +25,8 @@ services:
|
||||
services:
|
||||
restart: unless-stopped
|
||||
hostname: s3rv1c3z.n3tw3rk.1ns3cur1ty.c0rp
|
||||
# image: anope/anope:2.0.6
|
||||
image: anope/anope:latest
|
||||
image: anope/anope:2.0.8
|
||||
# image: anope/anope:latest
|
||||
environment:
|
||||
LANG: en_US.utf8
|
||||
TZ: UTC
|
||||
|
Loading…
Reference in New Issue
Block a user