infinet / xt_wgobfs

Iptables WireGuard obfuscation extension
GNU General Public License v2.0
223 stars 24 forks source link

Different Keys For Tx/Rx #2

Closed PatrickstarWritesCode closed 1 year ago

PatrickstarWritesCode commented 1 year ago

Is it possible to use different secrets for send and receive traffic and is there any benefit in doing so?

Example:

Client:
iptables -t mangle -I INPUT -p udp -m udp --sport 6789 -j WGOBFS --key secretforserverTx --unobfs
iptables -t mangle -I OUTPUT -p udp -m udp --dport 6789 -j WGOBFS --key secretforserverRx --obfs
Server:
iptables -t mangle -I INPUT -p udp -m udp --dport 6789 -j WGOBFS --key secretforserverRx --unobfs
iptables -t mangle -I OUTPUT -p udp -m udp --sport 6789 -j WGOBFS --key secretforserverTx--obfs
infinet commented 1 year ago

Currently it is not possible. It seems make things too complicate.