You can enable SOCKS proxy support if you want to re-route your calls to the telegram bot api server (api.telergam.org) via an anonymous server.
If the proxy server requires authentication you need to provide a username and password. If not, the fields must be empty:
- The default port for socks5 is 1080.
- As the underlying request lib pools the agent, you need to restart node red when changing IP or the PORT.
You can google for free socks5 proxy in the internet to find one, however this is not recommended as you do not know who is able to intercept your calls to the telegram bot server. Traffic between you and the telegram server is done using the https protocol, but that is not 100% safe. You can also pay a provider of your choice for a socks5 instance running in the internet but the best choice is to set up your own one.
You can set up your own server for testing in your local network as follows: https://catonmat.net/linux-socks5-proxy
An easy way to set up your own server is creating a docker container using socks5-server which is available here: https://github.com/serjs/socks5-server
1. Open Container Station and Select "Create" from the menu and search for "serjs/go-socks5-proxy" and install the package.
7. Enter the IP of your Container Station and the port 1080 in your node-red telegram bot configuration and you are done.
Watch the output in the docker console. If user name and passord are wrong the output shows:
Network is now routed via the docker image in the container station in your local network. This is only for testing and not to improve security. Remember that the socks5 proxy should be running somewhere else in the internet.