Set DNS and Default Route in PFSense from Console

Permanently? Not so easy. Temporarily, easy.

echo "nameserver x.x.x.x" > /etc/resolv.conf
route add default y.y.y.y

Where x.x.x.x is your DNS and y.y.y.y is your gateway.

Once you’re in the GUI, fix up the settings properly and you’re good.

No Comments.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Anti-Spam Quiz: