Browse Source

use $nat.protocol instead of hardcoded tcp

master
lub 1 year ago
parent
commit
c0e8c99380
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      example.yml
  2. +2
    -2
      expose_forwards.ps1

+ 1
- 1
example.yml View File

@ -58,7 +58,7 @@ services:
- "/gluster/docker/imninja_synapse/data/:/data/"
ports:
- "145.239.119.128:8448:8448"
- "145.239.119.128:42933:443"
- "145.239.119.128:42933:443/udp"
networks:
- homeserver
- database

+ 2
- 2
expose_forwards.ps1 View File

@ -160,8 +160,8 @@ foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse
Write-Output ('Add rule for {0}:{1}' -f $nat.ip,$nat.port)
$rule = @(
'-p','tcp'
'-m','tcp'
'-p',$nat.protocol
'-m',$nat.protocol
'--destination',$nat.ip
'--dport',$nat.port
'-j','DNAT'


Loading…
Cancel
Save