ip tunnel add vpntestA mode gre remote 172.20.10.20 local 172.20.5.10 ikay 10.20.5.10 okey 5.10.10.20

ip tunnel add vpntestB mode gre remote 172.20.5.10 local 172.20.10.20 ikey 5.10.10.20 okay 10.20.5.10

ip link set dev vpntestA up mtu 1400

ip addr add 10.91.10.1/30 dev vpntestA

ip link set dev vpntestB up mtu 1400

ip addr add 10.91.10.2/30 dev vpntestB

ping 10.91.10.1

ip r g 10.91.10.1

ip r a 192.168.2.0/24 dev vpntestA

nat

iptables -I In

ip rule

ip route add 0.0.0.0/0 via 192.168.2.1 dev vpntestA table 6500

ip rule add from 192.168.1.100/32 table 6500 pref 6500

iptables-save