[mac] port forwarding: pfctl
- MAC HTTPS 연결
- [문제점] : MAC의 경우 1000이하의 port ( 80, 443 ) 막아둠
- [해결방법] port tunneling (pfctl 사용: control the packet a filter):
- 실행
$sudo pfctl -ef "filename.conf"
- [ filename.conf]
rdr-anchor "forwarding"
load anchor "forwarding" from "/etc/pf.anchors/eclipse.tomcat.forwarding"
- [eclipse.tomcat.forwarding]
rdr pass on lo0 inet proto tcp from any to ip port {443, 8443} -> targetip port target-port //case your local ip
rdr pass on vmnet8 inet proto tcp from any to ip port {443, 8443} -> targetip port target-port //case when window vm ware network
- port forwarding 중지
$sudo pfctl -d
댓글 없음:
댓글 쓰기