diff --git a/README.md b/README.md index 1541622..4639e1f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ Re-add the i2pd ports folder from this repository. cd /usr/ports/net/i2pd make make install + +sysctl kern.maxfiles=16000 ``` ## ergo diff --git a/etc/i2pd/tunnels.conf b/etc/i2pd/tunnels.conf index 27172ee..b95c433 100644 --- a/etc/i2pd/tunnels.conf +++ b/etc/i2pd/tunnels.conf @@ -1,27 +1,3 @@ -[IRC-CHIKAHIROBA] -type = client -address = 127.0.0.1 -port = 6670 -destination = hvmpwwdqm5fpu5y4b6yuzqzb75kkhvnsnbxenbwpru7cjwl4qxla.b32.i2p -destinationport = 5555 -keys = irc-keys.dat - -[IRC-INTR] -type = client -address = 127.0.0.1 -port = 6671 -destination = irc.intr.i2p -destinationport = 6697 -keys = irc-keys.dat - -[IRC2] -type = client -address = 127.0.0.1 -port = 6669 -destination = irc.ilita.i2p -destinationport = 6667 -#keys = irc-keys.dat - [chikahiroba] type = http host = 127.0.0.1 diff --git a/etc/login.conf b/etc/login.conf new file mode 100644 index 0000000..b35f2b0 --- /dev/null +++ b/etc/login.conf @@ -0,0 +1,124 @@ +# $OpenBSD: login.conf,v 1.23 2022/02/28 21:23:38 sthen Exp $ + +# +# Sample login.conf file. See login.conf(5) for details. +# + +# +# Standard authentication styles: +# +# passwd Use only the local password file +# chpass Do not authenticate, but change user's password (change +# the YP password if the user has one, else change the +# local password) +# lchpass Do not login; change user's local password instead +# ldap Use LDAP authentication +# radius Use RADIUS authentication +# reject Use rejected authentication +# skey Use S/Key authentication +# activ ActivCard X9.9 token authentication +# crypto CRYPTOCard X9.9 token authentication +# snk Digital Pathways SecureNet Key authentication +# token Generic X9.9 token authentication +# yubikey YubiKey authentication +# + +# Default allowed authentication styles +auth-defaults:auth=passwd,skey: + +# Default allowed authentication styles for authentication type ftp +auth-ftp-defaults:auth-ftp=passwd: + +# +# The default values +# To alter the default authentication types change the line: +# :tc=auth-defaults:\ +# to read something like: (enables passwd, "myauth", and activ) +# :auth=passwd,myauth,activ:\ +# Any value changed in the daemon class should be reset in default +# class. +# +default:\ + :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\ + :umask=022:\ + :datasize-max=1024M:\ + :datasize-cur=1024M:\ + :maxproc-max=256:\ + :maxproc-cur=128:\ + :openfiles-max=1024:\ + :openfiles-cur=512:\ + :stacksize-cur=4M:\ + :localcipher=blowfish,a:\ + :tc=auth-defaults:\ + :tc=auth-ftp-defaults: + +# +# Settings used by /etc/rc and root +# This must be set properly for daemons started as root by inetd as well. +# Be sure to reset these values to system defaults in the default class! +# +daemon:\ + :ignorenologin:\ + :datasize=4096M:\ + :maxproc=infinity:\ + :openfiles-max=1024:\ + :openfiles-cur=128:\ + :stacksize-cur=8M:\ + :tc=default: + +# +# Staff have fewer restrictions and can login even when nologins are set. +# +staff:\ + :datasize-cur=1536M:\ + :datasize-max=infinity:\ + :maxproc-max=512:\ + :maxproc-cur=256:\ + :ignorenologin:\ + :requirehome@:\ + :tc=default: + +# +# Authpf accounts get a special motd and shell +# +authpf:\ + :welcome=/etc/motd.authpf:\ + :shell=/usr/sbin/authpf:\ + :tc=default: + +# +# Building ports with DPB uses raised limits +# +pbuild:\ + :datasize-max=infinity:\ + :datasize-cur=8192M:\ + :maxproc-max=1024:\ + :maxproc-cur=512:\ + :stacksize-cur=8M:\ + :priority=5:\ + :tc=default: + +# +# Override resource limits for certain daemons started by rc.d(8) +# +bgpd:\ + :datasize=16384M:\ + :openfiles=512:\ + :tc=daemon: + +unbound:\ + :openfiles=512:\ + :tc=daemon: + +vmd:\ + :datasize=16384M:\ + :tc=daemon: + +xenodm:\ + :openfiles=512:\ + :tc=daemon: + +i2pd:\ + :openfiles-cur=8192:\ + :openfiles-max=8192:\ + :tc=daemon: diff --git a/etc/sysctl.conf b/etc/sysctl.conf new file mode 100644 index 0000000..cf7def2 --- /dev/null +++ b/etc/sysctl.conf @@ -0,0 +1 @@ +kern.maxfiles=16000