|
← Revision 4 as of 2004-12-01 21:47:44
Size: 1983
Comment:
|
← Revision 5 as of 2004-12-01 21:50:28 →
Size: 2032
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| '''Steps for creating a NoCat Openwrt Build on a Linksys WRT54g or gs''' | '''Steps for creating a NoCat [http://www.openwrt.org/ Openwrt] Build on a Linksys WRT54g or gs''' |
| Line 5: | Line 5: |
| * First, get a working buildroot following the instructions on the openwrt site. | * First, get a working buildroot following the instructions on the [http://www.openwrt.org/ openwrt] site. |
| Line 19: | Line 19: |
| * Now, you can either use the ["http://bjencks.net/nocatsplash/nocatsplash_nightly-4_mipsel.ipk" ipk] I built | * Now, you can either use the [http://bjencks.net/nocatsplash/nocatsplash_nightly-4_mipsel.ipk ipk] I built |
| Line 26: | Line 26: |
| * unpack the ["http://bjencks.net/nocatsplash/nocat-openwrt.tar.gz" tarball] into your buildroot | * unpack the [http://bjencks.net/nocatsplash/nocat-openwrt.tar.gz tarball] into your buildroot |
Steps for creating a NoCat [http://www.openwrt.org/ Openwrt] Build on a Linksys WRT54g or gs
To use nocatsplash on openwrt, you need to do some fiddling.
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.
BROr
- use make menuconfig and set MAC address matching to m under netfilter configuration.
- To enable the iptables module
- 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.)

