방화벽이 켜져 있습니다. PF로 IP 93.184.220.29를 차단했지만 여전히 팝업으로 netstat -n.
어떻게 가능할까요?
jen:~ jen$ sudo pfctl -t blockedips -T show
Password:
No ALTQ support in kernel
ALTQ related functions disabled
93.184.220.29
출력
netstat -n
tcp4 0 0 192.168.2.4.51402 93.184.220.29.80 ESTABLISHED
tcp4 0 0 192.168.2.4.51401 93.184.220.29.80 ESTABLISHED
출력
sudo pfctl -s all
Password:
No ALTQ support in kernel
ALTQ related functions disabled
TRANSLATION RULES:
nat-anchor "com.apple/*" all
rdr-anchor "com.apple/*" all
FILTER RULES:
scrub-anchor "com.apple/*" all fragment reassemble
anchor "com.apple/*" all
block drop quick on ALL proto tcp from any to any port = 80
block drop quick on ALL proto udp from any to any port = 80
DUMMYNET RULES:
dummynet-anchor "com.apple/*" all
출력 :
sudo pfctl -vvv -s all
Password:
No ALTQ support in kernel
ALTQ related functions disabled
TRANSLATION RULES:
@0 nat-anchor "com.apple/*" all
[ Owner : nil Priority : 0 ]
[ Evaluations: 179894 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@0 rdr-anchor "com.apple/*" all
[ Owner : nil Priority : 0 ]
[ Evaluations: 574091 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
FILTER RULES:
@0 scrub-anchor "com.apple/*" all fragment reassemble
[ Owner : nil Priority : 0 ]
[ Evaluations: 1133714 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@0 anchor "com.apple/*" all
[ Owner : nil Priority : 0 ]
[ Evaluations: 574091 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@1 block drop inet from any to 93.184.220.29
[ Owner : nil Priority : 0 ]
[ Evaluations: 574091 Packets: 812 Bytes: 51968 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@2 block drop inet from any to 93.184.220.70
[ Owner : nil Priority : 0 ]
[ Evaluations: 573678 Packets: 210 Bytes: 13152 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@3 block drop quick on ALL proto tcp from any to any port = 80
[ Owner : nil Priority : 0 ]
[ Evaluations: 574091 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
@4 block drop quick on ALL proto tcp from any to any port = 53
[ Owner : nil Priority : 0 ]
[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
[ Inserted: uid 0 pid 68 ]
나는 sudo pfctl -s의 출력을 편집하고 추가했다.
—
jennifer ruurs
감사합니다 제니퍼, 출력 테이블 이름이 표시되지 않습니다
—
jaume
blockedips
, 나는 이와 비슷한 테이블을 볼 것으로 기대한다. (이것과 비슷한 : block drop on en1 from <badhosts> to any
). 테이블이 활성화되지 않았습니까? 출력의 끝에서 sudo pfctl -s all
, 당신은 TABLES
목록에있는 섹션 badblocks
? 출력을 추가 할 수 있습니까? sudo pfctl -T test 93.184.220.291
?
blockedips
그 IP 주소를 차단하지 않는 것 같습니다.sudo pfctl -s all
?