Thursday, February 1, 2024

Change the portainer admin password


Change the portainer admin password

If you need to change the Portainer admin password, follow these steps:

1. Stop the Portainer container by running the following command, replacing "ID" with the first four characters of the Portainer container ID:

docker stop ID


2. Pull the password reset container image:

docker pull portainer/helper-reset-password


3. Run the helper container, mounting the Portainer data volume:

docker run --rm -v portainer_data:/data portainer/helper-reset-password


If successful, you will see a message indicating that the password has been updated for the admin user, along with the new password:

2020/06/04 00:13:58 Password successfully updated for user: admin

2020/06/04 00:13:58 Use the following password to login: &_4#\3^5V8vLTd)E"NWiJBs26G*9HPl1


4. Restart the Portainer container:

docker start ID


Log in to Portainer using the new password provided in step 4. Once logged in, you can change the password back to your desired password by clicking your profile icon, selecting "My Account," and resetting the password as needed


Thursday, May 19, 2022

How to set up L2TP/IPsec VPN on Windows 10


L2TP/IPsec is a popular VPN protocol built-in to most modern platforms including Microsoft Windows 10. Using a built-in protocol can be a good choice as you do not have to install any extra applications or worry if they are written securely and bug free. Depending on your provider’s software they can be a little trickier to set up as you need to manually enter in your VPN configuration.

The following tutorial with plenty of screenshots will show you how to set up a L2TP/IPsec VPN on Windows 10 using the built-in capabilities of the operating system.

L2TP/IPsec Windows 10 setup

Step 1: Open Network settings

Click on the Network icon on the taskbar and then click on Network settings.

Win10 Network Settings

Step 2: Add a VPN connection

Click on the VPN option and then click on the Add a VPN connection.

Add a VPN Connection Win10

Step 3: Configure VPN connection

  1. Left-click the VPN provider drop down menu and select Windows (built-in).
  2. Click on the Connection name box and enter a name for your connection.
  3. Click the Server name or address box and enter a FQDN or IP address for your VPN server. Your VPN provider should have a list of their servers available on their website.
  4. Click the VPN type drop down menu and select Layer 2 Tunneling Protocol with IPsec (L2TP/IPsec).
  5. Click the Type of sign-in info drop down menu and select User name and password.

VPN Settings L2TP Win10

Step 4: Enter username and password (optional)

You may need to scroll down in the VPN configuration window to see the rest of the options, depending on the size of your Settings window.

If you desire, you can enter your VPN username and password in the appropriate fields and check the Remember my sign-in info and then you will not be asked for this information every time you activate your VPN connection.

When you are done entering all your information, click on the Save button to save your new VPN connection.

usernamepasswordblur

Step 5: Configure advanced settings

Under Related settings click on the Change adapter options choice.

advancedsettings l2tp win10

This will open a new window titled Network Connections. Right-click on your newly created connection and this will bring up another menu. Click on the Properties option in this menu.

vpn properties

This will open a Properties window for the connection. Select the Security tab in this window.

Under the Data encryption: drop-down menu select Require encryption (disconnect if server declines).

Check the Allow these protocols radio button and ensure that only the Microsoft CHAP Version 2 (MS-CHAP v2) is checked.

There might be cases such as geo-unblocking streaming services where you might not want your connection encrypted. But you would probably be better served by using Smart DNS or some other proxy service for this.

MS-CHAP v2 is the only protocol that is still considered secure.

securitytab1

There is still one more setting that you will need to set for most providers. Stay on the Security tab and click the Advanced settings button.

Once you have the advanced settings open, click on the Use preshared key for authentication radio button and enter the key provided by your VPN provider.

preshared key win10 l2tp

Most providers utilize a preshared key for authentication and this should be provided on their website, possibly in the client area or in the tutorials section.

Click the OK button on the Advanced properties. Then click the OK button on the Security tab.

Step 6: Connect to newly configured VPN

If you like, you can close any of the windows that you still have open from configuring your new VPN connection.

Click on the network icon on the taskbar and this will bring up a list of your configured connections.

Click on the name you gave your new configuration and this will bring up the NETWORK & INTERNET settings screen.

Click the name of your new configuration and this will reveal three buttons. Click the Connect button.

connect l2tp win10

Once you click the Connect button, you will see the Windows 10 spinner and some informative messages and then it should say Connected, if all went well.

l2tp connected win 10

It is a good idea to use a tool to check what your IP is, it should now be reported as your VPN server;

geoip l2tp win 10

And that is it! I now appear to be coming from the VPN server located in Chicago.

You can also check the network properties to get some information on your connection. Open the NETWORK & INTERNET window again by clicking on the network icon in the taskbar and selecting Network settings.

In the NETWORK & INTERNET window under Related settings select Change adapter options and this will bring up the Network Connections window. Right-click on the icon with the name of your VPN and select Status from that menu.

The General tab has some basic information but if you click on the Details tab you are provided with information about your VPN connection such as the cipher being used.

detailedstatus win10 l2tp

When you wish to disconnect from the VPN, you can click on the network icon and select your VPN connection profile which will bring up the NETWORK & INTERNET setting window again and click the Disconnect button.

disconnect l2tp win10

That is all there is to setting up a L2TP/IPsec VPN using the built-in Microsoft Windows 10 functionality. I hope you found this tutorial to be useful and are enjoying your new VPN connection.