Use vpn client as gateway for other clients

Hello!

I run a openvpn client on a server. But I want it to act as a gateway, so I can redirect traffic easy from other clients in the network.

Right now Wan access die when I use the openvpn client as gatewt.

I used this setup many years ago, but I can’t get it to work. Any ideas? All help is very much appreciated!

Hi,
which OS is used on the “client” which should act as gateway? Have you ensure IP forwarding is enabled as well some NAT rules?

iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
sysctl net.ipv4.ip_forward=1

Is all you need, very strange that no one could give me the answer

That was, what I was referencing too, glad you already solved this! Right?