ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • linux iptables
    카테고리 없음 2022. 7. 26. 13:19

    iptables --table nat --append PREROUTING --protocol tcp --dport 00 --jump REDIRECT --to-ports 000

     

    iptables 재시작 명령어

    /etc/init.d/iptables restart

    또는 service iptables start 

     

    100번 포트를 열고 싶을 경우, in, out 둘다 열어줘야 함
    #iptables -I INPUT 1 -p tcp --dport 100 -j ACCEPT 
    #iptables -I OUTPUT 1 -p tcp --dport 100 -j ACCEPT 

Designed by Tistory.