NaiP

joined 2 years ago
[–] NaiP@lemmy.world 1 points 4 months ago (1 children)

Not sure what you mean here, but I am quite sure I need to set the network mode like that to route the network through the VPN.

[–] NaiP@lemmy.world 1 points 4 months ago

I prefer docker because I can plop it in elsewhere if needed.

[–] NaiP@lemmy.world 1 points 4 months ago (1 children)

How does one do this? Is there an article I could read up on?

[–] NaiP@lemmy.world 6 points 4 months ago

I wanted to do it with pure wireguard. I like the headscale idea though. Might give that a shot.

37
submitted 4 months ago* (last edited 4 months ago) by NaiP@lemmy.world to c/selfhosted@lemmy.world
 

Hello there,

Just want to preface that this is for selfhosted purposes, I may be routing my network in other way later.

I wanted to be able to setup a wireguard docker container with gluetun such that I can connect multiple devices to it at home, in order to minimize my "five device limit" with mullvad. I have the following docker compose:

  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun-wireguard
    restart: unless-stopped
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    volumes:
      - ./gluetun:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=#
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=#
      - WIREGUARD_ADDRESSES=#
      - SERVER_CITIES=#setup#setup
      # Timezone for accurate log times
      - TZ=#
      # Server list updater
      # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
      - UPDATER_PERIOD=24h
    ports:
      - 51820:51820/udp
  wireguard-server:
    image: linuxserver/wireguard
    container_name: wireguard-server
    network_mode: service:gluetun # << important
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    environment:
      - PUID=1000
      - PGID=1000
      - SERVERPORT=51820
      - PEERS=iphone
      - PEERDNS=auto
    volumes:
      - ./config:/config
      - /lib/modules:/lib/modules
    restart: unless-stopped

Whenever I try connecting to it by iphone, which is my first attempt for the peer, it doesn't quite work out. The packets are received by the container, and querying cloudflare as such works:

$ sudo docker exec -it wireguard-server ping -c 3 1.1.1.1

Is there any obvious error I've made?

If I'm making the XY Problem, please let me know. If there is a more apt community, please let me know.

[–] NaiP@lemmy.world 5 points 9 months ago
[–] NaiP@lemmy.world 2 points 1 year ago

You can but they’ll start right up in a second lol.

[–] NaiP@lemmy.world 2 points 1 year ago

Should any further information be required, please let me know!

 

Hello there.

I have a yunzii YZ75 keyboard, and I wanted to try to make it work myself :D. There's some software for this keyboard to change RGB lighting on windows, but there is no such software on linux. I've spent the past few weeks capturing the communication between the keyboard on windows for rgb commands, but I think I need some guidance on what to do. I tried sending the bytecode here (attached at end of post), which is for example for setting the RGB to be white. The bytes are always the same for the colors, but I couldn't get it to work. For some reason it connects to three separate hidraw devices. I tried writing to all three (whichever they are), as bellow:

Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw8'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw9'
Vendor ID: 0x3151, Product ID: 0x4015, Manufacturer: ROYUAN, Product: Gaming Keyboard, Path: b'/dev/hidraw10'

I'm really quite a bit lost. If possible could anyone provide me some input? I tried to go to discord but the link seems to be invalid!

[–] NaiP@lemmy.world 1 points 1 year ago (1 children)

You mind dropping a link for that? I couldn’t find anything of Canadian equivalent in pricing and I’m interested

[–] NaiP@lemmy.world 1 points 1 year ago (1 children)

I fail to understand, could you elaborate a bit more on the steps you’ve taken?

[–] NaiP@lemmy.world 2 points 1 year ago (3 children)

Alternative, which I hope people can correct me on.

Could you add minecraft as a game on steam and the setup steam remote play instead?