2012년 5월 21일 월요일

Ubuntu firewall setting


1. Get the current running status of firewall
    $ sudo ufw status

2. Enable firewall
    $ sudo ufw enable

3. Disable firewall
    $ sudo ufw disable

4. Deny incomming packet
    $ sudo ufw deny <port>/<protocol>

    <port> is port number.
    <protocol> is like "tcp", "udp"

5. Deny IP address

    $ sudo ufw deny from <IP-Address>

6. More information
    $ man ufw


Source : http://fallingstar.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%AC-%EB%B0%A9%ED%99%94%EB%B2%BD-%EC%84%A4%EC%A0%95%ED%95%B4%EC%A0%9C%ED%95%98%EA%B8%B0