[Noob] Firewall script problem - hmmm it doesn work... help

Discussion in 'HyperWRT Firmware' started by Bhaarth, Jul 23, 2005.

  1. Bhaarth

    Bhaarth Guest

    Hi all,

    Today I have flashed my WRT54G with HyperWRT. Main reason was that I want to setup better firewall than in normal firmware etc.

    I configured all GUI-stuff but I have great problems with firewall script. Because im linux noob I have started with something simple.

    /usr/sbin/iptables -P INPUT -j DROP
    /usr/sbin/iptables -P FORWARD -j DROP
    /usr/sbin/iptables -P OUTPUT -j ACCEPT
    /usr/sbin/iptables -A INPUT -s 10.0.0.10/200 --dport 80 -j ACCEPT


    I wanted to block all incoming traffic. Last line should allow to acces GUI (or Im wrong;)

    After saving, rebooting itp Im not sure this is working. Duh, Im almost sure it doesnt. What am I making wrong?

    PS: can i use some "standard" firewall scripts etc from freshmeat? Will it work on my router?

    PPS: I want to block all traffic than unlock www/mail/ftp and in case of need unlock another ports (programs). But i dont know how to make it work.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice