[%]
도커2 - 자꾸 글올려서 조송합니다
yara(guswjd35)
2021-06-04 22:37
추천 0
root@ubuntu:~# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
PREROUTING_direct all -- anywhere anywhere
PREROUTING_ZONES all -- anywhere anywhere
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
OUTPUT_direct all -- anywhere anywhere
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.18.0.0/16 anywhere
POSTROUTING_direct all -- anywhere anywhere
POSTROUTING_ZONES all -- anywhere anywhere
MASQUERADE tcp -- 172.17.0.2 172.17.0.2 tcp dpt:mysql
Chain DOCKER (2 references)
target prot opt source destination
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
DNAT tcp -- anywhere anywhere tcp dpt:mysql to:172.17.0.2:3306
Chain OUTPUT_direct (1 references)
target prot opt source destination
Chain POSTROUTING_ZONES (1 references)
target prot opt source destination
POST_public all -- anywhere anywhere [goto]
POST_public all -- anywhere anywhere [goto]
Chain POSTROUTING_direct (1 references)
target prot opt source destination
Chain POST_public (2 references)
target prot opt source destination
POST_public_pre all -- anywhere anywhere
POST_public_log all -- anywhere anywhere
POST_public_deny all -- anywhere anywhere
POST_public_allow all -- anywhere anywhere
POST_public_post all -- anywhere anywhere
Chain POST_public_allow (1 references)
target prot opt source destination
Chain POST_public_deny (1 references)
target prot opt source destination
Chain POST_public_log (1 references)
target prot opt source destination
Chain POST_public_post (1 references)
target prot opt source destination
Chain POST_public_pre (1 references)
target prot opt source destination
Chain PREROUTING_ZONES (1 references)
target prot opt source destination
PRE_public all -- anywhere anywhere [goto]
PRE_public all -- anywhere anywhere [goto]
Chain PREROUTING_direct (1 references)
target prot opt source destination
Chain PRE_public (2 references)
target prot opt source destination
PRE_public_pre all -- anywhere anywhere
PRE_public_log all -- anywhere anywhere
PRE_public_deny all -- anywhere anywhere
PRE_public_allow all -- anywhere anywhere
PRE_public_post all -- anywhere anywhere
Chain PRE_public_allow (1 references)
target prot opt source destination
Chain PRE_public_deny (1 references)
target prot opt source destination
Chain PRE_public_log (1 references)
target prot opt source destination
Chain PRE_public_post (1 references)
target prot opt source destination
Chain PRE_public_pre (1 references)
target prot opt source destination
해당 댓글은 삭제되었습니다.
정책 내용보면 딱히 문제될게 없지 않나요
이것만 봐서는 모르겠음. iptables을 빠삭하게 아는게 아니라서
ㅇ아 진짜 이거땜에 이틀동안 시간을 존나버리네요
firewalld 끄는건 시도해봣음??
안해보긴 했는데 호스트 os 에서 서버로 돌리는게 좀 있어서 그냥 껏다 키는것도 조금 부담이 되네요
https://unix.stackexchange.com/questions/199966/how-to-configure-centos-7-firewalld-to-allow-docker-containers-free-access-to-th
이런
질문글들이 있는걸 보니 영향을 주긴 주는 거 같다
와우 씨발
님
와
진짜 감사합니다.. 낼아침까지 오카 파서 링크 남겨놓을 테니 들어와주세요 카페 깊티라도 드릴게요 제가지금은 카톡을 못하는상태라서요 진짜 감사합니다
검색 키워드를 어떻게 잡으셨나요 ???
전혀생각못했네요
그냥 구글 검색창에 "docker firewalld" 이렇게 친게 전부임 공짜커피 ㄱㅅ
무엇이 근본적인 원인이엇을까. firewalld 안써봐서 전혀 모르겠네
저는 firewall 좀 써왔는데 public zone이나 제가 추가한 zone 외에 trusted zone 은 처음 보네요 근데 아마 내용보면 docker 쪽 인터페이스 에 마스커레이드 추가해준거 뿐이에요
커피 언제줌
https://open.kakao.com/o/sTujGdhd
까먹음 쏘리
님 들어오고 , 댓글이랑 톡방이랑 똑같은 단어 한번만 쳐주셈 님ㅇ인거인증
카페인