Skip to content

Instantly share code, notes, and snippets.

@nepeat
Created April 2, 2025 09:59
Show Gist options
  • Select an option

  • Save nepeat/697e14a1d1c5ce9b066f32dd1d2fded5 to your computer and use it in GitHub Desktop.

Select an option

Save nepeat/697e14a1d1c5ce9b066f32dd1d2fded5 to your computer and use it in GitHub Desktop.
lol_docker
how did i fuck up my firewall rules
```
Chain INPUT (policy DROP 8270 packets, 820K bytes)
pkts bytes target prot opt in out source destination
2061K 303M ACCEPT all -- lo any anywhere anywhere
9737K 81G ACCEPT all -- any any anywhere anywhere ctstate RELATED,ESTABLISHED
665 44138 ACCEPT icmp -- any any anywhere anywhere ctstate NEW,RELATED,ESTABLISHED
0 0 ACCEPT ipv6-icmp -- any any anywhere anywhere ctstate NEW,RELATED,ESTABLISHED
5920 883K ACCEPT tcp -- any any anywhere anywhere multiport dports ssh
25 1360 ACCEPT tcp -- any any anywhere anywhere multiport dports 9100
32621 1702K ACCEPT tcp -- any any anywhere anywhere multiport dports http,https,http-alt
0 0 ACCEPT all -- any any anywhere anywhere match-set internal_traffic4 src
```
i somehow how redis fucked
```
1:S 02 Apr 2025 09:33:45.613 * Before turning into a replica, using my own primary parameters to synthesize a cached primary: I may be able to synchronize with the new primary with just a partial transfer.
1:S 02 Apr 2025 09:33:45.613 * Connecting to PRIMARY 8.219.162.89:60115
1:S 02 Apr 2025 09:33:45.614 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:33:45.614 * REPLICAOF 8.219.162.89:60115 enabled (user request from 'id=37305 addr=47.96.76.105:40826 laddr=172.19.0.2:6379 fd=9 name=*redacted* user=*redacted* lib-name= lib-ver=')
1:M 02 Apr 2025 09:33:50.966 * Discarding previously cached primary state.
1:M 02 Apr 2025 09:33:50.966 * Setting secondary replication ID to 447382189556c58f202d79acd2da4b99f70d7b9c, valid up to offset: 40029780. New replication ID is d2fed054f109cd7dd6f483fee884ae7af30029f7
1:M 02 Apr 2025 09:33:50.966 * PRIMARY MODE enabled (user request from 'id=37305 addr=47.96.76.105:40826 laddr=172.19.0.2:6379 fd=9 name=*redacted* user=*redacted* lib-name= lib-ver=')
1:S 02 Apr 2025 09:34:35.498 * Before turning into a replica, using my own primary parameters to synthesize a cached primary: I may be able to synchronize with the new primary with just a partial transfer.
1:S 02 Apr 2025 09:34:35.498 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:35.498 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:35.498 * REPLICAOF 8.219.233.218:60134 enabled (user request from 'id=37377 addr=47.96.76.105:41024 laddr=172.19.0.2:6379 fd=14 name=*redacted* user=*redacted* lib-name= lib-ver=')
1:S 02 Apr 2025 09:34:35.697 # Error condition on socket for SYNC: Connection refused
1:S 02 Apr 2025 09:34:36.493 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:36.493 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:36.696 # Error condition on socket for SYNC: Connection refused
1:S 02 Apr 2025 09:34:37.503 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:37.503 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:37.699 # Error condition on socket for SYNC: Connection refused
1:S 02 Apr 2025 09:34:38.513 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:38.513 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:38.720 # Error condition on socket for SYNC: Connection refused
1:S 02 Apr 2025 09:34:39.523 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:39.523 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:39.726 # Error condition on socket for SYNC: Connection refused
1:S 02 Apr 2025 09:34:40.533 * Connecting to PRIMARY 8.219.233.218:60134
1:S 02 Apr 2025 09:34:40.533 * PRIMARY <-> REPLICA sync started
1:S 02 Apr 2025 09:34:40.724 # Error condition on socket for SYNC: Connection refused
1:M 02 Apr 2025 09:34:40.833 * Discarding previously cached primary state.
1:M 02 Apr 2025 09:34:40.833 * Setting secondary replication ID to d2fed054f109cd7dd6f483fee884ae7af30029f7, valid up to offset: 40034913. New replication ID is 6ca77f1bbd1b14e08277c445ea8cb89d1e4d0544
1:M 02 Apr 2025 09:34:40.833 * PRIMARY MODE enabled (user request from 'id=37377 addr=47.96.76.105:41024 laddr=172.19.0.2:6379 fd=14 name=*redacted* user=*redacted* lib-name= lib-ver=')
```
wait
MOTHERFUCKER
does docker -p disregard iptables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment