wshare is a simple program to share an existing network connection. There are two modes, master and client. The master shares an existing network connection (probably to the internet) via an unused wireless device. The client can connect either via the operating system provided facilities or this script in client mode – which is the default. To enable a master supply the the -m parameter to the script.
wshare is currently linux only, released under the GPLv3 and avaible via git:
git clone git://github.com/stef/wshare.git
the script itself is very short, download it directly
In master mode (-m),
In client mode,
to share a network, either set the parameters in the config file, or adapt the call below:
- wshare -m -o ppp0 -i eth0
to connect to such a shared network simply call
- wshare -i eth0
the following parameters are to be set either via a configuration file (/etc/wshare.conf, ~/.wshare.conf or in the same directory where the wshare script is located) or or superseding these via command line parameters.
Common parameters are necessary for both master and client operation.
set internal network, over which the external is shared. this must be a wireless device, if none is set, the script tries to use the first device from /proc/net/wireless.
set the essid of the shared network master
specify the key for WEP encryption of the internal network. beware this is yet untested and probably not working
these settings are only necessary for nodes acting as masters.
specify the subnet of the internal network. this must be in the /24 range currently… thus it is only possible to specify networks with 3 of four octets
specify which network to share, this is the device that connects to the internet
specify Master IP address, defaults to <subnet>.1
Last edited by stef,