From c42d7c4594de675adfc60aa090c359a4a172acbd Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 22 Oct 2025 17:59:59 +0200 Subject: deploy soulseek and fix tlmp VPN --- modules/tlmp/proxy.rules | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/tlmp/proxy.rules (limited to 'modules/tlmp/proxy.rules') diff --git a/modules/tlmp/proxy.rules b/modules/tlmp/proxy.rules new file mode 100644 index 0000000..e776387 --- /dev/null +++ b/modules/tlmp/proxy.rules @@ -0,0 +1,18 @@ +table ip wg { + chain prerouting { + type nat hook prerouting priority -100; policy accept; + tcp dport { 6881, 50300 } counter dnat to 10.10.10.2 + } + + chain outbound { + type nat hook postrouting priority 100; policy accept; + ip saddr 10.10.10.2 oif venet0 masquerade + ip daddr 10.10.10.2 masquerade + } + + chain forward { + type filter hook forward priority 100; policy accept; + ct state established,related accept + iifname "wg0" accept + } +} -- cgit v1.2.3