VPN on Linux

Introduction

To access university resources from home, you need to configure a VPN connection.

Supported Systems This guide covers Debian and its derivatives (Ubuntu, Linux Mint, Pop!_OS, etc.).

Configuration Guide

Install Packages

Open a terminal and install the required SSTP client packages:

sudo apt install sstp-client network-manager-sstp network-manager-sstp-gnome

Restart Network

Restart your computer or log out and log back in to ensure the Network Manager plugins are loaded.

Add Connection

  1. Open SettingsNetworkVPN.
  2. Click + and select SSTP VPN.

SSTP Selection

Basic Settings

Enter the following details:

  • Connection name: PJWSTK VPN
  • Gateway: vpn.pjwstk.edu.pl
  • Username: sXXXXX@pjwstk.edu.pl
  • Password: Your PJWSTK password

Check: “Store password only for this user” (optional but recommended).

VPN Login

Advanced Settings

Click Advanced… and configure Point-to-Point:

  • Uncheck all methods except Microsoft CHAP, version 2 (MS-CHAP v2).
  • Check “Use Point-to-Point encryption (MPPE)” -> All Available (Default).
  • Check “Allow Stateful Encryption”.
  • Check “Allow BSD data compression”.
  • Check “Allow Deflate data compression”.
  • Check “Use TCP header compression”.

Advanced Settings

IPv4 Routing

Go to the IPv4 tab:

  1. Check: “Use this connection only for resources on its network”.

  2. Uncheck: “Automatic” (DNS) and “Automatic” (Routes).

  3. DNS: Enter 10.1.1.32, 10.1.1.30.

  4. Routes: Add the following:

    10.0.0.0 8 0.0.0.0
    172.16.0.0 12 0.0.0.0

IPv4 Settings

Disable IPv6

Go to the IPv6 tab and select Disable.

IPv6 Settings

Connect

  1. Click Apply to save.
  2. Toggle the VPN switch to ON.
Connected! You should now have access to internal resources like the Z: Drive.