crazyoptimist
Blog
About
  • Improve Your Wireguard Server's Performance

    Jul 13, 2021 · 1 min read  ·
    Share on:

    The default MTU(Maximum Transmission Unit) is 1420 in wireguard, while the most other devices use 1496 or 1500. Read here for more info. TL;DR Stop the wireguard interface in use: 1sudo systemctl stop [email protected] 2# or 3sudo wg-quick down wg0 Edit the wireguard config file: 1sudo vim /etc/wireguard/wg0.conf Add …

    Read More
  • Setup Wireguard VPN Server on Ubuntu

    Feb 4, 2021 · 3 min read  ·
    Share on:

    This tutorial is going to show you how to set up your own WireGuard VPN server on Ubuntu. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …

    Read More
  • Setup Wireguard VPN Server on CentOS

    Feb 4, 2021 · 6 min read  ·
    Share on:

    This tutorial is going to show you how to set up your own WireGuard VPN server on CentOS. WireGuard is made specifically for the Linux kernel. It runs inside the Linux kernel and allows you to create fast, modern, and secure VPN tunnel. TL;DR Prerequisites This tutorial assumes that the VPN server and VPN client are …

    Read More
  • How to Enable Login With Password on Linux

    Feb 18, 2020 · 1 min read  ·
    Share on:

    Let’s update the Password Authentication parameter in the ssh service config file: 1vim /etc/ssh/sshd_config Hey, what? You can't even find the sshd service? Install it then: 1sudo apt update 2sudo apt install openssh-server In the /etc/ssh/sshd_config file, uncomment this line: 1#PasswordAuthentication yes Boom! Done. …

    Read More
  • How to Auto Start OpenVPN Client on Ubuntu Bionic

    Jan 6, 2020 · 1 min read  ·
    Share on:

    Launch OpenVPN client as a daemon. Here I assume you already have your own cert file - filename.ovpn. 🙂 Modify its file extension to conf like so: 1mv filename.ovpn filename.conf Put your cert file inside /etc/openvpn directory like so: 1mv /path/to/filename.conf /etc/openvpn/ OpenVPN client service name would be …

    Read More
  • How to Configure Virtual Hosts on Centos 7 Apache Server

    Dec 20, 2019 · 1 min read  ·
    Share on:

    Prerequisites for a vhost setup: 1chown -R apache:apache /path_to/site_root Set the permission of the root directory to 755, you may already know. 🙂 Well, let’s create a vhost config file before you edit it. 1cd /etc/httpd/conf.d 2vim domain_name.conf Now, grab this content to your config file: 1<VirtualHost …

    Read More
  • How to Fix OpenVPN Socket Bind Failure

    Dec 6, 2019 · 1 min read  ·
    Share on:

    I recently came up with this error on one of my OpenVPN servers. "OpenVPN - Socket bind failed on local address [AF_INET] IP:#portnum: Cannot assign requested address" Let me share how I did fix it. First off, check this openvpn’s default init script : [email protected] 1sudo grep After …

    Read More
  • How to Auto-Login to a Linux Server Using Public Key

    Nov 19, 2019 · 1 min read  ·
    Share on:

    This is a manual version of ssh-copy-id command. Let’s say that we are logging in to server named B from a local machine named A. First off, generate authentication key pair without passphrase on the local machine A: 1ssh-keygen -t rsa Now you got a public key of your local machine, of which path is: 1cd ~/.ssh 2cat …

    Read More
  • How to Login Using PPK File With SSH

    Nov 19, 2019 · 1 min read  ·
    Share on:

    In some situations, you are given only a ppk file for access to a cloud server. You know, however, it's for Putty on windows, not for OpenSSH client which might be the most familiar to you.🤔 I am gonna introduce a method to convert a ppk file into a pem file so that you can login to the linux server with ssh command …

    Read More
  • How to Install OpenVPN Server on Any Distro of Linux

    Nov 17, 2019 · 1 min read  ·
    Share on:

    Thanks to Stan's great work, it became so delightful to run your own secure and stable private VPN server. It's never been so easy. 👍 Download the installation script like this: 1wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh Change file permission to executable like this: …

    Read More
  • How to Install Webmin on Centos7

    Nov 3, 2019 · 1 min read  ·
    Share on:

    Webmin Login Screen First off, access to the server via ssh with root. Install dependencies with this command: 1yum -y install wget perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect perl-Data-Dumper unzip Create a repo file like this: 1nano /etc/yum.repos.d/webmin.repo 1[Webmin] 2name=Webmin Distribution …

    Read More

crazyoptimist

Software Engineer
Read More

Featured Posts

  • Automatic Https With Caddy - Extremely Easy
  • How to Deploy Next.js App to AWS EC2 in Production and Set up CI/CD with Github Actions
  • GPG Key in Git - Get Your Every Commit Verified
  • Deploy Your Web Apps in Just a Minute - Made With 💖 for Dockerists

Recent Posts

  • Python Development Environment Setup - an Excellent Way
  • Setup Neovim with vim-plug on Windows 11

Categories

DEVOPS 23 NETWORK 11 LINUX 6 DOCKER 3 GOLANG 3 JAVASCRIPT 3 VIM 2 PYTHON 1
crazyoptimist

Copyright  CRAZYOPTIMIST. All Rights Reserved