• 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
  • Tunnel Setup on Ubuntu with interfaces file

Tunnel Setup on Ubuntu with interfaces file

Table of Contents
  • Assumptions

Assumptions #

You are running Ubuntu 18.04 or 20.04 without netplan (netplan is a new version)
Requirements: 10 minutes of your time, root SSH access, and knowledge of text editor on
system (eg, vim or nano).
Guide:

  1. SSH into your machine and elevate to root by executing the following: sudo bash
  2. Once you are elevated, execute the following: cd /etc/networking/
  3. Once here, use your choice of text editor (vim or nano) to edit the interfaces file
  4. Add the following content to the /etc/networking/interfaces file:
    auto symmetrical
    iface symmetrical inet tunnel
    address 10.10.56.2 # REPLACE
    netmask 255.255.255.252
    mode gre
    mtu 1440
    endpoint 205.220.230.49 # REPLACE
    local 1.1.1.1 # REPLACE WITH YOUR LOCAL IP
    ttl 255
    post-up ip route add default via 10.10.56.1 table symmetricaltunnel
    post-ip ip rule add from YOURIP/CIDR table symmetricaltunnel # eg: ip rule add
    from 172.111.1.0/24 table symmetricaltunnel
    post-up ip addr add YOURIP/CIDR dev symmetrical # eg: ip addr add
    172.111.1.1/24 dev symmetrical
    pre-down ip rule del from YOURIP/CIDR table symmetricaltunnel
    pre-down ip route del default via 10.10.56.1 table symmetricaltunnel
  5. Substitute the assumed variables (eg,
    10.10.56.1,10.10.56.2,205.220.230.49,1.1.1.1,YOURIP/CIDR) with the expected
    values
  6. Save and quit the file (in vim: ESC :wq or nano: ctrl+x)
  7. Add the routing table (ONLY DO THIS ONCE) to the system by executing the
    following:
    echo ‘net.ipv4.ip_forward=1′ >> /etc/sysctl.conf && sysctl -p && echo ‘500 PATH’ >>
    /etc/iproute2/rt_tables
  8. Then you should be able to execute the following command:
    ip link set dev symmetrical up
  9. Then you should be able to ping the other end of the tunnel if your changes worked
    successfully:
    ping 10.10.56.1 # SUBSTITUTE PROPER IP HERE
  10. Woohoo! That’s how the cookie crumbles.
auto lectron
iface lectron inet tunnel
        address 10.10.56.1 (local-ip-address-assigned-to-you)
        netmask 255.255.255.252 (because your private subnet is /30 which equals to the .252 suffix)
        mode gre
        mtu 1440
        endpoint 205.220.230.49
        local (your-server-ip-address)
        ttl 255
        post-up ip route add 0.0.0.0/0 via 10.10.56.2 table 123
        post-up ip rule add from 168.100.15.0/32 table 123
        post-up ip address add 168.100.15.0/32 dev lectron
        pre-down ip route del 0.0.0.0/0 via 10.10.56.2 table 123
        pre-down ip rule del from 168.100.15.0/32 table 123
Reactions
Share this Doc:
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on October 16, 2021
Lectron Tunnel Setup for Ubuntu 20.04 or higher

Leave a Reply Cancel reply

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

Table of Contents
  • Assumptions

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