Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-08-06 Thread Dick Steffens
On 08/06/2016 01:45 PM, Galen Seitz wrote:
> On 07/25/16 14:35, Dick Steffens wrote:
>> On 07/25/2016 09:48 AM, Russell Senior wrote:
> Aha!  I remember now, you need to turn on forwarding on the X200.
>
> Check "cat /proc/sys/net/ipv4/conf/all/forwarding" ... it is probably 0.
>> It is.
>>
> If so, "echo 1 > /proc/sys/net/ipv4/conf/all/forwarding" will turn it
> on.  You can add this to your script with the iptables rule.
>> First I tried:
>>
>> rsteff@ThinkPad-X200-Tablet:~$ sudo echo 1 >
>> /proc/sys/net/ipv4/conf/all/forwarding
>> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
>> rsteff@ThinkPad-X200-Tablet:~$
>>
>> Note that I was not asked for a password.
>>
>> Then I tried it without sudo:
>>
>> rsteff@ThinkPad-X200-Tablet:~$ echo 1 >
>> /proc/sys/net/ipv4/conf/all/forwarding
>> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
>> rsteff@ThinkPad-X200-Tablet:~$
> Beating a very old horse here, but I've been intending to respond to
> this.  The reason these commands are failing is that redirection ('>')
> is performed by your original shell, not sudo.  Your rsteff account
> doesn't have permission to write to files in the /proc directory, hence
> the error.  Others have shown that you can just get a root shell and
> then issue the echo command, but I wanted to point out that you can do
> this from a single command.
>
> This command invokes a root shell and then passes the desired command,
> including redirection, to that shell.
>
> sudo /bin/sh -c 'echo 1 > /proc/sys/net/ipv4/conf/all/forwarding'
>
>
> 
>
>
> galen

Thanks. I'll add that to my documents on this subject.

The hotspot has been stable for several days, now.

Thanks, again, to all who contributed.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-08-06 Thread Galen Seitz
On 07/25/16 14:35, Dick Steffens wrote:
> On 07/25/2016 09:48 AM, Russell Senior wrote:
>>
 Aha!  I remember now, you need to turn on forwarding on the X200.

 Check "cat /proc/sys/net/ipv4/conf/all/forwarding" ... it is probably 0.
> 
> It is.
> 
 If so, "echo 1 > /proc/sys/net/ipv4/conf/all/forwarding" will turn it
 on.  You can add this to your script with the iptables rule.
> 
> First I tried:
> 
> rsteff@ThinkPad-X200-Tablet:~$ sudo echo 1 > 
> /proc/sys/net/ipv4/conf/all/forwarding
> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
> rsteff@ThinkPad-X200-Tablet:~$
> 
> Note that I was not asked for a password.
> 
> Then I tried it without sudo:
> 
> rsteff@ThinkPad-X200-Tablet:~$ echo 1 > 
> /proc/sys/net/ipv4/conf/all/forwarding
> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
> rsteff@ThinkPad-X200-Tablet:~$

Beating a very old horse here, but I've been intending to respond to
this.  The reason these commands are failing is that redirection ('>')
is performed by your original shell, not sudo.  Your rsteff account
doesn't have permission to write to files in the /proc directory, hence
the error.  Others have shown that you can just get a root shell and
then issue the echo command, but I wanted to point out that you can do
this from a single command.

This command invokes a root shell and then passes the desired command,
including redirection, to that shell.

sudo /bin/sh -c 'echo 1 > /proc/sys/net/ipv4/conf/all/forwarding'





galen
-- 
Galen Seitz
gal...@seitzassoc.com
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Rich Shepard
On Mon, 25 Jul 2016, Dick Steffens wrote:

> Bingo! That works. Now to try to remember each step and write it up as a
> proper "solved" reply.

   Whew, eh? Glad you got it done.

   There are some things that require a root login shell rather than root
access from a user shell. I don't know the details, but I learned a long
time ago that when I build a Slackware package from the source tarball to do
so from a login shell. Apparently, writing to the /proc filesystem requires
the same attributes.

   Does PLUG have a wiki where solutions like this can be posted for
posterity?

Rich
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Russell Senior
> "Dick" == Dick Steffens  writes:

Dick> On 07/25/2016 09:48 AM, Russell Senior wrote:
>> 
 Aha!  I remember now, you need to turn on forwarding on the X200.
 
 Check "cat /proc/sys/net/ipv4/conf/all/forwarding" ... it is
 probably 0.

Dick> It is.

 If so, "echo 1 > /proc/sys/net/ipv4/conf/all/forwarding" will turn
 it on.  You can add this to your script with the iptables rule.

Dick> First I tried:

Dick> rsteff@ThinkPad-X200-Tablet:~$ sudo echo 1 >
Dick> /proc/sys/net/ipv4/conf/all/forwarding bash:
Dick> /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
Dick> rsteff@ThinkPad-X200-Tablet:~$

Dick> Note that I was not asked for a password.

Dick> Then I tried it without sudo:

Dick> rsteff@ThinkPad-X200-Tablet:~$ echo 1 >
Dick> /proc/sys/net/ipv4/conf/all/forwarding bash:
Dick> /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
Dick> rsteff@ThinkPad-X200-Tablet:~$

Yeah, try sudo -s first to get a root shell, then the echo command.


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Dick Steffens
On 07/25/2016 03:19 PM, Rich Shepard wrote:
> On Mon, 25 Jul 2016, Dick Steffens wrote:
>
>> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
>>
>> Then I tried it without sudo:
>>
>> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
> Dick,
>
> I log in as root using 'su -' which puts me in a login shell owned by
> root. I recall seeing on this mail list that 'sudo su -' should work for
> you. If so, try the same echo command that way.

Bingo! That works. Now to try to remember each step and write it up as a 
proper "solved" reply.


-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Rich Shepard
On Mon, 25 Jul 2016, Dick Steffens wrote:

> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
>
> Then I tried it without sudo:
>
> bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied

Dick,

   I log in as root using 'su -' which puts me in a login shell owned by
root. I recall seeing on this mail list that 'sudo su -' should work for
you. If so, try the same echo command that way.

Rich

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Dick Steffens
On 07/25/2016 09:48 AM, Russell Senior wrote:
>
>>> Aha!  I remember now, you need to turn on forwarding on the X200.
>>>
>>> Check "cat /proc/sys/net/ipv4/conf/all/forwarding" ... it is probably 0.

It is.

>>> If so, "echo 1 > /proc/sys/net/ipv4/conf/all/forwarding" will turn it
>>> on.  You can add this to your script with the iptables rule.

First I tried:

rsteff@ThinkPad-X200-Tablet:~$ sudo echo 1 > 
/proc/sys/net/ipv4/conf/all/forwarding
bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
rsteff@ThinkPad-X200-Tablet:~$

Note that I was not asked for a password.

Then I tried it without sudo:

rsteff@ThinkPad-X200-Tablet:~$ echo 1 > 
/proc/sys/net/ipv4/conf/all/forwarding
bash: /proc/sys/net/ipv4/conf/all/forwarding: Permission denied
rsteff@ThinkPad-X200-Tablet:~$

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-25 Thread Russell Senior
> "Dick" == Dick Steffens  writes:

>> >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.

Dick> I tried pinging 8.8.8.8 from the second laptop and from the router
Dick> (using ssh) and got no return. I get a return when pinging from
Dick> the X200 laptop.

Aha!  I remember now, you need to turn on forwarding on the X200.

Check "cat /proc/sys/net/ipv4/conf/all/forwarding" ... it is probably 0.

If so, "echo 1 > /proc/sys/net/ipv4/conf/all/forwarding" will turn it
on.  You can add this to your script with the iptables rule.


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-24 Thread Dick Steffens
On 07/24/2016 06:03 PM, Russell Senior wrote

> 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.

That's what I thought. I don't expect to shut the laptop down once it's 
set up, but I should probably create a shell script file for it.

> Dick> <...> 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?

The Buffalo router. It's address is 192.168.0.221

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

1: lo:  mtu 65536 qdisc noqueue state UNKNOWN 
group default
 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
 inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
 inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc pfifo_fast 
state UP group default qlen 1000
 link/ether 00:26:2d:fd:c9:73 brd ff:ff:ff:ff:ff:ff
 inet 10.253.0.1/24 brd 10.253.0.255 scope global eth0
valid_lft forever preferred_lft forever
 inet6 fe80::226:2dff:fefd:c973/64 scope link
valid_lft forever preferred_lft forever
3: wlan0:  mtu 1500 qdisc mq state UP 
group default qlen 1000
 link/ether 00:26:c6:ca:75:40 brd ff:ff:ff:ff:ff:ff
 inet 192.168.1.48/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
 inet6 fe80::226:c6ff:feca:7540/64 scope link
valid_lft forever preferred_lft forever


>ip r

default via 192.168.1.1 dev wlan0  proto static
10.253.0.0/24 dev eth0  proto kernel  scope link  src 10.253.0.1
169.254.0.0/16 dev eth0  scope link  metric 1000
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.48  
metric 9

> and
>
>iptables -v -t nat -L

Chain PREROUTING (policy ACCEPT 3300 packets, 227K bytes)
  pkts bytes target prot opt in out source destination

Chain INPUT (policy ACCEPT 29 packets, 5435 bytes)
  pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 1289 packets, 88566 bytes)
  pkts bytes target prot opt in out source destination

Chain POSTROUTING (policy ACCEPT 464 packets, 31746 bytes)
  pkts bytes target prot opt in out source destination
   825 56820 MASQUERADE  all  --  anywlan0   anywhere anywhere

> >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.

I tried pinging 8.8.8.8 from the second laptop and from the router 
(using ssh) and got no return. I get a return when pinging from the X200 
laptop.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-24 Thread Russell Senior
> "Dick" == Dick Steffens  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
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-24 Thread Dick Steffens
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.

I used your example.

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

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.

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

>
>> [...] 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)

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

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

I must have missed something. Any ideas what?



-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-23 Thread Dick Steffens
On 07/23/2016 03:56 PM, Russell Senior wrote:
>> Okay. I'm starting to try this. I have a Thinkpad X200 laptop talking to
>> my Verizon Ellipsis 8 hotspot.
>>
>> I'm looking at how to set the X200 eth0 to static, so I can connect it
>> to my Buffalo WZR 600 DHP router. From:
>>
>> http://askubuntu.com/questions/470237/assigning-a-static-ip-to-ubuntu-server-14-04-lts
>>
>> it recommends putting the following into /etc/network/interfaces, with
>> addresses suited to my situation:
>>
>> __
>> auto eth0
>> iface eth0 inet static
>>  address 10.253.0.50
>>  netmask 255.255.255.0
>>  network 10.253.0.0
>>  gateway 10.253.0.1
>>  dns-nameservers 8.8.8.8
>> __
> 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

Good to know.

> 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.

Right. I think I understand that one. Three different ranges.

> 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.

Right. I remember reading that in your earlier e-mail. I just haven't 
gotten that far, yet. :-)

>
>> [...] 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)

Simple is better. Then I won't have to uninstall it after I don't need 
it anymore. I will have to remember to comment out the stuff I put in 
/etc/network/interfaces when this is no longer needed, though.

I'll post a summary once I've got it working, although I may not get 
back to it until later tomorrow.

Thanks for your help.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-23 Thread Russell Senior

> Okay. I'm starting to try this. I have a Thinkpad X200 laptop talking to 
> my Verizon Ellipsis 8 hotspot.
> 
> I'm looking at how to set the X200 eth0 to static, so I can connect it 
> to my Buffalo WZR 600 DHP router. From:
> 
> http://askubuntu.com/questions/470237/assigning-a-static-ip-to-ubuntu-server-14-04-lts
> 
> it recommends putting the following into /etc/network/interfaces, with 
> addresses suited to my situation:
> 
> __
> auto eth0
> iface eth0 inet static
> address 10.253.0.50
> netmask 255.255.255.0
> network 10.253.0.0
> gateway 10.253.0.1
> dns-nameservers 8.8.8.8
> __

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.

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.

> [...] 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)


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-23 Thread Dick Steffens
On 07/20/2016 11:59 PM, Russell Senior wrote:

> Dick> I may need to be without Comcast for a time. Is there a way to use
> Dick> a tablet WiFi hotspot and a laptop to feed my router so I can
> Dick> support two desktops?
>
> <...>
>
> Oh, and yes (actually reading what you wrote), running it through a
> laptop can work.  Laptop wifi connects to your mobile hotspot, ethernet
> connects your laptop to the WAN port on a router (or directly to a
> switch or desktop machine), give the ethernet interface a static IP on a
> different network from the mobile hotspot, e.g. 192.168.11.1/24, then run
> the command:
>
>iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADE
>
> (where wlan0 is your laptop's wireless interface connecting to the
> mobile hotspot).
>
> Then you'll need to run a DHCP server providing leases on the ethernet
> interface only, and you are done.

Okay. I'm starting to try this. I have a Thinkpad X200 laptop talking to 
my Verizon Ellipsis 8 hotspot.

I'm looking at how to set the X200 eth0 to static, so I can connect it 
to my Buffalo WZR 600 DHP router. From:

http://askubuntu.com/questions/470237/assigning-a-static-ip-to-ubuntu-server-14-04-lts

it recommends putting the following into /etc/network/interfaces, with 
addresses suited to my situation:

__
auto eth0
iface eth0 inet static
address 10.253.0.50
netmask 255.255.255.0
network 10.253.0.0
gateway 10.253.0.1
dns-nameservers 8.8.8.8
__

The Buffalo router will be serving addresses in the 192.168.0.xxx range, 
so I assume I should use an address in a different range for the X200's 
eth0.

ifconfig on the X200 shows the address of wlan0 as 192.168.43.206. I 
assume that's the address provided by the Ellipsis 8 hotspot. Does that 
mean that the X200's eth0 should be in that range? Or should I use 
something like 192.168.1.100?

The netmask entry looks like every other netmask entry I've ever seen, 
so that's probably okay.

What should the network entry be? Should it be 192.168.43.0, or 
192.168.1.0, or something else?

Am I correct in assuming the gateway is the address assigned by the hotspot?

I know dns-nameservers 8.8.8.8 is Google's, and I assume that's okay.

So, should /etc/network/interfaces look something like this?

__
auto eth0
iface eth0 inet static
 address 192.168.1.100
 netmask 255.255.255.0
 network ???
 gateway 192.168.43.206
dns-nameservers 8.8.8.8
__

I know I have to install isc-dhcp-server on the X200 before I can 
connect the router to it.

Fortunately I have a few days to get this figured out.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Dick Steffens
On 07/21/2016 07:51 AM, Bill Barry wrote:
> On Thu, Jul 21, 2016 at 7:34 AM, Dick Steffens 
> wrote:
>
>> On 07/20/2016 11:07 PM, Bill Barry wrote:
>>
>>> What router do you have.  Does it have a wireless bridging mode? One type
>>> of wireless bridging is WDS, but there are others.
>> Buffalo WZR-600DHP.
>>
>>
>> I looks like that router has an Atheros chipset and you can install
> openwrt on it. From there you might be able to set up wireless bridging.
> Russell's laptop idea or Rich's wireless adapters would be much easier to
> configure.

Thanks for the idea. I think I'll give the laptop idea a try. It sounds 
much easier (for me, anyway). If I actually need it, it will be later 
next week. I've got the tablet, router, and two laptops with me, and not 
in use, so I can test all this out before next week, once I get the 
time, all while still having this Comcast connection at our friend's 
place so I can maintain my connection to helpful resources, such as this 
wonderful group.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Bill Barry
On Thu, Jul 21, 2016 at 7:34 AM, Dick Steffens 
wrote:

> On 07/20/2016 11:07 PM, Bill Barry wrote:
>
> > What router do you have.  Does it have a wireless bridging mode? One type
> > of wireless bridging is WDS, but there are others.
>
> Buffalo WZR-600DHP.
>
>
> I looks like that router has an Atheros chipset and you can install
openwrt on it. From there you might be able to set up wireless bridging.
Russell's laptop idea or Rich's wireless adapters would be much easier to
configure.

Bill
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Dick Steffens
On 07/21/2016 03:11 AM, Russell Senior wrote:

> Russell> You could do something similar with a router running OpenWrt in
> Russell> place of the laptop, with the radio in client mode, acting as
> Russell> the WAN interface.  There, you have the nice advantage that the
> Russell> router already has a DHCP server built in.
>
> FWIW, I just built a device that could do this for you, one of our
> mostly retired Netgear WGT634U's.  How long do you need it for?

Probably a few days to a couple of weeks. When I get to it, I'll give 
the laptop option a try. Thanks for the offer, though.



-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Dick Steffens
On 07/20/2016 11:07 PM, Bill Barry wrote:

> What router do you have.  Does it have a wireless bridging mode? One type
> of wireless bridging is WDS, but there are others.

Buffalo WZR-600DHP.


-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Rich Shepard
On Wed, 20 Jul 2016, Russell Senior wrote:

> It's not totally simple, though there may be off-the-shelf solutions too,

   I wrote to Dick that I have a couple of Rosewill RNX-N-180UBE 802.11 B/G/N
wireless adapters I bought but did not use ... or open. Both are available
for sale at cost.

Rich
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Russell Senior
> "Russell" == Russell Senior  writes:

Russell> You could do something similar with a router running OpenWrt in
Russell> place of the laptop, with the radio in client mode, acting as
Russell> the WAN interface.  There, you have the nice advantage that the
Russell> router already has a DHCP server built in.

FWIW, I just built a device that could do this for you, one of our
mostly retired Netgear WGT634U's.  How long do you need it for?


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Russell Senior
> "Russell" == Russell Senior  writes:

> "Dick" == Dick Steffens  writes:
Dick> I may need to be without Comcast for a time. Is there a way to use
Dick> a tablet WiFi hotspot and a laptop to feed my router so I can
Dick> support two desktops?

Dick> We got a small tablet from Verizon before going on a trip in
Dick> June. It works well as a WiFi hotspot to connect our laptops. But
Dick> since our desktops don't have radios, I'm hoping there's a way to
Dick> make one of my laptops serve my router so I can continue to serve
Dick> our desktops. I assume I'll need to install and configure
Dick> something to be a DCHP server so the router can get an address
Dick> from the laptop.

Dick> To save on Verizon data usage, I probably won't leave the tablet
Dick> connected to Verizon all the time. Is there something I'll need to
Dick> do on the laptop so that it doesn't try to connect to the router
Dick> when the tablet is off? Or maybe I don't actually turn the tablet
Dick> off, but just disconnect it from Verizon.

Dick> Advice appreciated.

Oh, and yes (actually reading what you wrote), running it through a
laptop can work.  Laptop wifi connects to your mobile hotspot, ethernet
connects your laptop to the WAN port on a router (or directly to a
switch or desktop machine), give the ethernet interface a static IP on a
different network from the mobile hotspot, e.g. 192.168.11.1/24, then run
the command:

  iptables -t nat -I POSTROUTING -o wlan0 -j MASQUERADE

(where wlan0 is your laptop's wireless interface connecting to the
mobile hotspot).

Then you'll need to run a DHCP server providing leases on the ethernet
interface only, and you are done.

You could do something similar with a router running OpenWrt in place of
the laptop, with the radio in client mode, acting as the WAN interface.
There, you have the nice advantage that the router already has a DHCP
server built in.

The key is to avoid trying to put a client-mode interface into a network
bridge with anything.  That is disaster, don't go there.  Routing works
fine, so use it and MASQUERADE'ing (i.e. NAT).


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-21 Thread Russell Senior
> "Dick" == Dick Steffens  writes:

Dick> I may need to be without Comcast for a time. Is there a way to use
Dick> a tablet WiFi hotspot and a laptop to feed my router so I can
Dick> support two desktops?

Dick> We got a small tablet from Verizon before going on a trip in
Dick> June. It works well as a WiFi hotspot to connect our laptops. But
Dick> since our desktops don't have radios, I'm hoping there's a way to
Dick> make one of my laptops serve my router so I can continue to serve
Dick> our desktops. I assume I'll need to install and configure
Dick> something to be a DCHP server so the router can get an address
Dick> from the laptop.

Dick> To save on Verizon data usage, I probably won't leave the tablet
Dick> connected to Verizon all the time. Is there something I'll need to
Dick> do on the laptop so that it doesn't try to connect to the router
Dick> when the tablet is off? Or maybe I don't actually turn the tablet
Dick> off, but just disconnect it from Verizon.

Dick> Advice appreciated.

Yes, it's possible.  It's not totally simple, though there may be
off-the-shelf solutions too, but if you have an access point that is
supported by OpenWrt/LEDE that also has a USB host port (many modern
ones do), you can install kmod-usbnet and plug your USB dongle or USB
tethered phone into the access point's USB port, and away you go, wifi
and/or wired but with WAN provided over the USB connected device.

PTP has built such things before.  We had one at OSCON a few years ago,
as a party-trick.  Wifi is/was horrible in the exhibit hall, but it worked.


-- 
Russell Senior, President
russ...@personaltelco.net
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


Re: [PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-20 Thread Bill Barry
On Wed, Jul 20, 2016 at 9:29 PM, Dick Steffens 
wrote:

> I may need to be without Comcast for a time. Is there a way to use a
> tablet WiFi hotspot and a laptop to feed my router so I can support two
> desktops?
>
> We got a small tablet from Verizon before going on a trip in June. It
> works well as a WiFi hotspot to connect our laptops. But since our
> desktops don't have radios, I'm hoping there's a way to make one of my
> laptops serve my router so I can continue to serve our desktops. I
> assume I'll need to install and configure something to be a DCHP server
> so the router can get an address from the laptop.
>
>
What router do you have.  Does it have a wireless bridging mode? One type
of wireless bridging is WDS, but there are others.

Bill
___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug


[PLUG] How do I use a tablet WiFi hotspot for my desktop machine?

2016-07-20 Thread Dick Steffens
I may need to be without Comcast for a time. Is there a way to use a 
tablet WiFi hotspot and a laptop to feed my router so I can support two 
desktops?

We got a small tablet from Verizon before going on a trip in June. It 
works well as a WiFi hotspot to connect our laptops. But since our 
desktops don't have radios, I'm hoping there's a way to make one of my 
laptops serve my router so I can continue to serve our desktops. I 
assume I'll need to install and configure something to be a DCHP server 
so the router can get an address from the laptop.

To save on Verizon data usage, I probably won't leave the tablet 
connected to Verizon all the time. Is there something I'll need to do on 
the laptop so that it doesn't try to connect to the router when the 
tablet is off? Or maybe I don't actually turn the tablet off, but just 
disconnect it from Verizon.

Advice appreciated.

-- 
Regards,

Dick Steffens

___
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug