[TriLUG] SOLVED: OpenWRT Firewall Persistence

Randy Barlow randy at electronsweatshop.com
Sat May 12 22:03:54 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Randy Barlow wrote:
> Hi all, I have OpenWRT on a Linksys 54g (v2.0) and I like it, but
> there's one small problem.  I have some firewall rules set up to do some
> port forwarding, and I've noticed that when the router is rebooted that
> the firewall doesn't start by itself.  I have to ssh and run
> /etc/init.d/S35firewall to get it going.  How do I make this part of the
> boot sequence?  Thanks!

So I figured out the problem.  /etc/init.d/S35firewall was indeed
getting executed at startup, but *before* /etc/init.d/S40network which
is why it wasn't seeming to have any effect.  Why the openwrt devs
thought the default numbering of these was appropriate is beyond me, but
I renamed the firewall script to /etc/init.d/S41firewall and all is
happy now!

R

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGRnIJ7So1xaF/eR8RAow9AJ98Blx7ubqaLnddcQkdMALSCp3J1ACeNe2S
i7L89Y1mQFEfdN8O5mJS1gA=
=t/8A
-----END PGP SIGNATURE-----



More information about the TriLUG mailing list