WAN UP script?

5 posts / 0 new
Last post
Sawyer
Sawyer's picture
WAN UP script?

tomato has a nice and very much needed feature for me. Wan UP under scripting.

 

I put rp_filter 0 coommand in there because this is reset each time pppoe reconnects.

 

Is there a way for such a script in dd wrt?

Sudipta
Sudipta's picture
For any firmware you can

For any firmware you can connect to board using ssh and then run the command "/etc/init.d/network restart". It will reset your network and also reconnect to PPP server. if you want to restart only the WAN interface, I think you can do that by ifconfig.

Kong
Kong's picture
See:
Sawyer
Sawyer's picture
I see. So I do what exactly.

I see. So I do what exactly.

I need to run this whenever pppoe reconnects.
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 0 > /proc/sys/net/ipv4/conf/br0/rp_filter

I make a file with notepad and use extension .ipup and put this 2 lines in that file?

Then I just upload the whole thing to. /jffs/etc/config/
Prior I have to creat that folder if it doesnt exist?

Kong
Kong's picture
Yes this is correct. Even if

Yes this is correct. Even if you don't have an external media connected you can use the space that's left on flash for this task.