Log in

Bekijk de volledige versie : post-firewall does not get executed - 1.9.2.7-6b (2005-06-30)



epimenides
19-09-2005, 12:54
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!

Isidor
19-09-2005, 13:40
Hi



--------------------------------------------------------------------------------------------------------------
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

epimenides
20-09-2005, 11:50
Thank you, it helped!