-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_frp_form_source.sh
More file actions
executable file
·54 lines (49 loc) · 1.24 KB
/
Copy pathinstall_frp_form_source.sh
File metadata and controls
executable file
·54 lines (49 loc) · 1.24 KB
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
#!/usr/bin/env bash
# FRP - fast reverse proxy
#
# this is installation script for frp
# it assumes you have
# - make
# - golang
# already installed
#
# Here are example configs for
#
# -----------------------------------------------------------
# CLIENT CONFIG (frpc.toml)
# -----------------------------------------------------------
#[common]
#server_addr = "REMOTE MACHINE IP ADDRESS"
#server_port = 7000
#
#[[proxies]]
#name = "udp_factorio"
#type = "udp"
#local_ip = "127.0.0.1"
#local_port = 34197
#remote_port = 34197
#
#[[proxies]]
#name = "tcp_minecraft"
#type = "tcp"
#local_ip = "127.0.0.1"
#local_port = 25565
#remote_port = 25565
# -----------------------------------------------------------
# command for running client
# frpc -c frpc.toml
# -----------------------------------------------------------
#SERVER CONFIG (frps.toml)
# -----------------------------------------------------------
#[common]
#bind_port = 7000
#bind_udp_port = 34197
# -----------------------------------------------------------
#command for running remote server:
#frps -c frps.toml
git clone https://github.com/fatedier/frp.git
cd frp
make
install -m755 ./bin/frps /usr/local/bin/
install -m755 ./bin/frpc /usr/local/bin/
echo "frp (frps i frpc) installed /usr/local/bin/"