• Locations
  • Pricing
  • Calculator
  • Affiliate
  • Merchandise
  • Blog
  • Documentation
Menu
  • Locations
  • Pricing
  • Calculator
  • Affiliate
  • Merchandise
  • Blog
  • Documentation
Dashboard
Popular Search fivem

Getting Started

  • What is Lectron?
  • FAQ
  • Locations
  • Features
  • Billings
  • Getting started
  • How to use the Dashboard
  • Why is this called Armor?
  • How to Configure SRV Record Correctly
  • How to report high ping issues to Lectron?

About FiveM

  • Console commands
  • Installation
  • What is FiveM?

Beginner's Guide

  • What is the internet?
  • What is a proxy server?
  • How a DNS Server (Domain Name System) works
  • TCP vs. UDP Comparison
  • What is a server?
  • What is a DDoS attack?
  • What is a Firewall?
  • Protected: What is a port?
  • How to Configure SRV Record Correctly
  • Proxy Protocol
  • What is TCP Protocol?
  • What is UDP Protocol ?

Troubleshooting

  • High Latency and General Lag
  • Edge TLS
  • Ping and TraceRoute (tracert) commands
  • Understanding Network Address Translation (NAT)
  • What are SSL, TLS, HTTP and HTTPS?
  • Understanding IPv4 and IPv6
  • Understanding FTP (File Transfer Protocol)
  • What is Wireshark
  • Diagnosing Network Issues with MTR

Start Crafting

  • How to Start
  • Understanding Hyperthreading in a Minecraft server
  • How to play Minecraft – The Basic
  • Craft Rules
  • Basic Commands
  • Minecraft

Brand

  • Mission
  • Personality
  • Promise
  • Values

Foundations

  • Accessibility
  • Color
  • Grid
  • Iconography
  • Illustrations
  • Logos
  • Typography
  • Images & Videos

Content

  • Inclusive language
  • Language and grammar
  • Messaging guidelines
  • Vocabulary
  • Voice and tone principles
  • Writing style

Components

  • Avatar
  • Avatar group
  • Badge
  • Banner
  • Breadcrumbs
  • Button
  • Checkbox
  • Code
  • Dropdown menu
  • Flag
  • Inline dialog
  • Inline message
  • Logo
  • Lozenge
  • Modal dialog
  • Pagination
  • Progress indicator
  • Progress tracker
  • Radio
  • Section message
  • Select
  • Spinner
  • Tabs
  • Tag
  • Text field
  • Toggle
  • Tooltip

Patterns

  • Benefits modal
  • First impressions
  • Forms
  • Inline edit
  • Messages
  • Page header
  • Spotlight

Resources

  • Color palettes
  • Design principles
  • Figma library
  • Fonts
  • Illustration library
  • Logo library
  • Protected: Presentation kit
  • Sketch library
  • Templates

Attack Types

  • SYN Flood
  • TCP Half-Open
  • DNS Reflection Attack
  • Denial of Service explained
  • DDoS through DNS Requests
  • UDP Flood
  • Vulnerability Attack
  • Phishing Attacks
  • Common Security Threats
  • Ping of Death ICMP Attack
  • Slowloris Attack

DDoS Attack

  • what is DDoS attack?
  • Overview of DDoS attack.
  • Characteristics of DDoS attack
  • Protective Measures

Traceroute To India

  • FPT Hanoi to Tata India
  • Hivelocity New York City to Tata India
  • FPT Hanoi to Digital Ocean India

To Hong Kong

  • Viettel Ho Chi Minh City to Lectron Hong Kong
  • Viettel Hanoi to Leaseweb Hong Kong
  • FPT Hanoi to Leaseweb Hong Kong
  • VNPT Hanoi to Leaseweb Hong Kong
  • VNPT Ho Chi Minh City to Lectron Hong Kong

To Vietnam

  • Hivelocity Hong Kong to Vietnam
  • Vultr Singapore to FPT Vietnam
  • OVH Singapore to FPT Vietnam

To Singapore

  • Hivelocity New York City to Vultr Singapore
  • FPT Hanoi to Vultr Singapore

To Lectron

  • Leaseweb Hong Kong to Lectron

FiveM Protection Setup

  • How to Configure SRV Record Correctly
  • Use Lectron Dashboard to remote proxy your FiveM server
  • Whitelist Lectron IP addresses to your FiveM server firewall
  • Protecting a Windows Server using a GRE Tunnel
  • Setup GRE Tunnel on Ubuntu 20 Linux Server
  • How to setup a free FiveM SRV record with Lectron (Domain / Subdomain)
  • How to config FiveM Proxy in Lectron Dashboard?
  • How to add Lectron proxy in server.cfg?

Tunnel Setup

  • Tunnel Setup for Windows Server with 1 public IP (beta)
  • Lectron Tunnel Setup for Ubuntu 20.04 or higher
  • Tunnel Setup on Ubuntu with interfaces file

SRV Load Balancing

  • How to Configure SRV Record Correctly
  • How to setup a free FiveM SRV record with Lectron (Domain / Subdomain)

Setup DNS for Minecraft Proxy

  • How to Configure SRV Record Correctly

Firewall

  • what is Firewall?

About Load Balancer

  • What is Load Balancer?
  • Load Balancer algorithm
  • Load Balancer components

Teamspeak 3 Protection Setup

  • HOW TO PROTECT YOUR TEAMSPEAK 3?

SA-MP

  • How to connect your samp ip to domain?

Minecraft Proxy Setup

  • How to setup Bungeecord Minecraft Proxy?
  • How to setup Spigot Minecraft in Lectron Dashboard?
  • How to Setup Geyser with lectron (Spigot) ?

Proxy Server

  • What is proxy Server?
  • Types of Proxy Server

FiveM DNS config

  • Cloudflare DNS config for FiveM
  • Godaddy DNS config for FiveM
  • Google Domain DNS config for FiveM
  • Porkbun DNS config for FiveM

Minecraft DNS config

  • Cloudflare DNS config for Minecraft
  • Godaddy DNS config for Minecraft
  • Google domains DNS config for Minecraft
  • Porkbun DNS config for Minecraft

Basics of HTTP

  • What is HTTP?
  • What is the purpose of HTTP?
  • How does HTTP work?

Basics of HTTPS

  • What is HTTPS?
  • What is the purpose of HTTPS?
  • How does HTTPS work?
  • Home
  • Documentation
  • Tunnel Setup
  • Lectron Tunnel Setup for Ubuntu 20.04 or higher

Lectron Tunnel Setup for Ubuntu 20.04 or higher

Table of Contents
  • Step 1 - Module loading
  • Step 2 - Tunnel setup

More guides can be found here:

  • https://community.hetzner.com/tutorials/linux-setup-gre-tunnel
  • https://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.tunnel.gre.html

Lectron Tunnel uses GRE tunneling protocol.

Generic Routing Encapsulation (GRE) is a tunneling protocol developed by Cisco Systems which can encapsulate a wide variety of network layer protocols inside virtual point-to-point links or point-to-multipoint links over an Internet Protocol network.

This is where you can go to create your tunnel: https://dashboard.lectron.com/tunnels

Afterwards, you can follow the steps below to connect your server to Lectron Tunnel


Step 1 – Module loading #

For setting up a GRE tunnel on Linux you must have ip_gre module loaded in your linux kernel. To make sure it’s loaded just do:

sudo modprobe ip_gre
lsmod | grep gre

And you should see the result similar to what’s showing below:

ip_gre                 #####  0
gre                    #####  1 ip_gre

Step 2 – Tunnel setup #

You will create a script file, let’s call it script.sh

Do the following command to open a script file

nano script.sh

then, enter the following script content below into your script file

#!/bin/bash

DEV=LectronTunnel #can change name to lectron-GRE-tunnel or any name you want
LOCAL=139.99.28.9 #your origin server IP address - Use the public IP address that you received from your hosting provider
REMOTE=205.220.230.49 #DO NOT CHANGE THIS - This is Lectron Netflow endpoint
IP=10.10.56.1 #Use the Private Origin Side Private IP Address that we give you
IP_REMOTE=10.10.56.2 #Use the Private Tunnel Side Private IP Address that we give you
NET=10.10.56.0/30 #Use the Private Network Address with subnet /30 that we give you
IP_INTERNET=168.100.15.0/32 #Use one of any of Lectron Tunnel Usable IP Address that we give you

up(){
ip tunnel add $DEV mode gre remote $REMOTE local $LOCAL ttl 255
ip link set $DEV up
ip addr add $IP dev $DEV
ip route add $NET dev $DEV
ip route add 0.0.0.0/0 via $IP_REMOTE table 139
ip rule add from $IP_INTERNET table 139
ip address add $IP_INTERNET dev $DEV
}


down(){
ip route del 0.0.0.0/0 via $IP_REMOTE table 139
ip rule del from $IP_INTERNET table 139
ip link set $DEV down
ip tunnel del $DEV
}




case "$1" in
up)
 up
 ;;
down)
 down
 ;;
*)
 echo "gre [up|down]"
 ;;
esac

then, save the file.

Then, you can run the Tunnel by doing:

sh script.sh up

if you need to turn off the Tunnel for any reason, type the command below

sh script.sh up

To test, use the following services:

  • ping.pe/{your tunneled IP address such as 168.100.15.1}

if the server got a ping then it’s good

Reactions
Share this Doc:
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on May 26, 2022
Tunnel Setup for Windows Server with 1 public IP (beta)Tunnel Setup on Ubuntu with interfaces file

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Step 1 - Module loading
  • Step 2 - Tunnel setup

join our newsletter

Get frequent news, updates and rewards !





We make the metaverse a better place.
Facebook-f Twitter Instagram Linkedin-in Youtube Github Twitch

Quick Menu

  • Locations
  • Pricing
  • Calculator
  • Affiliate
  • Merchandise
  • Blog
  • Documentation
Menu
  • Locations
  • Pricing
  • Calculator
  • Affiliate
  • Merchandise
  • Blog
  • Documentation
Copyright © Lectron, Inc. | All rights reserved
Trademarked with United States Patent and Trademark Office