$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (edits /conf/config.xml symlink to /cf/conf/config.xml) | |
viconfig | |
# add for example fragment 1300;mssfix to a client | |
# <openvpn> | |
# <openvpn-client> | |
# <topology>subnet</topology> | |
# <custom_options>fragment 1300;mssfix 1300</custom_options> | |
# restart all OpenVPN service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Install Python, git, build-essential from dietpi-software | |
- Run rpi-source: https://github.com/notro/rpi-source/wiki | |
- Enable IP Forwarding | |
- nano /etc/sysctl.conf: | |
- net.ipv4.ip_forward = 1 | |
- sudo apt-get install libmnl-dev | |
- git clone https://git.zx2c4.com/WireGuard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kamailio -DD -E -f /etc/kamailio/kamailio.cfg 2>&1 | tee -a LOGFILE | |
cat LOGFILE | grep -v 'core/re.c:' > LOGFILE.txt | |
0(28227) INFO: <core> [core/ppcfg.c:83]: pp_subst_add(): ### added subst expression: !MY_HTTP_ADDR!tcp:127.0.0.1:8080!g | |
0(28227) INFO: tls [tls_init.c:503]: init_tls_compression(): disabling compression... | |
0(28227) INFO: <core> [core/sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 212.XX.XX.XX | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 172.20.120.83 | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 172.20.120.83 | |
0(28227) WARNING: <core> [core/socket_info.c:1394]: fix_hostname(): could not rev. resolve 212.XX.XX.XX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!KAMAILIO | |
####### Include Local Config If Exists ######### | |
import_file "kamailio-local.cfg" | |
# Content of kamailio-local.cfg | |
listen=udp:172.20.xx.xxx:5060 # CORRECT THIS | |
listen=tls:212.xx.xx.xxx:5061 # CORRECT THIS | |
#!define DBURL "text:///etc/kamailio/database" | |
#!define WITH_NAT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nov 7 13:38:06 sbc1 /usr/sbin/kamailio[6140]: INFO: <script>: Received message | |
'OPTIONS sip:sbc-d01.MYDOMAIN.EXAMPLE:5061;transport=tls SIP/2.0 | |
FROM: <sip:sip-du-a-eu.pstnhub.microsoft.com:5061>;tag=8eb9b958-72f0-4827-a3be-ec9f825f7649 | |
TO: <sip:sbc-d01.MYDOMAIN.EXAMPLE> | |
CSEQ: 1 OPTIONS | |
CALL-ID: 9cca2786-b6df-4b3e-882b-db1dfe2de040 | |
MAX-FORWARDS: 70 | |
VIA: SIP/2.0/TLS 52.114.75.24:5061;branch=z9hG4bKa01fb94a | |
CONTACT: <sip:sip-du-a-eu.pstnhub.microsoft.com:5061> | |
CONTENT-LENGTH: 0 |
https://blog.alexellis.io/test-drive-k3s-on-raspberry-pi/
Set the GPU memory split to 16mb
Add this to /boot/cmdline.txt cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount /dev/md2 /mnt | |
mount -o rbind /dev /mnt/dev | |
mount -t proc proc /mnt/proc | |
mount -t sysfs sys /mnt/sys | |
chroot /mnt |