diff options
Diffstat (limited to '')
-rw-r--r-- | debian11/Vagrantfile | 19 | ||||
-rw-r--r-- | debian11/i2pd.conf | 240 |
2 files changed, 255 insertions, 4 deletions
diff --git a/debian11/Vagrantfile b/debian11/Vagrantfile index 153bcd4..895a264 100644 --- a/debian11/Vagrantfile +++ b/debian11/Vagrantfile @@ -5,7 +5,7 @@ ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt' Vagrant.require_version '>= 2.2.6' Vagrant.configure('2') do |config| config.vm.box = 'generic/debian11' - config.vm.box_version = '3.6.6' + config.vm.box_version = '4.0.4' config.vm.box_check_update = false config.vm.hostname = 'virt-deb11' @@ -19,6 +19,13 @@ Vagrant.configure('2') do |config| config.vm.graceful_halt_timeout = 60 config.ssh.connect_timeout = 15 + config.vm.network 'forwarded_port', guest: 7070, host: 7070, protocol: 'tcp', atuo_correct: true + config.vm.network 'forwarded_port', guest: 4444, host: 4444, protocol: 'tcp', atuo_correct: true + config.vm.network 'forwarded_port', guest: 4447, host: 4447, protocol: 'tcp', atuo_correct: true + # config.vm.network 'forwarded_port', guest: 7070, host: 7070, protocol: 'tcp', host_ip: '192.168.1.103' + # config.vm.network 'forwarded_port', guest: 4444, host: 4444, protocol: 'tcp', host_ip: '192.168.1.103' + # config.vm.network 'forwarded_port', guest: 4447, host: 4447, protocol: 'tcp', host_ip: '192.168.1.103' + # shares config.vm.synced_folder '.', '/vagrant', type: 'nfs', nfs_version: 4, nfs_udp: false @@ -27,8 +34,8 @@ Vagrant.configure('2') do |config| config.vm.provider 'libvirt' do |libvirt| libvirt.default_prefix = 'deb11-' libvirt.driver = 'kvm' - libvirt.memory = '512' - libvirt.cpus = 1 + libvirt.memory = '2048' + libvirt.cpus = 2 libvirt.sound_type = nil libvirt.qemuargs value: '-nographic' libvirt.qemuargs value: '-nodefaults' @@ -43,6 +50,10 @@ Vagrant.configure('2') do |config| end # config.vm.provision 'i2p-install', type: 'shell', name: 'i2p-install', inline: <<-SHELL - # sudo apt update && sudo apt upgrade -y + # export DEBIAN_FRONTEND=noninteractive && \ + # sudo apt update && sudo apt upgrade -y && \ + # sudo apt install -y firefox-esr + # # sudo apt install -y i2p i2p-router + # # i2prouter start # SHELL end diff --git a/debian11/i2pd.conf b/debian11/i2pd.conf new file mode 100644 index 0000000..db783fc --- /dev/null +++ b/debian11/i2pd.conf @@ -0,0 +1,240 @@ +## Configuration file for a typical i2pd user +## See https://i2pd.readthedocs.io/en/latest/user-guide/configuration/ +## for more options you can use in this file. + +## Lines that begin with "## " try to explain what's going on. Lines +## that begin with just "#" are disabled commands: you can enable them +## by removing the "#" symbol. + +## Tunnels config file +## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf +# tunconf = /var/lib/i2pd/tunnels.conf + +## Tunnels config files path +## Use that path to store separated tunnels in different config files. +## Default: ~/.i2pd/tunnels.d or /var/lib/i2pd/tunnels.d +# tunnelsdir = /var/lib/i2pd/tunnels.d + +## Where to write pidfile (default: i2pd.pid, not used in Windows) +# pidfile = /run/i2pd.pid + +## Logging configuration section +## By default logs go to stdout with level 'info' and higher +## +## Logs destination (valid values: stdout, file, syslog) +## * stdout - print log entries to stdout +## * file - log entries to a file +## * syslog - use syslog, see man 3 syslog +# log = file +## Path to logfile (default - autodetect) +# logfile = /var/log/i2pd/i2pd.log +## Log messages above this level (debug, info, *warn, error, none) +## If you set it to none, logging will be disabled +# loglevel = warn +## Write full CLF-formatted date and time to log (default: write only time) +# logclftime = true + +## Daemon mode. Router will go to background after start +# daemon = true + +## Specify a family, router belongs to (default - none) +# family = + +## External IP address to listen for connections +## By default i2pd sets IP automatically +# host = 1.2.3.4 + +## Port to listen for connections +## By default i2pd picks random port. You MUST pick a random number too, +## don't just uncomment this +# port = 4567 + +## Enable communication through ipv4 +ipv4 = true +## Enable communication through ipv6 +ipv6 = false + +## Network interface to bind to +# ifname = +## You can specify different interfaces for IPv4 and IPv6 +# ifname4 = +# ifname6 = + +## Enable NTCP transport (default = true) +# ntcp = true +## If you run i2pd behind a proxy server, you can only use NTCP transport with ntcpproxy option +## Should be http://address:port or socks://address:port +# ntcpproxy = http://127.0.0.1:8118 +## Enable SSU transport (default = true) +# ssu = true + +## Should we assume we are behind NAT? (false only in MeshNet) +# nat = true + +## Bandwidth configuration +## L limit bandwidth to 32KBs/sec, O - to 256KBs/sec, P - to 2048KBs/sec, +## X - unlimited +## Default is X for floodfill, L for regular node +# bandwidth = L +## Max % of bandwidth limit for transit. 0-100. 100 by default +# share = 100 + +## Router will not accept transit tunnels, disabling transit traffic completely +## (default = false) +# notransit = true + +## Router will be floodfill +# floodfill = true + +[http] +## Web Console settings +## Uncomment and set to 'false' to disable Web Console +# enabled = true +## Address and port service will listen on +address = 0.0.0.0 +port = 7070 +## Path to web console, default "/" +# webroot = / +## Uncomment following lines to enable Web Console authentication +# auth = true +# user = i2pd +# pass = changeme + +[httpproxy] +## Uncomment and set to 'false' to disable HTTP Proxy +# enabled = true +## Address and port service will listen on +address = 0.0.0.0 +port = 4444 +## Optional keys file for proxy local destination +# keys = http-proxy-keys.dat +## Enable address helper for adding .i2p domains with "jump URLs" (default: true) +# addresshelper = true +## Address of a proxy server inside I2P, which is used to visit regular Internet +# outproxy = http://false.i2p +## httpproxy section also accepts I2CP parameters, like "inbound.length" etc. + +[socksproxy] +## Uncomment and set to 'false' to disable SOCKS Proxy +# enabled = true +## Address and port service will listen on +address = 0.0.0.0 +port = 4447 +## Optional keys file for proxy local destination +# keys = socks-proxy-keys.dat +## Socks outproxy. Example below is set to use Tor for all connections except i2p +## Uncomment and set to 'true' to enable using of SOCKS outproxy +# outproxy.enabled = false +## Address and port of outproxy +# outproxy = 127.0.0.1 +# outproxyport = 9050 +## socksproxy section also accepts I2CP parameters, like "inbound.length" etc. + +[sam] +## Uncomment and set to 'true' to enable SAM Bridge +enabled = true +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7656 + +[bob] +## Uncomment and set to 'true' to enable BOB command channel +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 2827 + +[i2cp] +## Uncomment and set to 'true' to enable I2CP protocol +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7654 + +[i2pcontrol] +## Uncomment and set to 'true' to enable I2PControl protocol +# enabled = false +## Address and port service will listen on +# address = 127.0.0.1 +# port = 7650 +## Authentication password. "itoopie" by default +# password = itoopie + +[precomputation] +## Enable or disable elgamal precomputation table +## By default, enabled on i386 hosts +# elgamal = true + +[upnp] +## Enable or disable UPnP: automatic port forwarding (enabled by default in WINDOWS, ANDROID) +# enabled = false +## Name i2pd appears in UPnP forwardings list (default = I2Pd) +# name = I2Pd + +[reseed] +## Options for bootstrapping into I2P network, aka reseeding +## Enable or disable reseed data verification. +verify = true +## URLs to request reseed data from, separated by comma +## Default: "mainline" I2P Network reseeds +# urls = https://reseed.i2p-projekt.de/,https://i2p.mooo.com/netDb/,https://netdb.i2p2.no/ +## Path to local reseed data file (.su3) for manual reseeding +# file = /path/to/i2pseeds.su3 +## or HTTPS URL to reseed from +# file = https://legit-website.com/i2pseeds.su3 +## Path to local ZIP file or HTTPS URL to reseed from +# zipfile = /path/to/netDb.zip +## If you run i2pd behind a proxy server, set proxy server for reseeding here +## Should be http://address:port or socks://address:port +# proxy = http://127.0.0.1:8118 +## Minimum number of known routers, below which i2pd triggers reseeding. 25 by default +# threshold = 25 + +[addressbook] +## AddressBook subscription URL for initial setup +## Default: reg.i2p at "mainline" I2P Network +# defaulturl = http://shx5vqsw7usdaunyzr2qmes2fq37oumybpudrd4jjj4e4vk4uusa.b32.i2p/hosts.txt +## Optional subscriptions URLs, separated by comma +# subscriptions = http://inr.i2p/export/alive-hosts.txt,http://stats.i2p/cgi-bin/newhosts.txt,http://rus.i2p/hosts.txt + +[limits] +## Maximum active transit sessions (default:2500) +# transittunnels = 2500 +## Limit number of open file descriptors (0 - use system limit) +# openfiles = 0 +## Maximum size of corefile in Kb (0 - use system limit) +# coresize = 0 +## Threshold to start probabalistic backoff with ntcp sessions (0 - use system limit) +# ntcpsoft = 0 +## Maximum number of ntcp sessions (0 - use system limit) +# ntcphard = 0 + +[trust] +## Enable explicit trust options. false by default +# enabled = true +## Make direct I2P connections only to routers in specified Family. +# family = MyFamily +## Make direct I2P connections only to routers specified here. Comma separated list of base64 identities. +# routers = +## Should we hide our router from other routers? false by default +# hidden = true + +[exploratory] +## Exploratory tunnels settings with default values +# inbound.length = 2 +# inbound.quantity = 3 +# outbound.length = 2 +# outbound.quantity = 3 + +[persist] +## Save peer profiles on disk (default: true) +# profiles = true + +[cpuext] +## Use CPU AES-NI instructions set when work with cryptography when available (default: true) +# aesni = true +## Use CPU AVX instructions set when work with cryptography when available (default: true) +# avx = true +## Force usage of CPU instructions set, even if they not found +## DO NOT TOUCH that option if you really don't know what are you doing! +# force = false |