Indem du mit "-t" die entsprechenden Tabellen angibst, z.B. "raw", "nat", "mangle", "security".
Generell empfehle ich, dich intensiv mit iptables bzw. nftables zu befassen. ufw ist nur ein Frontend, die eigentliche Filterung findet woanders statt.
So dann mal der gewünschte Input:
Code
iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DOCKER all -- anywhere !localhost/8 ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 172.17.0.0/16 anywhere
MASQUERADE all -- 172.20.0.0/16 anywhere
MASQUERADE all -- 172.23.0.0/16 anywhere
MASQUERADE all -- 172.29.0.0/16 anywhere
MASQUERADE all -- 172.22.0.0/16 anywhere
MASQUERADE all -- 172.18.0.0/16 anywhere
MASQUERADE all -- 192.168.0.0/20 anywhere
MASQUERADE all -- 172.28.0.0/16 anywhere
MASQUERADE all -- 172.21.0.0/16 anywhere
MASQUERADE all -- 172.19.0.0/16 anywhere
MASQUERADE all -- syn-172-100-000-000.res.spectrum.com/16 anywhere
MASQUERADE all -- 172.24.0.0/16 anywhere
MASQUERADE all -- 172.25.0.0/16 anywhere
MASQUERADE tcp -- 172.24.0.2 172.24.0.2 tcp dpt:3001
MASQUERADE udp -- 172.18.0.2 172.18.0.2 udp dpt:51820
MASQUERADE tcp -- 172.21.0.2 172.21.0.2 tcp dpt:8000
MASQUERADE tcp -- 172.17.0.3 172.17.0.3 tcp dpt:9001
MASQUERADE tcp -- 192.168.0.2 192.168.0.2 tcp dpt:http
MASQUERADE tcp -- 172.29.0.2 172.29.0.2 tcp dpt:943
MASQUERADE tcp -- 172.17.0.2 172.17.0.2 tcp dpt:http-alt
MASQUERADE tcp -- syn-172-100-000-009.res.spectrum.com syn-172-100-000-009.res.spectrum.com tcp dpt:http
MASQUERADE tcp -- syn-172-100-000-006.res.spectrum.com syn-172-100-000-006.res.spectrum.com tcp dpt:22300
MASQUERADE tcp -- 192.168.0.2 192.168.0.2 tcp dpt:https
MASQUERADE udp -- 172.29.0.2 172.29.0.2 udp dpt:openvpn
MASQUERADE tcp -- 172.17.0.4 172.17.0.4 tcp dpt:http-alt
MASQUERADE tcp -- syn-172-100-000-007.res.spectrum.com syn-172-100-000-007.res.spectrum.com tcp dpt:postgresql
MASQUERADE tcp -- 172.29.0.2 172.29.0.2 tcp dpt:9443
MASQUERADE tcp -- syn-172-100-000-008.res.spectrum.com syn-172-100-000-008.res.spectrum.com tcp dpt:5216
Chain DOCKER (2 references)
target prot opt source destination
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
DNAT udp -- anywhere anywhere udp dpt:51820 to:172.18.0.2:51820
DNAT tcp -- anywhere anywhere tcp dpt:8000 to:172.21.0.2:8000
DNAT tcp -- anywhere anywhere tcp dpt:3001 to:172.24.0.2:3001
DNAT tcp -- anywhere anywhere tcp dpt:http-alt to:172.17.0.2:8080
DNAT tcp -- anywhere anywhere tcp dpt:32768 to:192.168.0.2:80
DNAT tcp -- anywhere anywhere tcp dpt:9001 to:172.17.0.3:9001
DNAT tcp -- anywhere anywhere tcp dpt:943 to:172.29.0.2:943
DNAT tcp -- anywhere anywhere tcp dpt:22300 to:172.100.0.6:22300
DNAT tcp -- anywhere anywhere tcp dpt:8111 to:172.100.0.9:80
DNAT udp -- anywhere anywhere udp dpt:openvpn to:172.29.0.2:1194
DNAT tcp -- anywhere anywhere tcp dpt:32769 to:192.168.0.2:443
DNAT tcp -- anywhere anywhere tcp dpt:3388 to:172.17.0.4:8080
DNAT tcp -- anywhere anywhere tcp dpt:postgresql to:172.100.0.7:5432
DNAT tcp -- anywhere anywhere tcp dpt:5216 to:172.100.0.8:5216
DNAT tcp -- anywhere anywhere tcp dpt:9443 to:172.29.0.2:9443
Alles anzeigen
Code
iptables -t raw -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Code
iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Alles anzeigen