Differences between revisions 6 and 7
Revision 6 as of 2004-12-01 21:52:54
Size: 2474
Editor: TomHiggins
Comment:
Revision 7 as of 2004-12-01 21:58:13
Size: 2632
Editor: TomHiggins
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * First, get a working buildroot following the instructions on the [http://www.openwrt.org/ openwrt] site.
 * Do a full build ("make") and build the packages ("make packages")
 * Then, you need to enable the
MAC matching support in iptables, both as a kernel module and a iptables module.
* To enable the iptables module
      * edit buildroot/build_mipsel/iptables-1.2.9/extensions/Makefile
      * add 'mac' to the end of the PF_EXT_SLIB line near the top.
   * For the kernel module
      * go to buildroot/WRT54GS/release/src/linux/linux
      * edit .config and make sure CONFIG_IP_NF_MATCH_MAC=m.
      [[BR]]'''Or'''
      * use make menuconfig and set MAC address matching to m under netfilter configuration.
 * Now, build again. The new image should have the extra modules in it.
 * Get a current version of a prebuilt OpenWrt image with MAC support and iptables enable (look here for url when its ready)
 [[BR]]'''Or'''
 * Get a working buildroot following the instructions on the [http://www.openwrt.org/ openwrt] site.
   * Do a full build ("make") and build the packages ("make packages")
   * Then
, you need to enable the MAC matching support in iptables, both as a kernel module and a iptables module.
  
* To enable the iptables module
   * edit buildroot/build_mipsel/iptables-1.2.9/extensions/Makefile
   * add 'mac' to the end of the PF_EXT_SLIB line near the top.
     * For the kernel module
   * go to buildroot/WRT54GS/release/src/linux/linux
   * edit .config and make sure CONFIG_IP_NF_MATCH_MAC=m.
        [[BR]]'''Or'''
        * use make menuconfig and set MAC address matching to m under netfilter configuration.
   * Now, build again. The new image should have the extra modules in it.

Steps for creating a NoCat [http://www.openwrt.org/ Openwrt] Build on a Linksys WRT54g or gs

"OpenWrt is a linux distribution for the Linksys WRT54G. Instead of trying to cram every possible feature into one firmware, OpenWrt provides only a minimal firmware with support for add-on packages. For users this means the ability to custom tune features, removing unwanted packages to make room for other packages and for developers this means being able to focus on packages without having to test and release an entire firmware."

To use nocatsplash on openwrt, you need to do some fiddling.

  • Get a current version of a prebuilt OpenWrt image with MAC support and iptables enable (look here for url when its ready) BROr

  • Get a working buildroot following the instructions on the [http://www.openwrt.org/ openwrt] site.

    • Do a full build ("make") and build the packages ("make packages")
    • Then, you need to enable the MAC matching support in iptables, both as a kernel module and a iptables module.
      • To enable the iptables module
        • edit buildroot/build_mipsel/iptables-1.2.9/extensions/Makefile
        • add 'mac' to the end of the PF_EXT_SLIB line near the top.
      • For the kernel module
        • go to buildroot/WRT54GS/release/src/linux/linux
        • edit .config and make sure CONFIG_IP_NF_MATCH_MAC=m.

          BROr

        • use make menuconfig and set MAC address matching to m under netfilter configuration.
    • Now, build again. The new image should have the extra modules in it.
  • Load the image onto your WRT.
  • Now, you can either use the [http://bjencks.net/nocatsplash/nocatsplash_nightly-4_mipsel.ipk ipk] I built

BROr

  • build it yourself. I recommend building it yourself, so you can tweak it later more easily.
  • To build it yourself
    • unpack the [http://bjencks.net/nocatsplash/nocat-openwrt.tar.gz tarball] into your buildroot

    • run 'make packages'.
    • To modify it
      • edit the patch buildroot/sources/nocatsplash.patch,
      • edit make/nocatsplash.mk and increment the version number
      • then make nocatsplash-dirclean; make packages.

(The patch is made mostly from stock NoCatSplash to splish (from ewrt). I also added mac address logging to the accept_peer function, and took out the module loading part from the top of the firewall scripts (a reversion to the stock). Note that one change from splish that I kept is the requirement of an form element named "accept_terms", ordinarily a checkbox, to be in the splash page.)

OpenWRT (last edited 2012-03-24 14:53:23 by stgt-5d84b93b)