일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- x-pack
- miniconda
- docker
- ansible
- hardening
- freebsd
- PlayBook
- Kibana
- macos
- proxycfg
- 한글가이드
- ssh key 배포
- GitLab
- centos 8
- Windows
- Kibana server is not ready yet
- Proxy
- G-suite
- elastic stack
- Elasticsearch
- 보안양파
- 로그인불가
- XCP-ng
- application security
- xe guest utilities
- endpoint security
- bash
- pfsense
- ELASTIC
- Today
- Total
선 밖에 선 자유인
ipfw 방화벽 설정 본문
# vi /etc/rc.conf
firewall_enable="YES"
firewall_logging="YES"
firewall_type="/etc/firewall.conf"
# vi /etc/sysctl.conf
net.inet.ip.fw.verbose=1
net.inet.ip.fw.verbose_limit=5
# vi /etc/firewall.conf
--------------------------------------------------------------
# HTTP ACL
add 03100 allow ip from 192.168.0.100 to any 80 keep-state
add 03101 allow ip from 192.168.0.200 to any 80 keep-state
# FTP ACL
add 03110 allow ip from 192.168.0.100 to any 1021 keep-state
add 03111 allow ip from 192.168.0.200 to any 1021 keep-state
# SSH ACL
add 03150 allow ip from 192.168.0.100 to any 2222 keep-state
add 03151 allow ip from 192.168.0.200 to any 2222 keep-state
# All Deny
add 04000 deny all from any to any
--------------------------------------------------------------
# service ipfw start
# ipfw show