Results 1 to 3 of 3

Thread: post-firewall does not get executed - 1.9.2.7-6b (2005-06-30)

  1. #1

    post-firewall does not get executed - 1.9.2.7-6b (2005-06-30)

    Hi guys,


    i am using firmware 1.9.2.7-6b (2005-06-30) with my Asus wl-500g. Since I want to customize the default firewall with my own settings, I "installed" the
    post-firewall script as described. Unfortunately the scripts doesn't get executed after startup.

    --------------------------------------------------------------------------------------------------------------
    SCRIPT:
    #/bin/sh

    # Environment settings:
    #
    IPTABLES=/usr/sbin/iptables

    # Disable ICMP echo reply to wan:
    #
    $IPTABLES -I INPUT 1 -s ! 192.168.1.0/24 -p icmp -j DROP

    ------------------------------------------------------------------------------------------------------
    DIRECTORY:
    drwxr-xr-x 1 admin root 0 Aug 4 13:42 .
    drwxr-xr-x 1 admin root 0 Jan 1 2000 ..
    -rwxr-xr-x 1 admin root 35 Aug 4 13:43 post-boot
    -rwxr-xr-x 1 admin root 158 Sep 19 13:19 post-firewall
    --------------------------------------------------------------------------------------------------------------

    The script "post-boot" is working perfectly, so what i am doing wrong? Is there a bug in the firmware?


    Thanks,
    Epimenides

    P.S.: Thanks to Oleg for his great work!

  2. #2
    Join Date
    Aug 2005
    Location
    Paris
    Posts
    10
    Hi

    Quote Originally Posted by epimenides
    --------------------------------------------------------------------------------------------------------------
    SCRIPT:
    #/bin/sh
    ...
    ------------------------------------------------------------------------------------------------------
    Try with #!/bin/sh

    you could add also in second line
    logger post-firewall start

    to see in syslog's the fact the script start

  3. #3

    Solved

    Thank you, it helped!

Similar Threads

  1. Start own script in post-boot or post-firewall
    By m-h-l in forum WL-500g Q&A
    Replies: 2
    Last Post: 30-09-2005, 20:03
  2. Replies: 0
    Last Post: 19-09-2005, 13:52
  3. post-firewall script is not being executed
    By Fama in forum WL-500g Q&A
    Replies: 6
    Last Post: 09-08-2005, 10:14
  4. post-boot is not executed - what's wrong?
    By sbn in forum WL-500g Q&A
    Replies: 0
    Last Post: 11-06-2005, 13:17
  5. Replies: 3
    Last Post: 24-12-2004, 20:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •