ip link add neta type gretap local {ip1} remote {ip2} ttl 255
ip addr add {fake_ip1} dev neta
ip link set neta up
iptables -I INPUT -p gre -s {ip2} -j ACCEPT
ip link add netb type gretap local {ip2} remote {ip1} ttl 255
ip addr add {fake_ip2} dev netb
ip link set netb up
iptables -I INPUT -p gre -s {ip1} -j ACCEPT