WireGuard – Allow Local Network

the logo of a VPN app named WireGuard, depicting a white dragon against a red background

And by Local Network, I mean here on my workstation, not at the peer or VPN docker/server/provider.

I am not very knowledgeable with VPNs but I got to learn something new and when I do, I make a note of it. The problem was that when I have my VPN active to poke things at home, I could not print documents at my workstation at work.

Googled a lot, trid a few things and then realised that adding IP addresses to AllowedIPs in the PEER section, adds an exception for an IP address on the server’s side, NOT my workstation.

“Ooooh, what does this checkmark do?”

Confusingly enough, WireGuard names things differently between the Windows and the iOS app. So here’s what you need to check to gain access to your workstation’s local network:

  1. Open the WireGuard control panel.
  2. Click once on the vpn you want to change
  3. Click the EDIT button on the bottom right
  4. iOS: UN-Tick the box on the bottom left that says: “Exclude private IPs”, then click SAVE
    Windows: UN-Tick the box on the bottom left that says: “Block untunneled traffic (kill-switch)”, then click SAVE

Yes ,this poses a security risc, so I made two VPN profiles. One with and one without so I can easily switch from one to the other.

Loading

Static IP address in Linux (Debian)

You can give your Debian installation a static IP address by following these steps:

1. Determine your network interface name: Use the following command to determine the name of your network interface:

ip addr

This will display information about all of your network interfaces. Look for the interface that you want to configure with a fixed IP address. The interface name will be listed on the left-hand side of the output (e.g. eth0, enp0s3, etc.)

2. Edit the network configuration file: Use a text editor to edit the /etc/network/interfaces file. For example, you can use the nano editor by running the following command:

sudo nano /etc/network/interfaces

3. Configure the network interface: Add the following lines to the file, replacing the interface name and IP address with your own values:

auto <interface-name>
iface <interface-name> inet static
address <ip-address>
netmask <subnet-mask>
gateway <default-gateway>
dns-nameservers <dns-server-ip-address>

For example, if your network interface name is “eth0” and you want to set the IP address to “192.168.0.10”, the subnet mask to “255.255.255.0”, the default gateway to “192.168.0.1”, and the DNS server to “8.8.8.8”, the configuration would look like this:

auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8

4. Save and close the file: Press Ctrl+O to save the file, and then press Ctrl+X to close the editor.

5. Restart the networking service: Use the following command to restart the networking service and apply the changes:

sudo systemctl restart networking

After you’ve completed these steps, your Debian installation should have a fixed IP address. You can verify the configuration by using the “ip addr” command again and looking for the interface that you configured.

More info here: https://wiki.debian.org/NetworkConfiguration
Thanks to https://fosstodon.org/@HankB for the tips and better choice of words!

Loading

[Solved] HP LaserJet 300 colorMFP M375nw scan to network folder fails

“Cannot connect to the network folder. Ensure the shared folder name is correct”

TL;DR: Switch SMB 1.0/CIFS support ON in Windows 10. Share folder to everyone. Maybe use the computer’s user/pass. Done.

My HP LaserJet 300 colorMFP M375nw suddenly stopped scanning to a network folder in Windows 10. After many hours of futile searching, I have found the solution.

Perhaps it is not the safest solution, but heck it needs to work. Now.

If you have not changed anything to your share folder, please proceed to step 2.

STEP ONE.
Setting up your shared folder is a drag in Windows 10, since you can basically do it in multiple ways with one showing something differently than the other.

1. R-Click the folder that you want to share
2. Click Properties
3. Click the Share tab
4. Select Everyone in the pull-down menu
5. Click Add
6. Select Read/Write on the right of the Everyone entry
7. Click the Share button
8. Click Ready or OK
9. Close the Properties window

STEP TWO.
1. Open the control panel
2. Click Programs and Features
3. Click Programs and Functions in the top right corner
4. Click Add/Remove Windows Features in the left column. (the one with the shield ,I am translating this from Dutch)
5. Search for SMB 1.0/CIFS support and check that box
6. Click OK
7. Reboot

Thing should be working again and if not, do check if the shared folder address in your printer’s share panel is correct.

Loading