Coder Social home page Coder Social logo

wg-cmd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wg-cmd's Issues

NAT options don't work without additional firewall rule

Describe the bug
NAT options don't work

To Reproduce
Steps to reproduce the behavior:

  1. Create a new tunnel & client
  2. Enable NAT
  3. Try and use tunnel
  4. Client can't route

Expected behavior
Client should be able to route

Environment (please complete the following information):

  • OS: Linux
  • Distribution Debian 12
  • Current

Additional context

I fixed this by adding "iptables -A FORWARD -o wg0 -j ACCEPT" to PostUp, so the 2 lines for me now look like:

PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE; iptables -A FORWARD -o wg0 -j ACCEPT
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens18 -j MASQUERADE; iptables -D FORWARD -o wg0 -j ACCEPT

Support for IPv6 DNS

Is your feature request related to a problem? Please describe.
On machine with IPv6, the DNS settings only reflect an IPv4 address, not the IPv6.

Describe the solution you'd like
Include the v4 and v6 addresses for DNS

Describe alternatives you've considered
Manually retrieved the IPv6 DNS addresses and added them to the configuration.

Additional context
Would enable the internet transition to v6. Love the commander!

Allow configuration of AllowedIPs in server config

Is your feature request related to a problem? Please describe.
I have a server (a) and 2 clients (b,c). Client b sits on a LAN with many other devices (192.168.1.0/24). I'd like to access those devices (in which WG can't be installed) from client c (via the server). To do this in a typical Wireguard configuration (skipping iptables and systcl config for now) you would append the subnet (192.168.1.0/24) to AllowedIPs in the server config file for the peer that sits on the LAN (b).

Describe the solution you'd like
A way to define AllowedIPs for peers, but in the server config file.

Describe alternatives you've considered
N/A

Additional context
Thank you for this excellent project!

MTU

Add MTU setting Client and Server

WG-server

[Interface]
...
MTU = 1420

WG-peer

[Interface]
...
MTU = 1384

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.