Personal tools

How can I override the DNS servers for PPTP clients?

From PFSenseDocs

Jump to: navigation, search

Currently, there is no easy way to override the DNS servers of PPTP clients in the PPTP configuration section of the WebGUI.

You can, however, override these settings by hand if you really need to change them.

Image:Important30.png WARNING Image:Important30.png
Backup your router configuration before attempting this change

Add Custom Servers

  • Click Diagnostics > Command
  • Click in the PHP Execute box, and type the following:
$config['pptpd']['dnsserver'] = array('x.x.x.x', 'y.y.y.y');
Replace x.x.x.x and y.y.y.y with your desired DNS servers!
  • Click Execute
  • Click VPN > PPTP
  • Click Save

Remove Custom Servers

If you ever need to reverse this change, you may do it like so:

  • Click Diagnostics > Command
  • Click in the PHP Execute box, and type the following:
unset($config['pptpd']['dnsserver']);
  • Click Execute
  • Click VPN > PPTP
  • Click Save