mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Shadowsocks plugin tcp_and_udp mode (#3868)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
PLUGIN_NAME= shadowsocks
|
||||
PLUGIN_VERSION= 1.0
|
||||
PLUGIN_REVISION= 2
|
||||
PLUGIN_VERSION= 1.1
|
||||
PLUGIN_COMMENT= Secure socks5 proxy
|
||||
PLUGIN_DEPENDS= shadowsocks-libev
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
+6
@@ -35,4 +35,10 @@
|
||||
<type>dropdown</type>
|
||||
<help>Choose the cipher to use for encryption.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.tcpudpmode</id>
|
||||
<label>Mode</label>
|
||||
<type>dropdown</type>
|
||||
<help>Choose TCP, UDP or both relay mode</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/shadowsocks/general</mount>
|
||||
<description>Shadowsocks configuration</description>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -46,5 +46,14 @@
|
||||
<chacha20-ietf-poly1305>ChaCha20-IETF-Poly1305</chacha20-ietf-poly1305>
|
||||
</OptionValues>
|
||||
</cipher>
|
||||
<tcpudpmode type="OptionField">
|
||||
<default>tcp_only</default>
|
||||
<Required>Y</Required>
|
||||
<OptionValues>
|
||||
<tcp_only>TCP only</tcp_only>
|
||||
<udp_only>UDP only</udp_only>
|
||||
<tcp_and_udp>TCP and UDP</tcp_and_udp>
|
||||
</OptionValues>
|
||||
</tcpudpmode>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"local_port":{{ OPNsense.shadowsocks.general.localport }},
|
||||
"password":"{{ OPNsense.shadowsocks.general.password }}",
|
||||
"timeout":60,
|
||||
"mode":"{{ OPNsense.shadowsocks.general.tcpudpmode }}",
|
||||
"method":"{{ OPNsense.shadowsocks.general.cipher }}"
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user