Machine has two interfaces ehternet, eth0 and tun interface, tun0.
tun interface is configured in p2p mode:-
ip tuntap add dev tun0 mode tun
ifconfig tun0 22.214.171.124 dstaddr 126.96.36.199 up
I have a program which reads the ip packets from tun interface.
your job:- configure the tun interface so that I can ping a set of ip addresses and it should get routed to the tun interface.
we can verify that packets are geting routed properly using
tshark -i tun0