← Back to list

Creating an L2TP vpn tunnel over IPSec

In this series of mini articles, we describe how to deploy high-availability and secure Chainlink node. This article is dedicated to…

OracleSpace Labs · 2022-08-14 09:16 · 0 claps · 2.6 min read
#chainlink-node #blockchain-oracle #chain-link #ipsec-vpn #l2tp-vpn
Open on Medium ↗
Wiki topics: CRY · Crypto & Web3

Creating an L2TP vpn tunnel over IPSec

In this series of mini articles, we describe how to deploy high-availability and secure Chainlink node. This article is dedicated to creating an L2TP vpn tonnel over IPSec for Guard VM, that will have access to Chainlink Virtual Private Cloud infrastructure.

Setting up IPSec

Warning. For strongswan-starter setup it is better to go to source #1. This step was skipped when setting up.

Setting up L2TP

Note: It is mandatory that the local ip and ip range are specified correctly.

Setting up PPP

Adding firewall rules (does not work temporarily with the firewall)

NAT settings

Required for local network and internet access with a vpn connection.

Remember the rules, so that they are not wiped after restarting the server

Checking service status

Saving the rules

Let’s check that everything works. Turn off and on the server. Check that the rule for NAT is still in place.

Next we will set up 2FA on Guard VM via ssh.

Sources:

  1. https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04-ru
  2. https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-20-04-ru
  3. https://interface31.ru/tech_it/2021/07/osnovy-iptables-dlya-nachinayushhih-chast-3-tablica-nat.html
  4. https://www.cyberciti.biz/faq/how-to-save-iptables-firewall-rules-permanently-on-linux/
  5. https://www.dmosk.ru/miniinstruktions.php?mini=l2tpd-ubuntu

메타데이터
post_id
e95aa4be37f7
slug
creating-an-l2tp-vpn-tunnel-over-ipsec-e95aa4be37f7
url
https://medium.com/@oraclespace/creating-an-l2tp-vpn-tunnel-over-ipsec-e95aa4be37f7
canonical_url
https://medium.com/@oraclespace/creating-an-l2tp-vpn-tunnel-over-ipsec-e95aa4be37f7
author_url
https://medium.com/@oraclespace
status
ok
fetched_at
2026-06-21 12:17:11