Use IPIP to open tunnels and speed up network access

Use IPIP to open tunnels and speed up network access

Used to speed up the network.

View the IPIP module:

 modinfo ipip

Start establishing the tunnel:

Note: Here, the public IP of host A is set to 1.1.1.1, and the public IP of host B is set to 2.2.2.2

A host operation:

 ip tunnel add ipip - tunnel mode ipip remote 2.2.2.2 local 1.1.1.1
ifconfig ipip - tunnel 10.0.1.1 netmask 255.255.255.0

Host B operation:

 ip tunnel add ipip - tunnel mode ipip remote 1.1.1.1 local 2.2.2.2
ifconfig ipip - tunnel 10.0.1.2 netmask 255.255.255.0

Then you can ping the intranet IP 10.0.1.1 set by host A on host B to see if it works. If it does, it means the connection is successful.

In addition, a method of directly using the network card configuration file (CentOS system) is introduced:

Host A (/etc/sysconfig/network-scripts/ifcfg-ipip-tunnel)

 DEVICE = ipip-tunnel
ONBOOT = yes
TYPE =IPIP
TTL =255
PEER_OUTER_IPADDR =2.2.2.2
PEER_INNER_IPADDR =10.0.1.2
MY_OUTER_IPADDR =1.1.1.1
MY_INNER_IPADDR =10.0.1.1

Host B (/etc/sysconfig/network-scripts/ifcfg-ipip-tunnel)

 DEVICE = ipip-tunnel
ONBOOT = yes
TYPE =IPIP
TTL =255
PEER_OUTER_IPADDR =1.1.1.1
PEER_INNER_IPADDR =10.0.1.1
MY_OUTER_IPADDR =2.2.2.2
MY_INNER_IPADDR =10.0.1.2

Then start the network card

Reprinted from: https://eqblog.com/ipip-tunnel.html

<<:  GigsGigsCloud: $34.3/month/8GB memory/250GB space/2TB traffic/Singapore/direct connection

>>:  Host4Porn: $9.9/month/3GB RAM/40GB SSD space/6TB bandwidth/1Gbps/KVM/New Jersey

Recommend

【Black Friday】BandwagonHost: Permanent 10% discount

Bricklayer Black Friday permanent 10% discount ht...

BitTorrent Sync - unlimited space, P2P sharing

BitTorrent technology can realize the direct shar...

Namecheap: WordPress hosting, 100GB SSD space, 500K monthly visits, $16 per year

NameCheap, a very good domain name registrar, is ...

VPS, dedicated server one-click shielding Chinese IP (can be other countries)

This code can block domestic IP. Of course, by ch...

1GServers: $39/month/E3-1240v3/16GB memory/1TB hard drive/20TB bandwidth/Phoenix

1GServers, an American hosting provider, was esta...