I'am trying to set up a gre tunnel between the two of my Ubuntu vps's. Both servers have been used from fresh installations of Ubuntu 20.04. And have no firewall active.
I performed based on this tutorial and still cannot perform successful pings from neither side. Further I explain my setup.
ServerA: 2.2.2.2
ServerB: 3.3.3.3
I want to create a GRE tunnel from server A to server B.
I have ipforwarding enabled on both servers:
cat /proc/sys/net/ipv4/ip_forward
1
On server A I setup the tunnel using:
sudo modeprobe ip_gre
sudo iptunnel add gre1 mode gre local 2.2.2.2 remote 3.3.3.3 ttl 255
sudo ip addr add 10.0.0.1/30 dev gre1
sudo ip link set gre1 up
On server B I used the following commands just like server A with local and remote ips reversed:
sudo modeprobe ip_gre
sudo iptunnel add gre1 mode gre local 3.3.3.3 remote 2.2.2.2 ttl 255
sudo ip addr add 10.0.0.2/30 dev gre1
sudo ip link set gre1 up
Now I assume I should be able to ping each server from the other. But it is 100 percent packet loss. Please tell me which part of my instructions is wrong and if it is not how can I trace my ping packets to see where and who is dropping them.