Some fixes

This commit is contained in:
santic-zombie
2026-03-01 15:10:02 +03:00
parent f48559dffa
commit 981d8ae59d
2 changed files with 12 additions and 5 deletions

View File

@@ -7,7 +7,13 @@ docker-compose up -d
# Some Fixes
On host:
On host (if internal docker net):
```
iptables -t nat -A POSTROUTING -p udp --dport 27733 -j MASQUERADE
```
On Router (macvlan):
```
/ip firewall nat
add chain=srcnat action=masquerade protocol=udp dst-address=11.1.1.29 dst-port=27733
```

View File

@@ -5,16 +5,17 @@ services:
build: .
container_name: quake_wars
restart: unless-stopped
ports:
- "27733:27733/udp"
# Uncomment if using a Docker internal network
# ports:
# - "27733:27733/udp"
volumes:
- ./config/server.cfg:/root/.etqw/base/server.cfg
networks:
vlan5:
ipv4_address: 11.1.1.29
command: +exec server.cfg
stdin_open: true # Аналог -i (для работы консоли)
tty: true # Аналог -t
# stdin_open: true # Аналог -i (для работы консоли)
# tty: true # Аналог -t
networks:
vlan5: