티스토리 뷰
sudo 관련 내용은 여기
- /etc/pf.anchors 위치에 com.forwarding 파일을 아래 내용으로 생성한다.
$ sudo vi /etc/pf.anchors/com.forwarding
rdr pass on en0 inet proto tcp from any to any port 80 -> 192.168.10.10 port 8080
- 생성 한 com.forwarding 파일에 대한 syntext 검사
$ sudo pfctl -vn /etc/pf.anchors/com.forwarding
- /etc/pf.conf에 내용 추가
rdr-anchor "forwarding"
load anchor "forwarding" from "/etc/pf.anchors/com.forwarding"
* 주의: 아래와 같이 기존 rule 사이에 넣는다.
# # com.apple anchor point # scrub-anchor "com.apple/*" nat-anchor "com.apple/*" rdr-anchor "com.apple/*" rdr-anchor "forwarding" dummynet-anchor "com.apple/*" anchor "com.apple/*" load anchor "com.apple" from "/etc/pf.anchors/com.apple"
load anchor "forwarding" from "/etc/pf.anchors/com.forwarding" |
- 수동으로 설정 로드
$ sudo pfctl -ef /etc/pf.conf
- Total
- Today
- Yesterday
- firewall-cmd service
- aix compile
- mirrorlist
- Ignoring CMAKE_OSX_SYSROOT value
- 파티션 추가
- yum
- Repository
- update
- centos7
- lvremove
- ld 옵션
- 센트6
- CentOS
- fielddata
- 물리디스크
- postgresql11
- install
- CLion
- CMAKE_OSX_SYSROOT
- pf.anchors
- physicaldisk
- linux
- _status
- aix ld
- _stats
- vgcreate
- virtualbox
- noipath
- lvm 늘리기
- pfctl
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |