>>>>> "Dick" == Dick Steffens <[email protected]> writes:
Dick> Both the iptables rule and the change to
Dick> /proc/sys/net/ipv4/conf/all/forwarding are temporary and need to
Dick> be done again after rebooting. Putting them in a shell script to
Dick> run at startup could automate it, but I expect this to be
Dick> temporary, and so I'll just create a shell script in a file on the
Dick> desktop of the laptop to remind me to run it whenever I power it
Dick> back up. Once I set it up I'll just leave it up.
Dick> Many thanks to Russell and Rich for their support, and to this
Dick> list for providing the space for the conversation.
Now that you have that working, just to complicate things and ruin
everything, you could totally do this without the laptop by putting the
Buffalo (I understand it's running OpenWrt already) 2.4GHz wifi
interface into station mode and make it the wan interface. Something
like the following:
In /etc/config/wireless:
config wifi-device 'radio0'
option type 'mac80211'
option channel 'auto'
option hwmode '11g'
option path 'pci0000:00/0000:00:11.0'
option htmode 'HT20'
option disabled '0'
config wifi-iface
option device 'radio0'
option mode 'sta'
option encryption 'psk2'
option network 'wan'
option ifname 'wan0'
option ssid '<your mobile hotspot SSID>'
option key '<your mobile hotspot key>'
and in /etc/config/network, change the 'wan' stanza to be:
config interface 'wan'
option proto 'dhcp'
You don't need an ifname in the 'wan' stanza because the wifi-iface
stanza sees the option network 'wan' and automagically adds that
interface as the wan interface.
If you try this, log into luci and do a configuration backup first, so
you can restore it if you mess up or when you want to revert to the
previous configuration.
You might also want to do a "grep -r eth1 /etc" to look for other files
that reference the old wan interface (eth1) specifically and change
those to wan0 (the name I gave to the wireless station-mode interface).
I'm not sure there are any.
Or, count yourself lucky that you have it working now and don't touch a
damn thing. ;-)
--
Russell Senior, President
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug