Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

as you know pptp port is 1723 by default,know I forward port number 21 to 1723 on my CentOs VPN.

Know I wanna connect to my vpn (pptp) from port number 21.

How can I do it?

share|improve this question
up vote 4 down vote accepted

You can change this within your client config: The line looks like remote

You can add the port after the ip address:

remote 21

Thats it.

share|improve this answer
What is this "client config" that you refer to? You seem to be referring to a configuration file, but neither the question or answer specifies where that would be. After reading I looked in /etc/ppp. The page isn't very clear in distinguishing client/server config though. Would it also be possible to do this via the GUI? If not, what file is this you refer to? – Nateowami Aug 13 '15 at 1:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.