I have a CentOS 7 box where there is tun0 interface. I want to forward traffic to a specific IP, originating from within the box, to go over the tun0.
I tried doing this
route add -host 18.104.22.168 dev tun0
also tried adding
iptables -t nat -I POSTROUTING 1 -o tun0 -j MASQUERADE
Nothing seems to work.