I'm currently developing an App to perform NAT hole punching to access openvpn servers behind NAT and CG-NAT firewalls.
I have this app running successfully under linux and am able to invoke openvpn using commandline parameters:
openvpn --remote <ip address> <dst port> --lport <src port> --config /etc/openvpn/clientconfig.ovpn
passing in the ip address and ports punched through to openvpn (linux version).
I'm in the process of porting this app to Android.
Is this possible from Android OpenVPN Connect using the intent. i.e. can I pass server IP address src and dst ports to OpenVPN Connect?
The IP address and destination port will be dynamic due to NAT so can't be in the profile. I can probably cope with having a fixed source port but it would be more robust if I can have this variable too.
Starting OpenVPN Connect from another app passing ip address and port
-
- OpenVpn Newbie
- Posts: 1
- Joined: Sat Feb 12, 2022 12:42 am