Shadowsocks plugin tcp_and_udp mode (#3868)

This commit is contained in:
xabbok255 2024-05-13 10:05:30 +03:00 committed by GitHub
parent 70de22e0c4
commit ff0b9042a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 3 deletions

View file

@ -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

View file

@ -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>

View file

@ -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>

View file

@ -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 %}