savages
I have VPS that I want to connect to using openvpn. each VPS is a client and my server is local. That allows me to have many VPS that connect to my server. In iptables I have added geoip routing. My goal is to route encrypted data to geographically located VPS and use them as my "exit node".
on the server openvpn uses interface tun21. and I can route packets to that interface. (tcpdump verifies that on tun21)
but openvpn does not send out those packets. (tcpdump on openvpn port)
psudo routing:
iptables mangle geoip
iptables fwmark route to tun21
iptables nat postrouting -o tun21 masquerade
* note I do not want the VPS to be able to access my local net, thus the tun21 masquerade.
????
Does openvpn filter the packets going into the tun?
Is there a better way of doing this?