Document the psmf host (DNS, second tailscale netns instance, nginx vhosts, migration plan) and add the docker-dev-22 psmf-data-sync service plus the storage-23 pg_hba.conf entry it needs. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
11 lines
480 B
Bash
11 lines
480 B
Bash
#!/usr/bin/env bash
|
|
# best-effort cleanup, don't fail on missing pieces
|
|
# location: /usr/local/sbin/ts2-netns-down
|
|
|
|
iptables -t nat -D POSTROUTING -s 10.200.0.0/30 -o br0 -j MASQUERADE 2>/dev/null || true
|
|
iptables -D FORWARD -i veth-ts2 -o br0 -j ACCEPT 2>/dev/null || true
|
|
iptables -D FORWARD -o veth-ts2 -i br0 -m state --state RELATED,ESTABLISHED -j ACCEPT 2>/dev/null || true
|
|
|
|
ip link del veth-ts2 2>/dev/null || true
|
|
ip netns del ts2 2>/dev/null || true
|
|
rm -rf /etc/netns/ts2 |