Oglien |
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.6.74+rpt-rpi-2712
Architecture: arm64
Anonymous Coward a écrit :
Sinon, tu acceptes de nous donner l'adresse IP publique ainsi que les numéros de port ? Je ne pense pas que ce soit un gros risque en terme de sécurité mais tu est peut-être d'un autre avis.
|
En effet, je n'ai pas vraiment envie de la donner.
Euh... en fait si, j'ai plein de choses, sans doute créées par les différents Docker que j'ai installés... J'imagine que la réponse à ma question est là-dedans... Des idées pour m'aider à comprendre tout ça ?
Code :
- # Warning: table ip filter is managed by iptables-nft, do not touch!
- table ip filter {
- chain DOCKER {
- iifname != "br-8c4a20d2ad06" oifname "br-8c4a20d2ad06" ip daddr 172.18.0.2 tcp dport 8080 counter packets 0 bytes 0 accept
- iifname != "br-8c4a20d2ad06" oifname "br-8c4a20d2ad06" ip daddr 172.18.0.2 udp dport 6881 counter packets 0 bytes 0 accept
- iifname != "br-8c4a20d2ad06" oifname "br-8c4a20d2ad06" ip daddr 172.18.0.2 tcp dport 6881 counter packets 0 bytes 0 accept
- iifname != "br-177cb5287656" oifname "br-177cb5287656" ip daddr 172.23.0.2 tcp dport 9696 counter packets 0 bytes 0 accept
- iifname != "br-9b5e9864afa2" oifname "br-9b5e9864afa2" ip daddr 172.21.0.2 tcp dport 7878 counter packets 25 bytes 1428 accept
- iifname != "br-5c0f346baeed" oifname "br-5c0f346baeed" ip daddr 172.22.0.2 tcp dport 8191 counter packets 0 bytes 0 accept
- iifname != "br-7f8042d65a1b" oifname "br-7f8042d65a1b" ip daddr 172.20.0.2 tcp dport 9117 counter packets 0 bytes 0 accept
- iifname != "br-d893f3651dea" oifname "br-d893f3651dea" ip daddr 172.19.0.2 tcp dport 8081 counter packets 0 bytes 0 accept
- iifname != "br-d893f3651dea" oifname "br-d893f3651dea" counter packets 0 bytes 0 drop
- iifname != "br-177cb5287656" oifname "br-177cb5287656" counter packets 0 bytes 0 drop
- iifname != "br-5c0f346baeed" oifname "br-5c0f346baeed" counter packets 0 bytes 0 drop
- iifname != "br-7f8042d65a1b" oifname "br-7f8042d65a1b" counter packets 0 bytes 0 drop
- iifname != "br-8c4a20d2ad06" oifname "br-8c4a20d2ad06" counter packets 0 bytes 0 drop
- iifname != "br-9b5e9864afa2" oifname "br-9b5e9864afa2" counter packets 0 bytes 0 drop
- iifname != "docker0" oifname "docker0" counter packets 0 bytes 0 drop
- }
- chain DOCKER-ISOLATION-STAGE-1 {
- iifname "br-d893f3651dea" oifname != "br-d893f3651dea" counter packets 150 bytes 9000 jump DOCKER-ISOLATION-STAGE-2
- iifname "br-177cb5287656" oifname != "br-177cb5287656" counter packets 165 bytes 9900 jump DOCKER-ISOLATION-STAGE-2
- iifname "br-5c0f346baeed" oifname != "br-5c0f346baeed" counter packets 24 bytes 12402 jump DOCKER-ISOLATION-STAGE-2
- iifname "br-7f8042d65a1b" oifname != "br-7f8042d65a1b" counter packets 22 bytes 1320 jump DOCKER-ISOLATION-STAGE-2
- iifname "br-8c4a20d2ad06" oifname != "br-8c4a20d2ad06" counter packets 5483 bytes 329916 jump DOCKER-ISOLATION-STAGE-2
- iifname "br-9b5e9864afa2" oifname != "br-9b5e9864afa2" counter packets 549 bytes 228953 jump DOCKER-ISOLATION-STAGE-2
- iifname "docker0" oifname != "docker0" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2
- }
- chain FORWARD {
- type filter hook forward priority 0; policy drop;
- counter packets 6858 bytes 732590 jump DOCKER-USER
- counter packets 6858 bytes 732590 jump ts-forward
- counter packets 6858 bytes 732590 jump DOCKER-FORWARD
- }
- chain DOCKER-USER {
- counter packets 162321 bytes 98549487 return
- }
- chain INPUT {
- type filter hook input priority 0; policy accept;
- counter packets 12353 bytes 2829756 jump ts-input
- }
- chain DOCKER-FORWARD {
- counter packets 6858 bytes 732590 jump DOCKER-CT
- counter packets 6418 bytes 592919 jump DOCKER-ISOLATION-STAGE-1
- counter packets 6418 bytes 592919 jump DOCKER-BRIDGE
- iifname "br-d893f3651dea" counter packets 150 bytes 9000 accept
- iifname "br-177cb5287656" counter packets 165 bytes 9900 accept
- iifname "br-5c0f346baeed" counter packets 24 bytes 12402 accept
- iifname "br-7f8042d65a1b" counter packets 22 bytes 1320 accept
- iifname "br-8c4a20d2ad06" counter packets 5483 bytes 329916 accept
- iifname "br-9b5e9864afa2" counter packets 549 bytes 228953 accept
- iifname "docker0" counter packets 0 bytes 0 accept
- }
- chain DOCKER-BRIDGE {
- oifname "br-d893f3651dea" counter packets 0 bytes 0 jump DOCKER
- oifname "br-177cb5287656" counter packets 0 bytes 0 jump DOCKER
- oifname "br-5c0f346baeed" counter packets 0 bytes 0 jump DOCKER
- oifname "br-7f8042d65a1b" counter packets 0 bytes 0 jump DOCKER
- oifname "br-8c4a20d2ad06" counter packets 0 bytes 0 jump DOCKER
- oifname "br-9b5e9864afa2" counter packets 25 bytes 1428 jump DOCKER
- oifname "docker0" counter packets 0 bytes 0 jump DOCKER
- }
- chain DOCKER-CT {
- oifname "br-d893f3651dea" ct state related,established counter packets 0 bytes 0 accept
- oifname "br-177cb5287656" ct state related,established counter packets 0 bytes 0 accept
- oifname "br-5c0f346baeed" ct state related,established counter packets 0 bytes 0 accept
- oifname "br-7f8042d65a1b" ct state related,established counter packets 0 bytes 0 accept
- oifname "br-8c4a20d2ad06" ct state related,established counter packets 0 bytes 0 accept
- oifname "br-9b5e9864afa2" ct state related,established counter packets 440 bytes 139671 accept
- oifname "docker0" ct state related,established counter packets 0 bytes 0 accept
- }
- chain DOCKER-ISOLATION-STAGE-2 {
- oifname "docker0" counter packets 0 bytes 0 drop
- oifname "br-9b5e9864afa2" counter packets 0 bytes 0 drop
- oifname "br-8c4a20d2ad06" counter packets 0 bytes 0 drop
- oifname "br-7f8042d65a1b" counter packets 0 bytes 0 drop
- oifname "br-5c0f346baeed" counter packets 0 bytes 0 drop
- oifname "br-177cb5287656" counter packets 0 bytes 0 drop
- oifname "br-d893f3651dea" counter packets 0 bytes 0 drop
- }
- chain ts-input {
- iifname "lo" ip saddr 100.85.252.89 counter packets 0 bytes 0 accept
- iifname != "tailscale0" ip saddr 100.115.92.0/23 counter packets 0 bytes 0 return
- iifname != "tailscale0" ip saddr 100.64.0.0/10 counter packets 0 bytes 0 drop
- iifname "tailscale0" counter packets 132 bytes 14569 accept
- udp dport 41641 counter packets 0 bytes 0 accept
- }
- chain ts-forward {
- iifname "tailscale0" counter packets 0 bytes 0 meta mark set mark and 0xff00ffff xor 0x40000
- meta mark & 0x00ff0000 == 0x00040000 counter packets 0 bytes 0 accept
- oifname "tailscale0" ip saddr 100.64.0.0/10 counter packets 0 bytes 0 drop
- oifname "tailscale0" counter packets 0 bytes 0 accept
- }
- }
- # Warning: table ip nat is managed by iptables-nft, do not touch!
- table ip nat {
- chain PREROUTING {
- type nat hook prerouting priority -100; policy accept;
- fib daddr type local counter packets 676 bytes 299740 jump DOCKER
- }
- chain OUTPUT {
- type nat hook output priority -100; policy accept;
- ip daddr != 127.0.0.0/8 fib daddr type local counter packets 150 bytes 4500 jump DOCKER
- }
- chain POSTROUTING {
- type nat hook postrouting priority 100; policy accept;
- oifname != "docker0" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade
- counter packets 2229 bytes 163911 jump ts-postrouting
- oifname != "br-5c0f346baeed" ip saddr 172.22.0.0/16 counter packets 4855 bytes 152550 masquerade
- oifname != "br-177cb5287656" ip saddr 172.23.0.0/16 counter packets 4902 bytes 150498 masquerade
- oifname != "br-d893f3651dea" ip saddr 172.19.0.0/16 counter packets 5403 bytes 180558 masquerade
- oifname != "br-9b5e9864afa2" ip saddr 172.21.0.0/16 counter packets 4883 bytes 149358 masquerade
- oifname != "br-8c4a20d2ad06" ip saddr 172.18.0.0/16 counter packets 12957 bytes 863780 masquerade
- oifname != "br-7f8042d65a1b" ip saddr 172.20.0.0/16 counter packets 4844 bytes 147018 masquerade
- }
- chain DOCKER {
- iifname "docker0" counter packets 0 bytes 0 return
- iifname "br-9b5e9864afa2" counter packets 2 bytes 120 return
- iifname "br-8c4a20d2ad06" counter packets 1 bytes 88 return
- iifname "br-7f8042d65a1b" counter packets 0 bytes 0 return
- iifname "br-5c0f346baeed" counter packets 0 bytes 0 return
- iifname "br-177cb5287656" counter packets 0 bytes 0 return
- iifname "br-d893f3651dea" counter packets 0 bytes 0 return
- iifname != "br-d893f3651dea" tcp dport 8081 counter packets 0 bytes 0 dnat to 172.19.0.2:8081
- iifname != "br-7f8042d65a1b" tcp dport 9117 counter packets 0 bytes 0 dnat to 172.20.0.2:9117
- iifname != "br-5c0f346baeed" tcp dport 8191 counter packets 0 bytes 0 dnat to 172.22.0.2:8191
- iifname != "br-9b5e9864afa2" tcp dport 7878 counter packets 25 bytes 1428 dnat to 172.21.0.2:7878
- iifname != "br-177cb5287656" tcp dport 9696 counter packets 0 bytes 0 dnat to 172.23.0.2:9696
- iifname != "br-8c4a20d2ad06" tcp dport 6881 counter packets 0 bytes 0 dnat to 172.18.0.2:6881
- iifname != "br-8c4a20d2ad06" udp dport 6881 counter packets 0 bytes 0 dnat to 172.18.0.2:6881
- iifname != "br-8c4a20d2ad06" tcp dport 8080 counter packets 0 bytes 0 dnat to 172.18.0.2:8080
- }
- chain ts-postrouting {
- meta mark & 0x00ff0000 == 0x00040000 counter packets 0 bytes 0 masquerade
- }
- }
- # Warning: table ip6 filter is managed by iptables-nft, do not touch!
- table ip6 filter {
- chain DOCKER {
- }
- chain DOCKER-ISOLATION-STAGE-1 {
- }
- chain FORWARD {
- type filter hook forward priority 0; policy accept;
- counter packets 0 bytes 0 jump DOCKER-USER
- counter packets 0 bytes 0 jump ts-forward
- counter packets 0 bytes 0 jump DOCKER-FORWARD
- }
- chain DOCKER-USER {
- counter packets 0 bytes 0 return
- }
- chain INPUT {
- type filter hook input priority 0; policy accept;
- counter packets 2229 bytes 653042 jump ts-input
- }
- chain DOCKER-FORWARD {
- counter packets 0 bytes 0 jump DOCKER-CT
- counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1
- counter packets 0 bytes 0 jump DOCKER-BRIDGE
- }
- chain DOCKER-BRIDGE {
- }
- chain DOCKER-CT {
- }
- chain DOCKER-ISOLATION-STAGE-2 {
- }
- chain ts-input {
- iifname "lo" ip6 saddr fd7a:115c:a1e0::8801:fc5a counter packets 0 bytes 0 accept
- iifname "tailscale0" counter packets 0 bytes 0 accept
- udp dport 41641 counter packets 146 bytes 13432 accept
- }
- chain ts-forward {
- iifname "tailscale0" counter packets 0 bytes 0 meta mark set mark and 0xff00ffff xor 0x40000
- meta mark & 0x00ff0000 == 0x00040000 counter packets 0 bytes 0 accept
- oifname "tailscale0" counter packets 0 bytes 0 accept
- }
- }
- # Warning: table ip6 nat is managed by iptables-nft, do not touch!
- table ip6 nat {
- chain PREROUTING {
- type nat hook prerouting priority -100; policy accept;
- fib daddr type local counter packets 19 bytes 1748 jump DOCKER
- }
- chain OUTPUT {
- type nat hook output priority -100; policy accept;
- ip6 daddr != ::1 fib daddr type local counter packets 0 bytes 0 jump DOCKER
- }
- chain POSTROUTING {
- type nat hook postrouting priority 100; policy accept;
- counter packets 397 bytes 35533 jump ts-postrouting
- }
- chain DOCKER {
- }
- chain ts-postrouting {
- meta mark & 0x00ff0000 == 0x00040000 counter packets 0 bytes 0 XT target MASQUERADE not found
- }
- }
- table ip raw {
- chain PREROUTING {
- type filter hook prerouting priority -300; policy accept;
- iifname != "br-d893f3651dea" ip daddr 172.19.0.2 tcp dport 8081 counter packets 0 bytes 0 drop
- iifname != "br-7f8042d65a1b" ip daddr 172.20.0.2 tcp dport 9117 counter packets 0 bytes 0 drop
- iifname != "br-5c0f346baeed" ip daddr 172.22.0.2 tcp dport 8191 counter packets 0 bytes 0 drop
- iifname != "br-9b5e9864afa2" ip daddr 172.21.0.2 tcp dport 7878 counter packets 0 bytes 0 drop
- iifname != "br-177cb5287656" ip daddr 172.23.0.2 tcp dport 9696 counter packets 0 bytes 0 drop
- iifname != "br-8c4a20d2ad06" ip daddr 172.18.0.2 tcp dport 6881 counter packets 0 bytes 0 drop
- iifname != "br-8c4a20d2ad06" ip daddr 172.18.0.2 udp dport 6881 counter packets 0 bytes 0 drop
- iifname != "br-8c4a20d2ad06" ip daddr 172.18.0.2 tcp dport 8080 counter packets 0 bytes 0 drop
- }
- }
|
Message édité par Oglien le 09-03-2025 à 17:54:42
|