iptables

    [TIL] well-known port

    [TIL] well-known port 날짜 2022.06.17. 목표 OpenSea 클론 코딩 배포 내용 well-known port 로 80 포트 배포 문제 해결 포트 구분 0번 ~ 1023번: 잘 알려진 포트 (well-known port) 1024번 ~ 49151번: 등록된 포트 (registered port) 49152번 ~ 65535번: 동적 포트 (dynamic port) iptables로 리다이렉팅 $ iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 iptables에서 옵션을 추가하여 num 번호가 붙은 정책 조회 $ iptables -L --line-numbers iptables에서 정책 ..