Skip to content

Instantly share code, notes, and snippets.

@litew
litew / libreswan_fortigate_ikev1_rsa_xauth.adoc
Last active October 11, 2023 07:48
Linux libreswan settings for connecting as VPN client to FortiGate VPN with IPSEC/IKEv1, RSA + XAUTH

Linux libreswan settings for connecting as VPN client to FortiGate VPN with IPSEC/IKEv1, RSA + XAUTH

Prerequisities

  1. libreswan and openssl packages installed;

  2. Stop pluto service with ipsec stop if it was autostarted;

  3. CA, User certs and Private key available for configuring RSA;

  4. Disable ICMP accept_redirects and send_redirects with sysctl.

@litew
litew / sagan_openbsd66.adoc
Last active February 14, 2020 10:00
Running Sagan on OpenBSD 6.6
@litew
litew / tmux
Last active November 9, 2023 23:38
my tmux config
unbind C-b
set-option -g prefix "`"
bind-key "`" send-prefix
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
#!/bin/sh
RFKILL=/usr/sbin/rfkill
BT_SLEEP=/proc/bluetooth/sleep/proto
FIRMWARE=/persist
HCI_DEVICE=/dev/ttyHSL0
HCI_INIT=/system/bin/hci_qcomm_init
HCI_ATTACH=/usr/sbin/hciattach
HCI_TRANSPORT=smd
BT_POWER_CLASS=2
@litew
litew / gist:dbff8c5b31446f506110
Created March 15, 2016 20:38
init.qcom.bt.sh
#!/system/bin/sh
# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
@litew
litew / about
Created February 7, 2016 11:45
import QtQuick 2.0
import Sailfish.Silica 1.0
import com.jolla.settings.system 1.0
import org.nemomobile.systemsettings 1.0
import org.nemomobile.dbus 1.0
import Qt.labs.folderlistmodel 2.1
Page {
id: aboutPage