Hi Aleksandr,

Many thanks for your help, I added my script to /etc/rc.local and it works
like a cham. I haven't known about this script before.

I don't know this too, I will check it later.

> or if you need change iptables everytime after some interface (ex WAN)
> going up, you can easily create script in /etc/hotplug.d/iface/ directory
> where add :
> [ ifup = "$ACTION" ] && [ "$INTERFACE" = "WAN" ] && {
> #here add yours iptables
> }
>

 I am using CoovaChilli's up.sh script to change iptables everytime TUN/TAP
interface going up but it somehow does not work as expected if I do reboot.
That's why I want to restart the CoovaChilli to apply up.sh iptales rule.
Anyway, It is just a work-around solution, I have to check why up.sh does
not work...

Thanks,
Dat

On Mon, Dec 2, 2013 at 2:40 PM, Aleksandr Kolesnik <ner...@gmail.com> wrote:

> Hi Dat,
>
> Why you cannot add yours script to run in /etc/rc.local? or if you need
> change iptables everytime after some interface (ex WAN) going up, you can
> easily create script in /etc/hotplug.d/iface/ directory where add :
>
> [ ifup = "$ACTION" ] && [ "$INTERFACE" = "WAN" ] && {
> #here add yours iptables
>
> }
>
> Regards,
> Aleksandr
>
>
>
> 2013/12/2 Le Tran Dat <tranda...@gmail.com>
>
>> Hi all,
>>
>> I am trying to run a script after the S99sysctl. I tried to use START=100
>> but it does not work.
>>
>> I don't want to extent the sysctl to call my script.
>> for example:
>> cat " /etc/init.d/myscript.sh start" >> /etc/init.d/sysctl
>>
>> I want to do so because my application needs to change iptables
>> configuration after rebooting.
>>
>> Thanks
>> Dat
>>
>> _______________________________________________
>> openwrt-devel mailing list
>> openwrt-devel@lists.openwrt.org
>> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>>
>>
>
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
>
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to