Code Monkey home page Code Monkey logo

wireguard-over-wss's Issues

Config for windows

I'm new to networking and I need to make a home vpn but I have a windows client. Can you please make a Config for windows or atleast help me by someway by sharing some links. I really need somebody's help but there's very less information on this topic.

Nginx reverse proxy

Would be also nice to explain NGINX reverse proxy

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections  1024;
}

stream {
  resolver 8.8.8.8;

  map $ssl_preread_server_name $selected_upstream {
    YOUR.WIREGUARD.WEBSITE.COM 127.0.0.1:10443;
    default 127.0.0.1:8443; # YOUR EXISTING HTTPS WEBSERVER ADDRESS
  }

  server {
    listen 443; # PORT WE WILL LISTEN ON
    proxy_pass $selected_upstream;
    ssl_preread on;
  }
}

source: WebSocket connection to WireGuard

not working // RESOLVED

I'm having trouble realizing your tutorial now. Is it still up to date ? I'm doing all the steps you describe, but then my wireguard interface can load correctly, but cannot work properly (no transfer of data, and a basic command as 'curl' just freeze).
Any advice, way to debugg it ?

what are the post up routes for?

Can you explain about the 4 post up routing?
Specially I don't understand the reason for 128.0.0.0 and 8000::

post_up () {
    local tun=$1
    ip route add 0.0.0.0/1 dev "${tun}" > /dev/null 2>&1
    ip route add ::0/1 dev "${tun}" > /dev/null 2>&1
    ip route add 128.0.0.0/1 dev "${tun}" > /dev/null 2>&1
    ip route add 8000::/1 dev "${tun}" > /dev/null 2>&1
}

unexpected argument '-v' found

**

/etc/systemd/system/wstunnel.service

**
This line is not working
ExecStart=/usr/local/bin/wstunnel -v --server wss://0.0.0.0:443 --restrictTo=127.0.0.1:51820

Error

systemctl status wstunnel.service

wstunnel.service - Tunnel WG UDP over websocket
Loaded: loaded (/etc/systemd/system/wstunnel.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-12-20 18:27:14 UTC; 6s ago
Process: 942 ExecStart=/usr/local/bin/wstunnel -v --server wss://0.0.0.0:443 --restrictTo=127.0.0.1:51820 (code=exited, status=2)
Main PID: 942 (code=exited, status=2)
CPU: 1ms

Dec 20 18:27:14 wireguard-vpn systemd[1]: Started Tunnel WG UDP over websocket.
Dec 20 18:27:14 wireguard-vpn wstunnel[942]: error: unexpected argument '-v' found
Dec 20 18:27:14 wireguard-vpn wstunnel[942]: Usage: wstunnel
Dec 20 18:27:14 wireguard-vpn wstunnel[942]: For more information, try '--help'.
Dec 20 18:27:14 wireguard-vpn systemd[1]: wstunnel.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Dec 20 18:27:14 wireguard-vpn systemd[1]: wstunnel.service: Failed with result 'exit-code'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.