티스토리 뷰
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
- Repository
- install
- Ignoring CMAKE_OSX_SYSROOT value
- linux
- pf.anchors
- fielddata
- lvremove
- pfctl
- CLion
- 물리디스크
- virtualbox
- centos7
- aix compile
- CMAKE_OSX_SYSROOT
- CentOS
- _status
- 파티션 추가
- ld 옵션
- yum
- 센트6
- vgcreate
- physicaldisk
- _stats
- mirrorlist
- aix ld
- noipath
- lvm 늘리기
- update
- firewall-cmd service
- postgresql11
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |