Hi all,
(I'm French sorry for by bad English)
I try to open port with OpenVPN i explain (port forwarding client).
We have a intranet with user and password to connect to VPN.
We want to open some port choosen by user:
Exemple :
Client 1 want to open port 10000
Client 2 want to open port 20000
How can we do that ?
Values 10000 and 20000 is accessible on a Msql database, but how can I transfer this parameter to VPN server when the client connect, and forwarding the correct port by client ?
I see a subject here but not exactly what we want :
https://forums.openvpn.net/topic7823.html
How can i proceed ?
Something like that :
iptables -t nat -A PREROUTING -p tcp --dport 1234 -j DNAT --to-destination 10.66.66.6
iptables -A FORWARD -s 10.66.66.6 -p tcp --dport 1234 -j ACCEPT
But how can i know if client 1 is 10.66.66.6 or something else ?