How to use a different port than standard

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
pezgoon
OpenVpn Newbie
Posts: 2
Joined: Mon Sep 23, 2019 10:25 pm

How to use a different port than standard

Post by pezgoon » Mon Sep 23, 2019 10:29 pm

Hello there, so I am setting up PiVPN and openvpn connect on IOS, so everything on the PI is fine, but I am attempting to use a different port in the interest of more security (random number of my own) when I tried to import the profile with the port I'm using openvpn connect said "improper port cannot import profile" so I adjusted the profile and imported it and now want it to use my port.

From what I can see I need to do that through the proxy section? I have no idea how to set that section up and want to make sure it is done correctly, is the host IP the "in network" IP of the PI or public facing one?

port I'm guessing is the port I actually want

Username and password I'm not sure what would go here?

and does any of this have to do with the "server override" option?

Thanks for your help.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to use a different port than standard

Post by TinCanTech » Mon Sep 23, 2019 10:59 pm

Are you using your own openvpn server ?

pezgoon
OpenVpn Newbie
Posts: 2
Joined: Mon Sep 23, 2019 10:25 pm

Re: How to use a different port than standard

Post by pezgoon » Tue Sep 24, 2019 10:16 pm

TinCanTech wrote:
Mon Sep 23, 2019 10:59 pm
Are you using your own openvpn server ?
Yes? The raspberry pi is the server

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: How to use a different port than standard

Post by TinCanTech » Tue Sep 24, 2019 10:28 pm

Client:

Code: Select all

remote 666.666.666.666 66666 udp
66666 would be the port number.

Server:

Code: Select all

port 66666

Post Reply