I've got 1 server and 2 clients. I want to route all traffic from "client2" and any other clients through the VPN but not through the VPN server's default route itself but back through "client" one of the clients on the VPN. Whats the best way to achieve this? Below is my attempt using ifconfig-push and iroute on "client" but how can I configure the "redirect-gateway" directive to route all traffic through "client" instead of the server?
I'm trying to do the same thing and I got most of it working. I don't think you need this route on ccd/client2 nor push "route ..." and change iroute on ccd/client to
also you need to be able to deal with the traffic from client 2 either by NAT or routing. And if you want all traffic from server to go through client, I'm not really sure how to do it.
I followed this guy's guide adapting a couple of things. Maybe it can help you
P.S. he used all those iroutes instead of what I wrote here but that was a bug and I believe it was fixed so my code should work. https://astojanov.github.io/blog/2013/0 ... outes.html