forked from rkhimojtaba/warpplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GeneralWarp
144 lines (107 loc) · 4.38 KB
/
GeneralWarp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
=============== General Warp ===============
# If you want to pass all traffic through Warp, use this method.
# in this method you can exclude some sites from warp.
# Do not forget that the traffic of Iranian sites is also warped.
1.-------------------------------------------------------------------------------------------------------------------------------------------------
wget https://github.com/ViRb3/wgcf/releases/download/v2.2.16/wgcf_2.2.16_linux_amd64
chmod +x wgcf_2.2.16_linux_amd64
mv wgcf_2.2.16_linux_amd64 /usr/bin/wgcf
rm wgcf_2.2.16_linux_amd64
2.-------------------------------------------------------------------------------------------------------------------------------------------------
wgcf register
wgcf generate
3.-------------------------------------------------------------------------------------------------------------------------------------------------
nano wgcf-account.toml
4.-------------------------------------------------------------------------------------------------------------------------------------------------
# Insert The Warp+ License between '' like below:
license_key = '0F9i2RE8-q0n8M6R7-230ztB7B'
# now you must save (Ctrl+X y Enter)
# (You can get the warp+ License form this Telegram bot : https://t.me/generatewarpplusbot)
5.-------------------------------------------------------------------------------------------------------------------------------------------------
wgcf update
wgcf generate
6.-------------------------------------------------------------------------------------------------------------------------------------------------
nano wgcf-profile.conf
# insert the below line before [peer]
Table = off
# save (Ctrl+X y Enter)
7.-------------------------------------------------------------------------------------------------------------------------------------------------
mkdir /etc/wireguard
8.-------------------------------------------------------------------------------------------------------------------------------------------------
sudo apt install wireguard-dkms wireguard-tools resolvconf
# then inter y and Enter
# if you recieved Abort repeat this step
9.-------------------------------------------------------------------------------------------------------------------------------------------------
sudo cp wgcf-profile.conf /etc/wireguard/warp.conf
10.-------------------------------------------------------------------------------------------------------------------------------------------------
sudo systemctl enable --now wg-quick@warp
# For Marzban Node is enough to step 10
# For Marzban Main Panel the following steps must be performed
11.-------------------------------------------------------------------------------------------------------------------------------------------------
nano /opt/marzban/xray_config.json
12.-------------------------------------------------------------------------------------------------------------------------------------------------
# Delete the codes from the beginning of "outbounds" to the end and replace the following codes
# If you want to exclude a site from Warp, put the domain address in the domain field between double quotes like "yahoo.com" and seprate this domains with Comma (,)
"outbounds": [
{
"tag": "warp",
"protocol": "freedom",
"streamSettings": {
"sockopt": {
"tcpFastOpen": true,
"interface": "warp"
}
}
},
{
"protocol": "blackhole",
"tag": "blackhole"
},
{
"tag": "DNS-Internal",
"protocol": "dns",
"settings": {
"address": "127.0.0.53",
"port": 53
}
},
{
"tag": "IP-SABET",
"protocol": "freedom",
"settings": {}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"outboundTag": "blackhole",
"ip": [
"geoip:private"
]
},
{
"type": "field",
"port": 53,
"network": "tcp,udp",
"outboundTag": "DNS-Internal"
},
{
"type": "field",
"outboundTag": "blackhole",
"protocol": [
"bittorrent"
]
},
{
"outboundTag": "IP-SABET",
"domain": [
"آدرس سایتی که میخواهید از وارپ عبور نکند",
"آدرس سایت بعدی"
],
"type": "field"
}
]
}
}