title: How do I redirect certain traffic through the openVPN tunnel "Split tunnel"?
body: <p>I have an openvpn server residing in amazon cloud on subnet 172.168.1.0/24. I have another X-ec2 instance on another subnet 172.168.2.0/24. I am able to not route internet traffic through the VPN by removing </p>
  
  <pre><code>push "redirect-gateway def1"
  </code></pre>
  
  <p>on the server configuration file. My requirement is that all traffic to instances on amazon cloud on both subnets 172.168.1.0/24 &amp; 172.168.2.0/24 to go through the vpn tunnel so I added in the server.conf </p>
  
  <pre><code>push "route 172.168.1.0 255.255.255.0 vpn_gateway 1"
  push "route 172.168.2.0 255.255.255.0 vpn_gateway 2"
  </code></pre>
  
  <p>I am still unable to reach the X-ec2 instance from my client windows workstation connected to the vpn. Am I missing anything here? </p>
  
  <p>I also came across this <a href="https://stackoverflow.com/questions/15078250/samba-share-over-openvpn-split-tunneling">Samba Share Over OpenVPN, Split Tunneling?</a> but I done the exact same as told.</p>