Commit 38e5d6be authored by nanahira's avatar nanahira

add gwmark

parent 4712d6be
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
Address = {{address}} Address = {{address}}
PrivateKey = {{key}} PrivateKey = {{key}}
ListenPort = {{conn.localPort}} ListenPort = {{conn.localPort}}
{% if gwmark is defined %}
FwMark = {{conn.localGatewayMark}} FwMark = {{conn.localGatewayMark}}
{% endif %}
MTU = {{conn.mtu|int - 80}} MTU = {{conn.mtu|int - 80}}
Table = off Table = off
{% if dns != "" and (inventory_hostname_short == "103" and conn.name == "mc-drjin" or inventory_hostname_short == "218" and conn.name != "mc-drjin") %} {% if dns != "" and (inventory_hostname_short == "103" and conn.name == "mc-drjin" or inventory_hostname_short == "218" and conn.name != "mc-drjin") %}
......
...@@ -4,9 +4,7 @@ PrivateKey = {{key}} ...@@ -4,9 +4,7 @@ PrivateKey = {{key}}
{% if conn.frpType == "frpc" %} {% if conn.frpType == "frpc" %}
ListenPort = {{conn.localPort}} ListenPort = {{conn.localPort}}
{% endif %} {% endif %}
{% if gwmark is defined %}
FwMark = {{conn.localGatewayMark}} FwMark = {{conn.localGatewayMark}}
{% endif %}
MTU = {{conn.mtu|int - 80}} MTU = {{conn.mtu|int - 80}}
Table = off Table = off
{% if dns != "" and (inventory_hostname_short == "103" and conn.name == "mc-drjin" or inventory_hostname_short == "218" and conn.name != "mc-drjin") %} {% if dns != "" and (inventory_hostname_short == "103" and conn.name == "mc-drjin" or inventory_hostname_short == "218" and conn.name != "mc-drjin") %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment