diff options
| author | Max Audron <audron@cocaine.farm> | 2025-10-22 17:59:59 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2025-10-22 18:01:05 +0200 |
| commit | c42d7c4594de675adfc60aa090c359a4a172acbd (patch) | |
| tree | 805206f02c9e2083d2d16c0e0495fd16bfca6646 /modules/tlmp/proxy.rules | |
| parent | add slskd (diff) | |
deploy soulseek and fix tlmp VPN
Diffstat (limited to 'modules/tlmp/proxy.rules')
| -rw-r--r-- | modules/tlmp/proxy.rules | 18 |
1 files changed, 18 insertions, 0 deletions
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 + } +} |
