Skip to content

Commit

Permalink
changed stuff
Browse files Browse the repository at this point in the history
added --connection-age:4800 --parallel-cons:18
  • Loading branch information
persian-michael-scott authored May 28, 2024
1 parent 710da29 commit f56d1b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions scripts/RtTunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,16 @@ configure_arguments() {
if [ "$server_choice" == "2" ]; then
read -p "Please Enter IRAN IP(internal-server) : " server_ip
read -p "Please Enter Password (Please choose the same password on both servers): " password
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:127.0.0.1 --toport:multiport --password:$password --sni:$sni --terminate:24"
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:127.0.0.1 --toport:multiport --password:$password --sni:$sni --terminate:24 --connection-age:4800 --parallel-cons:18"
elif [ "$server_choice" == "1" ]; then
read -p "Please Enter Password (Please choose the same password on both servers): " password
read -p "Do you want to use fake upload? (yes/no): " use_fake_upload
if [ "$use_fake_upload" == "yes" ]; then
read -p "Enter upload-to-download ratio (e.g., 5 for 5:1 ratio): " upload_ratio
upload_ratio=$((upload_ratio - 1))
arguments="--iran --lport:23-65535 --sni:$sni --password:$password --noise:$upload_ratio --terminate:24"
arguments="--iran --lport:23-65535 --sni:$sni --password:$password --noise:$upload_ratio --terminate:24 --connection-age:4800 --parallel-cons:18"
else
arguments="--iran --lport:23-65535 --sni:$sni --password:$password --terminate:24"
arguments="--iran --lport:23-65535 --sni:$sni --password:$password --terminate:24 --connection-age:4800 --parallel-cons:18"
fi
else
echo "Invalid choice. Please enter '1' or '2'."
Expand Down Expand Up @@ -185,10 +185,10 @@ configure_arguments2() {
read -p "Please Enter Password (Please choose the same password on both servers): " password

if [ "$is_main_server" == "yes" ]; then
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:127.0.0.1 --toport:multiport --password:$password --sni:$sni --terminate:24"
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:127.0.0.1 --toport:multiport --password:$password --sni:$sni --terminate:24 --connection-age:4800 --parallel-cons:18"
elif [ "$is_main_server" == "no" ]; then
read -p "Enter your main IP (VPN Server): " main_ip
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:$main_ip --toport:multiport --password:$password --sni:$sni --terminate:24"
arguments="--kharej --iran-ip:$server_ip --iran-port:443 --toip:$main_ip --toport:multiport --password:$password --sni:$sni --terminate:24 --connection-age:4800 --parallel-cons:18"
else
echo "Invalid choice for main server. Please enter 'yes' or 'no'."
exit 1
Expand All @@ -200,9 +200,9 @@ configure_arguments2() {
if [ "$use_fake_upload" == "yes" ]; then
read -p "Enter upload-to-download ratio (e.g., 5 for 5:1 ratio): " upload_ratio
upload_ratio=$((upload_ratio - 1))
arguments="--iran --lport:23-65535 --password:$password --sni:$sni --noise:$upload_ratio --terminate:24"
arguments="--iran --lport:23-65535 --password:$password --sni:$sni --noise:$upload_ratio --terminate:24 --connection-age:4800 --parallel-cons:18"
else
arguments="--iran --lport:23-65535 --password:$password --sni:$sni --terminate:24"
arguments="--iran --lport:23-65535 --password:$password --sni:$sni --terminate:24 --connection-age:4800 --parallel-cons:18"
fi

num_ips=0
Expand Down

0 comments on commit f56d1b8

Please sign in to comment.