I succesfully installed a VPN server on my scaleway VPS, and I can ping and ssh my client (NAS behind a 4G router)
But now I struggled with port forwarding.
I’d like to redirect traffic from VPS_PUBLIC_IP:12345 to VPN_CLIENT_IP:22. (remote ssh access to my NAS)
I added PREROUTING and FORWARD rules in iptables, without success.
When I check kernel logs, I can see some incomming traffic on 12345 port, but the destination address is not the VPS_PUBLIC_IP, but anotter 10.8.xx.xxx address.
It seems to be my private IP.
So do I need to edit my iptable rules to deal with private IP instead of public one?
Do I have to add a kind of NAT rule in the scaleway GUI “Security groups” tab ?
Is ther any tutorials or advices for this use case?