user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 2768;
# multi_accept on;
}
stream {
log_format basic '$remote_addr:$remote_port - $time_local '
'$protocol stat:$status bs:$bytes_sent br:$bytes_received '
st:'$session_time';
# SSH
server {
listen 2022 reuseport;
proxy_pass 10.228.228.2:2022;
}
# HTTP
server {
listen 80 reuseport;
proxy_pass 10.228.228.2:80;
}
# Node
server {
listen 8080 reuseport;
proxy_pass 10.228.228.2:8080;
}
# server minecraft java
server {
listen 25565 reuseport;
proxy_pass 10.228.228.2:25565;
proxy_protocol on;
}
# server minecraft java
server {
listen 25570 reuseport;
proxy_pass 10.228.228.2:25570;
proxy_protocol on;
}
# server minecraft java
server {
listen 27002 reuseport;
proxy_pass 10.228.228.2:27002;
}
# server minecraft java
server {
listen 25566 reuseport;
proxy_pass 10.228.228.2:25566;
proxy_protocol on;
}
# server minecraft java
server {
listen 25665 reuseport;
proxy_pass 10.228.228.2:25665;
proxy_protocol on;
}
# server minecraft java
server {
listen 25765 reuseport;
proxy_pass 10.228.228.2:25765;
proxy_protocol on;
}
}
root@debian:/home/debian# ip ro
default via 192.168.0.1 dev eth0
10.228.228.0/24 dev wg0 proto kernel scope link src 10.228.228.2
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.226
root@debian:/home/debian# ip ru
0: from all lookup local
32764: from all lookup main suppress_prefixlength 0
32765: not from all fwmark 0xca6c lookup 51820
32766: from all lookup main
32767: from all lookup default
root@debian:/home/debian# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:00:99:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.226/24 brd 192.168.0.255 scope global dynamic eth0
valid_lft 7179sec preferred_lft 7179sec
inet6 fe80::215:5dff:fe00:9915/64 scope link
valid_lft forever preferred_lft forever
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.228.228.2/24 scope global wg0
valid_lft forever preferred_lft forever
root@debian:/home/debian# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:00:99:15 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.226/24 brd 192.168.0.255 scope global dynamic eth0
valid_lft 7102sec preferred_lft 7102sec
inet6 fe80::215:5dff:fe00:9915/64 scope link
valid_lft forever preferred_lft forever
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
link/none
inet 10.228.228.2/24 scope global wg0
valid_lft forever preferred_lft forever
4: br-47340319d664: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:b6:35:bf:1c brd ff:ff:ff:ff:ff:ff
inet 172.19.0.1/16 brd 172.19.255.255 scope global br-47340319d664
valid_lft forever preferred_lft forever
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:f7:4f:5a:4a brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
6: pterodactyl0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:18:57:e4:b4 brd ff:ff:ff:ff:ff:ff
inet 172.18.0.1/16 brd 172.18.255.255 scope global pterodactyl0
valid_lft forever preferred_lft forever
inet6 fdba:17c8:6c94::1011/64 scope global tentative
valid_lft forever preferred_lft forever
inet6 fe80::1/64 scope link tentative
valid_lft forever preferred_lft forever
7: br-231d8fbb1e1c: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:8a:77:25:a8 brd ff:ff:ff:ff:ff:ff
inet 172.20.0.1/16 brd 172.20.255.255 scope global br-231d8fbb1e1c
valid_lft forever preferred_lft forever
debug: false
api:
host: 0.0.0.0
port: 8080
ssl:
enabled: false
cert: /etc/letsencrypt/live/81.25.49.182/fullchain.pem
key: /etc/letsencrypt/live/81.25.49.182/privkey.pem
disable_remote_download: false
upload_limit: 100
trusted_proxies: []
system:
root_directory: /var/lib/pterodactyl
log_directory: /var/log/pterodactyl
data: /var/lib/pterodactyl/volumes
archive_directory: /var/lib/pterodactyl/archives
backup_directory: /var/lib/pterodactyl/backups
tmp_directory: /tmp/pterodactyl
username: pterodactyl
timezone: Europe/Moscow
user:
uid: 998
gid: 997
disk_check_interval: 150
activity_send_interval: 60
activity_send_count: 100
check_permissions_on_boot: true
enable_log_rotate: true
websocket_log_count: 150
sftp:
bind_address: 0.0.0.0
bind_port: 2022
read_only: false
crash_detection:
enabled: true
detect_clean_exit_as_crash: true
timeout: 60
backups:
write_limit: 0
compression_level: best_speed
transfers:
download_limit: 0
docker:
network:
interface: 172.18.0.1
dns:
- 1.1.1.1
- 1.0.0.1
name: pterodactyl_nw
ispn: false
driver: bridge
network_mode: pterodactyl_nw
is_internal: false
enable_icc: true
network_mtu: 1500
interfaces:
v4:
subnet: 172.18.0.0/16
gateway: 172.18.0.1
v6:
subnet: fdba:17c8:6c94::/64
gateway: fdba:17c8:6c94::1011
domainname: ""
registries: {}
tmpfs_size: 100
container_pid_limit: 512
installer_limits:
memory: 1024
cpu: 100
overhead:
override: false
default_multiplier: 1.05
multipliers: {}
use_performant_inspect: true
userns_mode: ""
throttles:
enabled: true
lines: 2000
line_reset_interval: 100