일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- proxycfg
- XCP-ng
- ssh key 배포
- ansible
- application security
- elastic stack
- centos 8
- 로그인불가
- G-suite
- Windows
- Kibana
- miniconda
- PlayBook
- endpoint security
- freebsd
- Kibana server is not ready yet
- ELASTIC
- docker
- Proxy
- xe guest utilities
- GitLab
- x-pack
- 보안양파
- pfsense
- hardening
- bash
- Elasticsearch
- macos
- 한글가이드
- 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