Find file History
Pull request Compare This branch is even with vg:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


			Netsukuku on OpenWRT

This is the package of Netsukuku compiled for Openwrt.

This is not official release of the .ipkg package, it's just the 
one we're using to test it on the WRT.

How to install it:
(these steps have been used for a Linksys WRT54GL, but once you've 
 installed OpenWRT on your AP, they should be same)

#- Install the default OpenWrt firmware:

#- Activate boot_wait

	ssh root@openwrt
	nvram boot_wait=on
	nvram commit

#- Remove useless things

	ssh root@openwrt
	rm /etc/init.d/S50telnet

#- Optional step: No password, use the ssh keys
#	(skip this if you don't like it)

	scp .ssh/ root@router:/tmp
	ssh root@
	cd /etc/dropbear
	cat /tmp/id_*.pub >> authorized_keys
	rm /tmp/id_*.pub
	chmod 0600 authorized_keys

	cd /etc/init.d
	rm S50dropbear
	cat /rom/etc/init.d/S50dropbear | grep -v ^/usr/sbin/dropbear > S50dropbear
	echo /usr/sbin/dropbear -s >> S50dropbear
	chmod 755 S50dropbear

#- Configure the AP to reach the Internet
	ssh root@openwrt

	#add a nameserver in /etc/resolv.conf
		echo nameserver >> /etc/resolv.conf

	#set the ip to the ethernet-if and add a default gw:
		nvram lan_gateway=
		nvram lan_netmask=
		nvram lan_dhcp=0
		nvram lan_dns=
		nvram lan_ipaddr=192.168.1.X
		nvram lan_proto=static
		nvram commit

	#remember that now the wired IP of the AP is `lan_ipaddr' when you boot it.

#- Install the package

	scp netsukuku_<package_version>.ipk root@openwrt:
	ssh root@openwrt
	ipkg install netsukuku_<package_version>.ipk

#- Install additional modules
	#install the ipip module
	ipkg install kmod-ipip_2.4.20_mipsel.ipk
	mv /lib/modules/2.4.20/kernel/net/ipv4/ipip.o  /lib/modules/2.4.30/
	echo ipip > /etc/modules.d/20-ipip
	rm kmod-ipip_2.4.20_mipsel.ipk
	insmod ipip
	ipkg install ip
	ipkg install wl

#- Remove the firewall
	ssh root@openwrt
	rm /etc/init.d/S45firewall

#- Set the adhoc mode for your wifi cards

	nvram wl0_infra=0
	nvram wl0_mode=sta
	nvram wl0_ssid=netsukuku
	nvram commit

#- Now launch netsukuku

	#give a try with
	ntkd -i eth1 -ddddd -D -a -R

	#then with
	ntkd -i eth1 -ddddd -D

 * TODO:
 *  - remote syslog