Comments (3)
What Port do you want to change? The Wireguard Port on the Server? This is a really bad idea, because you need to touch every config on every client you already use.
If you really need to do that, you have to replace this port manually in your server config, script, firewall rules and all client configs on all clients. This can't be done via this script.
from wireguard-install.
What Port do you want to change? The Wireguard Port on the Server? This is a really bad idea, because you need to touch every config on every client you already use.
If you really need to do that, you have to replace this port manually in your server config, script, firewall rules and all client configs on all clients. This can't be done via this script.
I understand what you are talking about. But I use WireGuard server as a personal one, so have 2 devices connected. Changing port number on them is not a problem. The problem is that I live in a country, where government blocks server port after a day or two when see that this port is used for VPN traffic. The solution is to run command on server and change two configs on devices, than to reinstall wire guard with the new port, recreate users and transfer configs to devices.
from wireguard-install.
While this will not be implemented into the script, I understand your use case. In the server, you can redirect ports like this, assuming you are using Debian and no firewall:
iptables -t nat -A PREROUTING -p udp -d $IP --dport $NEW_PORT -j REDIRECT --to-port $OLD_PORT
$IP
is the IP of your server$OLD_PORT
is the port where WireGuard is listening originally$NEW_PORT
is the new port where you want WireGuard to be available
You can run this multiple times to set up multiple ports and even use a big range and change on demand from the client. That said, there are better tools than WireGuard to evade filtering, if the need arises.
from wireguard-install.
Related Issues (20)
- Would like to be able to specify server's IP Addresses so multiple server/clients can be setup. HOT 2
- Client Name Length should be limited to 15 chars HOT 9
- client connected same time HOT 1
- The git.io link does not work anymore HOT 1
- Add option to use wireguard-go implementation. HOT 1
- Arch Linux support HOT 2
- cant download HOT 1
- Support dual-stack servers HOT 3
- TUN device unavailable HOT 2
- Wireguard behind CGNAT HOT 4
- Wireguard behind NAT or on IPv6 HOT 1
- Add the ability to specify the client's subnet HOT 1
- I can't customize my public IP address HOT 1
- This installer needs to be run with superuser privileges. HOT 2
- Support for Openwrt? HOT 1
- Wireguard doesn't work after a power outage HOT 1
- Public IPv4 address step is skipped. HOT 4
- Reddit don't want me to use wireguard HOT 2
- windows browsers not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wireguard-install.