반응형
기본적으로 input policy가 drop이기 때문에 /etc/default/ufw
1 # /etc/default/ufw
2 #
3
4 # Set to yes to apply rules to support IPv6 (no means only IPv6 on loopback
5 # accepted). You will need to 'disable' and then 'enable' the firewall for
6 # the changes to take affect.
7 IPV6=yes
8
9 # Set the default input policy to ACCEPT, DROP, or REJECT. Please note that if
10 # you change this you will most likely want to adjust your rules.
11 DEFAULT_INPUT_POLICY="ACCEPT"
enable, disable, status로 시작, 종료, 확인 정도를 할 수 있다.
ch4rli3kop at ubuntu in ~
$ sudo ufw status
Status: active
To Action From
-- ------ ----
80 DENY Anywhere
22 DENY Anywhere
80 (v6) DENY Anywhere (v6)
22 (v6) DENY Anywhere (v6)
Inbound IP 차단
$ sudo ufw deny in from 192.168.41.155 to any port 23
Outbound IP 차단
$ sudo ufw deny out from any to 192.168.41.155 port 23
반응형
'Computer Science% > Network' 카테고리의 다른 글
Ultimate Guide to Debugging Bluetooth Smart / BLE Products 요약 (0) | 2020.07.10 |
---|---|
SSH Reverse tunneling (0) | 2020.06.24 |
sniff and spoof whth C (0) | 2020.05.09 |
Scapy Example (0) | 2020.05.09 |
네트워크 공부 (0) | 2018.07.15 |