Post

Tips in frp configuration

I have been using frp for two years, this time I am trying to somehow use xtcp using the latest version (0.54.0 as of Feb 28,2024).

I will not post a step-by-step tutorial here.

1. Getting JSON unmarshaling error with default toml config file

For the latest frp, the config file is no longer .ini . Instead, it uses .toml as file extension. So please remember to add double quote when you are inputing strings, e.g. ip address.

Reference

2. VPS Firewall

I am using Vultr to deploy a VPS for frp server. But I don’t know why the firewall in vultr cannot allow specific port to be open..I know there must be a solution, but I don’t want to waste time on it , at least for now.

The issue is like:

[W] [service.go:128] login to server failed: dial tcp [$IP]:[$YOURPORT]: i/o timeout.

How to solve (do it in your VPS):

1. Check the firewall status

1
firewall-cmd --zone=public --list-ports

2. Add port to the firewall

1
firewall-cmd --zone=public --add-port=[PORT NUMBER]/tcp --permanent

The port number could be a specific number(1234) or a range (1000-1500)

3. Update the firewall config

1
firewall-cmd --reload

Reference

3. XTCP Auto Fallback

I am too tired to rephrasing what others have written.

Official Auto Fallback Tutorial

Only simplified Chinese version has been provided.

4. RDP Configuration

I am still working on that. But one thing worth mentioning is that every time you use remote desktop to control Ubuntu, it will always pop up a window asking you to input the password to authenticate the ‘color profile’.

Solution for this:

Create a file (sudo may be required):

1
/etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla

and paste the following contents:

1
2
3
4
5
6
[Allow Colord all Users]
Identity=unix-user:*
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
ResultAny=no
ResultInactive=no
ResultActive=yes

Source

This post is licensed under CC BY 4.0 by the author.