sitkowsp
Hi to all,
I need a little help. I don't know if it is possible to do something like that.
My situation:
OpenVPN server on Debian VPS. 10.0.0.0/24.
Home network connected through debian client (eth0 192.168.1.10, tun0 10.0.0.253). On home router static route to 10.0.0.0/24 through 192.168.1.10)
Other clients (outside home network) are connecting to openvpn server. Every client or home network machine is visible to each other. (Yupii!! 🙂 )
Now is the problem - is it possilble to connect iPhone client to openVPN server, and redirect its traffic through home router gateway?
I'm not redirecting any traffic other then LAN through VPN. i've made client config file for iPhone and when i push "redirect-gateway def1" to it http traffic is redirecting but by the openvpn server gateway.
i've made two iptables rules on openvpn server to masquerade traffic and forward it. i've enabled ip_forward on it.
and i/ve stuck here. I don't know what else i need to do to forward traffic only form my iPhone to home router gateway. Can anybody help me?
Best regards to all.