1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iptables with ddwrt

Discussion in 'DD-WRT Firmware' started by viper007, Apr 6, 2005.

  1. viper007

    viper007 Network Guru Member

    hi guys..

    I trying to use iptables with dd wrt...
    but when i run iptables -L, i see alots of rules in there by default.
    so should I clear that those rules or just add news 1 in?
    please advice thanks.
  2. dellsweig

    dellsweig Network Guru Member

    The rules in there are what the firmware sets up as the defaults for your configuration settings.

    What are you trying to do??
  3. viper007

    viper007 Network Guru Member

    I am trying to do some blocking of ports like p2p and some unwanted ports

  4. dellsweig

    dellsweig Network Guru Member

  5. tl511

    tl511 Network Guru Member

    I too am interested in this topic. Without having a writeable JFFS mounted filesystem, how does one change the iptables. Yes, I know I can flush the tables and run my own script, but that only dumps it into memory for a running router. How do you get it to stay after reboot? How do you change startup script so it runs the new iptables every time?
  6. viper007

    viper007 Network Guru Member

    any1 know where can I wirte the rules to a file that load on startup?
    and what are the commands to make the rules into effects... thanks
  7. samueldg

    samueldg Network Guru Member

    Find info about ipp2p iptable module, it is working fine in my production server.

    you need something as this in your rc_firewall script:

    iptables -t filter -I INPUT/FORWARD/OUTPUT -m ipp2p --ipp2p -j DROP

    I use samba mount to put scripts and some help files in a samba shared resource in my network, I think this can help you.

    I use samba to allow kismet server into an WRT54G for example and allow it to put logs on the shared resource.

    Good Luck

Share This Page