Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tun
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
tun
Commits
fcc33712
Commit
fcc33712
authored
Feb 11, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
f6ce39ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ansible/protocols/wgfrp/frpc.ini.j2
ansible/protocols/wgfrp/frpc.ini.j2
+2
-2
ansible/protocols/wgfrp/frps.ini.j2
ansible/protocols/wgfrp/frps.ini.j2
+1
-1
ansible/protocols/wgfrp/wgfrp.conf.j2
ansible/protocols/wgfrp/wgfrp.conf.j2
+2
-2
ansible/protocols/wgfrp/wgfrp.yaml
ansible/protocols/wgfrp/wgfrp.yaml
+3
-3
No files found.
ansible/protocols/wgfrp/frpc.ini.j2
View file @
fcc33712
[common]
[common]
server_addr = {{conn.remoteAddress}}
server_addr = {{conn.remoteAddress}}
server_port = {{conn.remoteFrpPort}}
server_port = {{conn.remoteFrp
s
Port}}
tcp_mux = true
tcp_mux = true
protocol = tcp
protocol = tcp
token = {{frp
_t
oken}}
token = {{frp
T
oken}}
[{{ansible_hostname_short}}_{{conn.name}}]
[{{ansible_hostname_short}}_{{conn.name}}]
privilege_mode = true
privilege_mode = true
...
...
ansible/protocols/wgfrp/frps.ini.j2
View file @
fcc33712
[common]
[common]
bind_port = {{frps_port}}
bind_port = {{frps_port}}
token = {{frp
_t
oken}}
token = {{frp
T
oken}}
tcp_mux = true
tcp_mux = true
ansible/protocols/wgfrp/wgfrp.conf.j2
View file @
fcc33712
[Interface]
[Interface]
Address = {{address}}
Address = {{address}}
PrivateKey = {{key}}
PrivateKey = {{key}}
{% if conn.frp
_t
ype == "frpc" %}
{% if conn.frp
T
ype == "frpc" %}
ListenPort = {{conn.localPort}}
ListenPort = {{conn.localPort}}
{% endif %}
{% endif %}
{% if gwmark is defined %}
{% if gwmark is defined %}
...
@@ -13,7 +13,7 @@ PreDown = dev=%i localPeerAddress={{conn.localPeerAddress}} remotePeerAddress={{
...
@@ -13,7 +13,7 @@ PreDown = dev=%i localPeerAddress={{conn.localPeerAddress}} remotePeerAddress={{
[Peer]
[Peer]
PublicKey = {{conn.wgPublicKey}}
PublicKey = {{conn.wgPublicKey}}
AllowedIPs = 0.0.0.0/0, ::/0
AllowedIPs = 0.0.0.0/0, ::/0
{% if conn.frp
_t
ype == "frps" %}
{% if conn.frp
T
ype == "frps" %}
Endpoint = 127.0.0.1:{{conn.remotePort}}
Endpoint = 127.0.0.1:{{conn.remotePort}}
PersistentKeepalive = 1
PersistentKeepalive = 1
{% endif %}
{% endif %}
ansible/protocols/wgfrp/wgfrp.yaml
View file @
fcc33712
...
@@ -47,15 +47,15 @@
...
@@ -47,15 +47,15 @@
template
:
template
:
src
:
'
frpc.ini.j2'
src
:
'
frpc.ini.j2'
dest
:
'
/etc/frp/{{conn.name}}.ini'
dest
:
'
/etc/frp/{{conn.name}}.ini'
when
:
'
conn.frp
_t
ype
==
"frpc"'
when
:
'
conn.frp
T
ype
==
"frpc"'
-
name
:
start frpc
-
name
:
start frpc
become
:
true
become
:
true
systemd
:
systemd
:
name
:
'
frpc@{{conn.name}}'
name
:
'
frpc@{{conn.name}}'
state
:
restarted
state
:
restarted
enabled
:
true
enabled
:
true
when
:
'
conn.frp
_t
ype
==
"frpc"'
when
:
'
conn.frp
T
ype
==
"frpc"'
-
name
:
register frps
-
name
:
register frps
set_fact
:
set_fact
:
frps_needed
:
1
frps_needed
:
1
when
:
'
conn.frp
_t
ype
==
"frps"'
when
:
'
conn.frp
T
ype
==
"frps"'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment