/FRP-V2ray-Loadbalance

FRP Script - TCP - V2ray - Loadbalance - Different methods

Primary LanguageShellMIT LicenseMIT

R (2) Project Overview: FRP-TCP Tunnel-Loadbalance

OIP Navigate to my Script


langLanguages


check Features :

  • You can establish a TCP tunnel with IPV6 on single or mutliple ports.

  • You can also do a simple IPV4 tunnel.

  • You can create a load balance up to 6 IPV6 on single or multiple ports[for loadbalance multiple ports, the connection will be chosen randomly so I prefer different IPV6 on single port].

  • You can specify port range and establish a tunnel with IPV4/6

  • You can setup FRP with dashboard if you want to with your desired Sub-domain, username/password and custom port for your dashboard.

  • There is a service status in the main menu.

  • There is a restart button to restart the services.

  • It should support x86 and amd64.


1234 Guide

  • I will describe how to configure FRP simple config, load balancing on single and multiple ports and the dashboard as well. [ use this as a sample]
  • First configure your iran server please !

3022470 First configure your iran server

FRP Kharej - Simple V2ray Config

KHAREJ-SIMPLE IPV6

  • Enter your Iran & Kharej IPV6

  • Tunnel port can be any port, i used 443 here. [Same value for both iran & kharej]

  • Tunnel token is like a password [for example : azumi][Same value for both iran & kharej]

  • Kharej V2ray port is your original port[for example 8080]

  • Iran V2ray port will be your new port used in V2rayng [for example 8081]

  • You can specify port range if you have a lot of ports. for example: kharej v2ray ports = 8080,8081,8082 | iran v2ray ports = 8080,8081,8082


FRP Iran - Simple V2ray Config with Dashboard

Exclamation-Mark-PNG-Clipart Don't use Capital words like here

IRAN DASHBOARD2

  • Tunnel port can be anything, i used 332[Same value for both Kharej & Iran]

  • Tunnel token is like password [for example azumi]

  • Iran v2ray port will be your new port used in V2rayng [for example 8081]

  • Kharej V2ray port is your original port [for example 8080]

  • Enter your subdomain and your email [it's not in the picture above]

  • Enter your desired Dashboard username/password and port.[ i used azumi for username/password and 700 as port]

  • You can connect to your tunnel dashboard using https://sub-domain.com:700. << This is an example.

  • Do the same thing in iran side as well. you can specify port range if you have a lot of ports. for example: kharej v2ray ports = 8080,8081,8082 | iran v2ray ports = 8080,8081,8082 < this is an example

    R (12) Additional example :

    • You can use different methods if you want. for example you can establish a tunnel using 3 kharej IPV6 with different ports and on iran side, from the menu, choose single config and use a port range instead. ( you don't need to choose mutli config if you don't want to)
    • for example :
      1. Kharej server : IPV6-1 kharej v2ray port : 8080 | iran v2ray port : 8080 ---- IPV6-2 kharej v2ray port : 8081 | iran v2ray port : 8081
      2. iran server : kharej v2ray port : 8080,8081 | iran v2ray port : 8080,8081
  • Multi config on iran menu is there for people who wants to use different ipv6 for every port on iran side as well and not just kharej side.


FRP Kharej - Simple V2ray Multiple ports

Exclamation-Mark-PNG-Clipart I used 3 IPV6 with three different ports [You can test different methods]

simple ipv6 mutli

  • Create 4 IPV6 for iran, one for tunnel and 3 for different ports.

  • Create 3 Kharej IPV6 for different ports.

  • Enter your Iran IPV6.

  • Kharej V2ray port is your original v2ray port [for example 8080]

  • Iran V2ray port will be your new v2ray port [here we use the same port for kharej and iran v2ray port, you can use a different port than the original one for iran side].

  • I used the same port for Iran & Kharej V2ray port for every IPV6 that i have added.

  • Enter a different port for each new Kharej IPV6.

  • Enter as many Kharej IPV6s as you want, I chose 3 IPV6s.

  • Enter the health check interval for each Khare IPV6 [for example 10 seconds].

  • For this method to work, this Iran's config is suitable [ It's in FRP simple V2ray-iran-Mutliple Config menu] since you need to give one ipv6 for every different port on iran side as well.

  • On kharej side there is a tcp health check.


FRP Iran - Simple V2ray Multiple Ports

Exclamation-Mark-PNG-Clipart I used 3 IPV6 for iran[3 IPV6 for kharej]

simple iran multi

  • I used one Iran IPV6 for the tunnel in the Kharej server above.
  • Enter your remaining Iran IPV6 when prompted.
  • Enter your subdomain and email, choose a username, password and port when asked.
  • Enter Tunnel Port [for example 443 or any port you want]- Same value for both Kharej & Iran
  • Enter Iran and Kharej v2ray port, I used the same port for each new IPV6. [You can test different ports.]
  • Kharej v2ray port is your original v2ray port and Iran v2ray port is your new v2ray port.
  • This works well with Kharej multiple IPV6 and ports[ Directory : FRP Simple V2ray-Kharej-IPV6-Six ipv6 tunnel]
  • Make sure to enter the same port for iran side as you have choosen on kharej server. for example if you have choosen 8080 for kharej v2ray port on kharej side, you should enter the same port for kharej v2ray port on iran side.

Exclamation-Mark-PNG-Clipart Additional Info :

  • You can use different methods, you don't need to use mutli config on iran side if you don't want to set an ipv6 for every port.
  • let me give you an example :
  • A. Kharej side: You have 2 IPV6 | IPV6-1 - Kharej v2ray port : 8080 - Iran v2ray port : 8080 | IPV6-2 - Kharej v2ray port : 8081 - Iran v2ray port : 8081
  • B. Iran side : You have selected single config : Kharej v2ray port : 8080,8081 | Iran v2ray port : 8080,8081
  • or you can use mutli config for iran server and proceed with the examples given in the picture above. ( for each ipv6, you enter a new port)

LoadBalance Kharej Single Port

LOADBALANCE SINGLE PORT KHAREJ

  • I have chosen 3 Kharej IPV6 and 1 Iran IPV6 for this purpose.
  • Tunnel token is like password [Don't use capital word. Same value for Kharej & Iran. For example : azumi].
  • Tunnel Port is the same for Kharej & Iran. [For example : 443]
  • Enter your Iran IPV6 address.
  • Kharej V2ray port is your original v2ray port [e.g. 8080].
  • Iran V2ray port will be your new v2ray port [for example 8081,443 etc..].
  • Select health check interval for each Kharej IPV6 [for example 10 seconds].

Exclamation-Mark-PNG-Clipart NOTE

  • You can choose a single port for your kharej & iran v2ray ports. [ for example : if you have 2 IPV6, for each ipv6 you enter a single point for iran & kharej v2ray port] for example kharej & iran v2ray ports : both 8080 OR kharej v2ray port 8080 | Iran v2ray port 443

  • You can choose a different port for iran and another for kharej v2ray port. for example : 443 for iran, 8080 for kharej

  • You only need one IPV6 for iran server.

  • You can have as many IPV6 for kharej server.

  • Make sure to enter the same port for iran side as you have choosen on kharej server. for example if you have choosen 8080 for kharej v2ray port on kharej side, you should enter the same port for kharej v2ray port on iran side.


Loadbalance Iran Single Port

IRAN DASHBOARD2

  • Tunnel token is like password [same value you entered in kharej server. For example : azumi].
  • Tunnel port can be any port [same value you entered in kharej server, for example : 443].
  • Enter your dashboard username, password and desired port. [for example : https://yourdomain.com:700]
  • Kharej V2ray port is your original v2ray port [e.g. 8080].
  • Iran V2ray port will be your new v2ray port [for example 8081,443 etc..].you can also use the same port for iran & kharej v2ray port.
  • One single port for both Kharej & iran V2ray port.

R (12) Additional info : Loadbalance Multiple ports

  • For loadbalancing multiple ports, it uses random method. it means if you have different ports, it may connect to one port at a time as the loadbalancer is working like that. that is why i prefer multiple IPV6 on a single port. [You can try different method and different ports.]
  • Let's say you have 3 Kharej IPV6 with three different ports[ 8080-8081-8082], for your first kharej IPV6... you enter 8080 for both kharej/iran v2ray port and so on. [You can of course enter 8080 for kharej V2ray port and one single port [443] for every Iran V2ray ports.
  • On iran side, if you are using one local ip, you should give port range for kharej/iran v2ray port. for example : kharej v2ray port : 8080,8081,8082 - iran v2ray port : 8080,8081,8082 << This should be done on iran side- loadbalance section.
  • On iran side, if you are using three local ips[Iran IPV6} , you can enter the ports for every IPV6 seperately.<< this is available on simple v2ray tunnel nad it is not considered loadbalance hence not in loadbalance section.
  • Don't use capital words when entering your inputs.
  • Always configure iran server first.
  • Make sure to enter the same port for iran side as you have choosen on kharej server. for example if you have choosen 8080 for kharej v2ray port on kharej side, you should enter the same port for kharej v2ray port on iran side.

R (3) Helpful Scripts

  • First, although it's optional, I recommend using the opiran vps optimiser or any other script you prefer:
apt install curl -y && bash <(curl -s https://raw.githubusercontent.com/opiran-club/VPS-Optimizer/main/optimizer.sh --ipv4)
  • You can make extra Native IPV6 easily with this script below :
bash <(curl -s -L https://raw.githubusercontent.com/opiran-club/softether/main/opiran-seth)

R (a2) My Script

apt install curl -y && bash <(curl -Ls https://raw.githubusercontent.com/Azumi67/FRP-V2ray-Loadbalance/main/frptcp.sh --ipv4)

R (7) Telegram channel : R (6) OPIRAN


R23 (1)

circle-clipart-chain-link-9FRP-Source

circle-clipart-chain-link-9VPS-optimize & Extra IP


youtube-131994968075841675 Video Guide : Soon


R (2) تانل TCP با لود بالانس

check امکانات

  • ایجاد تانل TCP با ایپی ورژن 4 و 6 ( به طور مثال برای V2ray ایجاد کنید.)
  • میتوانید از تک یا چندین پورت اگر تعداد کانفیگ بیشتری دارید برای تانل استفاده نمایید.
  • میتوانید از port range استفاده نمایید اگر پورت های زیادی دارید.( امکان تانل با ایپی 4 و 6)
  • میتوانید برای هر پورت یک ایپی ورژن 6 اختصاص دهید و بر روی تک پورت، لود بالانس ایجاد نمایید.
  • میتوانید بر روی چندین پورت با ایپی ورژن های مختلف ، لود بالانس ایجاد نمایید. (کانکشن رندوم خواهد بود.)
  • قابلیت TCP healthcheck برای لود بالانس
  • امکان ایجاد داشبورد تانل با ساب دامین، نام کاربری، رمز عبور و پورت دلخواه شما.
  • امکان مشاهده سرویس و ریست کردن آن.
  • پشتیبانی از x86 و amd64.

1234 آموزش

  • نخست سرور ایران را کانفیگ کنید.

KHAREJ-SIMPLE IPV6

  • ایپی 6 ایران و خارج را وارد نمایید.
  • پورت تانل میتواند هر پورتی باشد ( پورت تانل باید برای ایران و خارج یکسان باشد)
  • توکن تانل مانند پسورد میباشد ( توکن برای ایران و خارج یکسان میباشد)
  • پورت v2ray خارج، پورت اصلی کانفیک شما است.
  • پورت v2ray ایران، پورت v2rayng شما خواهد بود.
  • برای تعداد بالای پورت میتوان از port range استفاده نمایید. به طور مثال : پورت v2ray خارج : 8080,8081,8082 و برای پورت v2ray ایران : 8080,8081,8082