Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-25 Thread acharya . sagar . sagar5
Solved the tethering problem.

Stuart pointed the solution out but I used it after understanding a few things. 
Tethering is automatically configured by the qube in which the USB bus exists. 
So, we just have to make sure that the USB exists in that VM. I made sys-usb 
because I didn't think sys-net was preconfigured well. Maybe it was, I didn't 
try.

Go to dom0. In terminal use lsusb and figure out the bus on which your usb 
device(tethering mobile connection) is. My was on bus 1. I made sys-usb, shut 
it down, under it's settings, went to advanced changed it to HVM, went to 
devices, located the PCI address of my USB port (shown in 
https://www.qubes-os.org/doc/assigning-devices/  ), selected it, pressed the 
greater than sign. Goes to right side. Reset PCI Device(selected one). Restart 
VM. Assign it as sys-firewall's NetVM. Tethering switch. Boom! Tethering done!

I'll do the adapter configuring soon.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/b98ad5b7-cf06-49d4-a9e6-16bb08f98c21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-25 Thread acharya . sagar . sagar5
On Monday, February 25, 2019 at 10:32:34 PM UTC+5:30, acharya.sa...@gmail.com 
wrote:
> This is harder than it looks guys. I got my WiFi adapter today.
> 
> I found out that sys-net already has USB 2.0 assigned in it(Bus 001). lsusb 
> under sys-net gives them. I plugged my wifi adapter in 2.0 USB (Bus 001) 
> still I don't get any connection.
> 
> I tried making sys-wifi assuming sys-net will have some incorrect settings 
> but when I try to attach the USB device to it, it shows
> backend vm 'dom0' doesn't expose device 'PCIaddressOfUsb'
> 
> I really don't know how to proceed. It should atleast show the device. Why 
> aren't any USB devices not linked to storage recognized?
> 
> Is my device there? Do I need to install it's drivers?

*not recognized
I found Bus 001 Device 002 is  RaLink ... under dom0 and
   ID 0627:0001 Adomax Technology Co., Ltd under
  sys-net

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/b05732bc-7cd4-4587-9ccf-1f3bbcd14490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-25 Thread acharya . sagar . sagar5
This is harder than it looks guys. I got my WiFi adapter today.

I found out that sys-net already has USB 2.0 assigned in it(Bus 001). lsusb 
under sys-net gives them. I plugged my wifi adapter in 2.0 USB (Bus 001) still 
I don't get any connection.

I tried making sys-wifi assuming sys-net will have some incorrect settings but 
when I try to attach the USB device to it, it shows
backend vm 'dom0' doesn't expose device 'PCIaddressOfUsb'

I really don't know how to proceed. It should atleast show the device. Why 
aren't any USB devices not linked to storage recognized?

Is my device there? Do I need to install it's drivers?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/799137ea-94da-4b0f-9b47-86a9a024ad2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-22 Thread acharya . sagar . sagar5
Stuart, I read things on tethering earlier and there's no clear indication that 
the people were able to solve the problem and get the connection. So I have 
ordered a WiFi adapter and I'll install it in a couple of days reading relevant 
sources. Regarding USB, there's a nice GUI + sign tool on top right corner in 
R4 which I intend to use and nothing more. Once you plug in a USB device, it is 
detected in the tool and I'll distribute the trusted and untrusted ones in 
different qubes.
Also, I have 8 usb buses. So I can use different ones to connect to different 
VMs.

unman, there's no difference in both responses tethered and untethered here. I 
executed qvm-usb and qvm-device ls
Got

BACKEND:DEVID DESCRIPTION USED BY
&
Got empty response from qubesd. See journalctl in dom0 for details

respectively. Why don't I connect devices to sys-net? Again quoting the Joanna 
article above.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/879b75f0-f390-430e-bb3a-8a3460aaa484%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-22 Thread unman
On Thu, Feb 21, 2019 at 05:25:52AM -0800, acharya.sagar.sag...@gmail.com wrote:
> I don't have a sys-usb. If I assign my usbs to sys-usb, then how will the net 
> VM have access to it?
> Also according to Joanna here, networking stacks lie in NetVM
> https://blog.invisiblethings.org/2017/10/03/core3.html
> So I want to move my USB bus of the mobile connection to sys-net. When I 
> tried the command
> 
> qvm-pci -a sys-net 08:00.3 
> which is the address of my usb bus, it shows error regarding 'sys-net'
> 
> Also,
> Under dom0, when I execute commmand
> qvm-block
> With tethered usb it doesn't show any device and without tethered usb, it 
> shows
> 
> dom0:sr0  File-Stor_Gadget (CDROM)
> which means once I start tethering, the USB connection somehow dissappears.
> 
> Thanks Stuart
> 
Are you trying to attach pci device to a running sys-net? Dont.
(What was the error you got?)

qvm-block shows (as the name suggests) block devices.
qvm-usb or qvm-device may be of more help in this context.
Post output from those commands tethered and non-tethered.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190222113147.pk7lmyqbhife6scf%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-21 Thread Stuart Perkins



On Thu, 21 Feb 2019 05:25:52 -0800 (PST)
acharya.sagar.sag...@gmail.com wrote:

>I don't have a sys-usb. If I assign my usbs to sys-usb, then how will the net 
>VM have access to it?
>Also according to Joanna here, networking stacks lie in NetVM
>https://blog.invisiblethings.org/2017/10/03/core3.html
>So I want to move my USB bus of the mobile connection to sys-net. When I tried 
>the command
>
>qvm-pci -a sys-net 08:00.3 
>which is the address of my usb bus, it shows error regarding 'sys-net'
>
>Also,
>Under dom0, when I execute commmand
>qvm-block
>With tethered usb it doesn't show any device and without tethered usb, it shows
>
>dom0:sr0  File-Stor_Gadget (CDROM)
>which means once I start tethering, the USB connection somehow dissappears.
>
>Thanks Stuart
>

If you implement sys-usb, it allows you to assign each device to other app or 
system vm's.  This way you could assign your usb network device to sys-net and 
your storage device to another appVM.  If you need to separate multiple devices 
on the same usb hub, this may be the only way.

Stuart

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190221081341.1bc1995b%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-21 Thread acharya . sagar . sagar5
I don't have a sys-usb. If I assign my usbs to sys-usb, then how will the net 
VM have access to it?
Also according to Joanna here, networking stacks lie in NetVM
https://blog.invisiblethings.org/2017/10/03/core3.html
So I want to move my USB bus of the mobile connection to sys-net. When I tried 
the command

qvm-pci -a sys-net 08:00.3 
which is the address of my usb bus, it shows error regarding 'sys-net'

Also,
Under dom0, when I execute commmand
qvm-block
With tethered usb it doesn't show any device and without tethered usb, it shows

dom0:sr0  File-Stor_Gadget (CDROM)
which means once I start tethering, the USB connection somehow dissappears.

Thanks Stuart

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/93fc4b80-e7af-4c97-a102-6e354e96b318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-20 Thread Stuart Perkins



On Wed, 20 Feb 2019 08:35:29 -0800 (PST)
acharya.sagar.sag...@gmail.com wrote:

>I understand that the other VM which have firewall as their NetVM get the 
>network which gets filtered through firewall VM to secure the system. The 
>firewall system in turn receives network from sys-net. I connected my mobile 
>and flipped the switch of USB tethering but am not sure how to configure it.
>
>I'm at the network connection page of sys-net where I need help of how to 
>configure the network.
>
>There's not any material related to qubes USB tethering elsewhere.
>

Qubes passes network activity ultimately through sys-net.  Sys-net is just a 
virtual machine with access to the network devices.  This means that in order 
to use a usb tethered phone as a network device, the sys-net vm must have 
access to the usb device the phone is connected to.  If you have sys-usb 
implemented, it means assigning the device via qvm-usb.  If not, it means 
assigning the usb hub at the qubes manager level...which will make other 
devices on the same hub inaccessible to other VMs.

Stuart
Qubes 3.2 user...

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20190220135133.302647ab%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] How to connect to usb tethering of my mobile to sys-net qube

2019-02-20 Thread acharya . sagar . sagar5
I understand that the other VM which have firewall as their NetVM get the 
network which gets filtered through firewall VM to secure the system. The 
firewall system in turn receives network from sys-net. I connected my mobile 
and flipped the switch of USB tethering but am not sure how to configure it.

I'm at the network connection page of sys-net where I need help of how to 
configure the network.

There's not any material related to qubes USB tethering elsewhere.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8c01d368-322d-4dd1-b692-a5b5f81a8b74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.