Libertea icon indicating copy to clipboard operation
Libertea copied to clipboard

tunnel two libertea server

Open ashkantoorani opened this issue 1 year ago • 7 comments

hi can i tunnel to libertea server from iran to another country. To connect to the global Internet, we need to tunnel 2 servers to access the international Internet, is it possible to connect 2 servers with Liberti, one in Iran and the other in a country with free Internet access!?

ashkantoorani avatar Apr 21 '23 00:04 ashkantoorani

Yes. The Secondary Proxy feature can be used to achieve this.

Install Libertea on your main server, then from the Routes tab click on "Add new secondary proxy" button, and run that code on your iran server.

After it installs, you'll see your iran server ip in "Secondary Proxies" section of "Routes" tab.

VZiChoushaDui avatar Apr 21 '23 13:04 VZiChoushaDui

Thank you for your response We need to change the type of configurations, for example, to connect to the account in Iran, we create 2 types of connections. 1- Vless+Ws 2- Vless+Ws+Random Sni or Host I don't know what is the basis of tunneling in this method that you said, using xray protocols or using haproxy But we need to be able to enter a series of protocols manually or you can add all types of protocols. We need to be able to disable or add a series of software, for example, remove Clash or Shadowsocks software and use the v2ray version, and in general we need to add or change different software, and we We need cloudflare clean ip because cloudflare ips are blocked in our country and we have to find clean ips to connect. Any financial assistance is needed, we will definitely help Your software is excellent and please consider our needs

iwdscorp avatar Apr 25 '23 11:04 iwdscorp

@iwdscorp

We support a variety of protocols, including vless+ws, you can enable/disable protocols from the Settings tab.

Also, since the recent updates we support V2RayNG clients as well as Clash.

You can also set custom ips for your domains in the domain settings in the "IP override" section.

We're commited to make Libertea better suited for the situation there, so any feedback regarding the current status is appreciated.

VZiChoushaDui avatar Apr 30 '23 09:04 VZiChoushaDui

I am interested in having more clarity over how Secondary Proxies tunnels traffic to the main Libertea server, like knowing the mechanism and the protocol under the hood.

LightMoon avatar May 02 '23 09:05 LightMoon

@LightMoon Secondary proxy works like how routing happens on CDN. your device creates a tls tunnel to the Secondary Proxy server, and the seconadry servers also create a tls tunnel to the main server and forwards the contents to it.

So the secondary proxy does not decode the protocol itself, it just routes the content inside the tls connection to the main server as-is, like a CDN would.

VZiChoushaDui avatar May 03 '23 09:05 VZiChoushaDui

i copied Secondary Proxies code to my iran server and wrote for me done and connected to my forign server ip but i cant see in Routes

csharpfarsi avatar Jan 30 '24 07:01 csharpfarsi

@csharpfarsi Update to latest version and try again please

VZiChoushaDui avatar Jan 30 '24 20:01 VZiChoushaDui