>>>>> "Dick" == Dick Steffens <[email protected]> writes:

Dick> On 07/23/2016 03:56 PM, Russell Senior wrote:
>> You don't need the gateway or dns-nameservers.  The laptop's default
>> gateway will be set by its wlan interface DHCP lease.
>> 
>> So, just:
>> 
>> auto eth0 iface eth0 inet static address 10.253.0.1 netmask
>> 255.255.255.0 network 10.253.0.0
>> 
>> The network part (i.e. 10.253.0) should be different than what your
>> mobile hotspot is providing, and different than what your Buffalo is
>> providing.  Otherwise, it can be anything in the 10.x.y.z range or
>> 192.168.x.y range that doesn't conflict.  The .1 as the host part is
>> traditional for a gateway router (though tastes vary), which your
>> laptop is for the Buffalo.

Dick> I used your example.

Dick> The mobile hotspot gave wlan0 on the X200 an address of
Dick> 192.168.43.206.  I can access the Internet from the X200.

Dick> The Buffalo router serves 192.168.0.xxx.

>> You want to have an iptables rule on the laptop to do the NAT.
>> Assuming the wireless inteface is wlan0, then:
>> 
>> iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADE
>> 
>> That will handle the routing back to your Buffalo.

Dick> Done. Is that something that goes away when the laptop is shut
Dick> down?

If you just type it manually, and shutdown means reboot, then yes.

>> 
>>> [...] I know I have to install isc-dhcp-server on the X200 before I
>>> can connect the router to it.
>> A simpler alternative is to log in to the Buffalo and give it a
>> static configuration on its WAN interface as well, for example:
>> 
>> ip: 10.253.0.2 netmask: 255.255.255.0 gateway: 10.253.0.1 dns:
>> 8.8.8.8 (or whatever you like)

Dick> I'm trying the simpler solution and have set the router's WAN
Dick> interface to static, with the above details. I did a Save and
Dick> Apply from the LuCI interface on the router.

Dick> Before that the WAN showed that it was not connected. After
Dick> changing it to static I clicked the Connect button. It does show
Dick> as connected, now, but I can't reach the Internet from the other
Dick> laptop connected to the router.

The other laptop is connected to the Buffalo or the mobile hotspot?

>From your routing laptop (the one you are using to connect the buffalo
to the hotspot), send me the output of:

  ip a

  ip r

and

  iptables -v -t nat -L

>From the other devices, including the buffalo (you should be able to ssh
in), try pinging the various addresses of significance, and see what
replies.  That should provide some clues.


-- 
Russell Senior, President
[email protected]
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to