2018-08-02 05:48:47 -04:00
|
|
|
# {{ incoming_port }} TCP: {{ tcp_forwarding }} UDP: {{ udp_forwarding }}
|
|
|
|
|
|
|
|
{% if tcp_forwarding == 1 or tcp_forwarding == true -%}
|
2018-08-01 07:18:17 -04:00
|
|
|
server {
|
2018-08-02 05:48:47 -04:00
|
|
|
listen {{ incoming_port }};
|
|
|
|
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
|
2018-08-01 07:18:17 -04:00
|
|
|
}
|
2018-08-02 05:48:47 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if udp_forwarding == 1 or udp_forwarding == true %}
|
|
|
|
server {
|
|
|
|
listen {{ incoming_port }} udp;
|
|
|
|
proxy_pass {{ forward_ip }}:{{ forwarding_port }};
|
|
|
|
}
|
|
|
|
{% endif %}
|