Skip to content

Instantly share code, notes, and snippets.

@wachid-sst
wachid-sst / pritunl-server-custom-ssl_manually
Created April 7, 2021 00:27 — forked from phiberoptick/pritunl-server-custom-ssl_manually
Use custom SSL cert in Pritunl Server Community
Ignore all that craziness below. These can be set from the cli with the "pritunl" command.
The commands below can be used to get/set the values of the cert, key, port and if the :80 -> "app.server_port" redirect is active.
# Get current SSL server cert:
pritunl get app.server_cert
# Get current SSL server key:
pritunl get app.server_key
@wachid-sst
wachid-sst / gist:52413e531e2d3e975b44e37dfa72748b
Created September 20, 2016 10:43 — forked from jayjanssen/gist:4039319
sysctl tuning for HAproxy
net.core.somaxconn = 32768
net.ipv4.conf.all.send_redirects = 1
net.ipv4.ip_nonlocal_bind = 1
net.ipv4.tcp_abort_on_overflow = 0
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 300
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_syn_backlog = 16384
net.ipv4.tcp_max_tw_buckets = 262144
net.ipv4.tcp_mem = 200000    280000    300000