angristan / angristan/wireguard-install
multi-port with iptables
- Linguagem predominante
- Shell
- Estrelas
- 11.3k
- Forks
- 1.7k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I usually run my wireguard on port 443. Recently I was traveling and I came across a network that was doing something weird on port 443 and I could not connect to port 443 with wireguard.
I opened other ports to connect:
iptables -A INPUT -p udp -m multiport --dports 80,554,51820,443 -j ACCEPT
iptables -t nat -A PREROUTING -p udp -m multiport --dports 80,554,51820 -j REDIRECT --to-ports 443
It would be cool if the bash script could allow us to choose a default port that we want to open:
Default port ex : 443
Alternative port : 80, 554, 51820
and configure it with iptables. This way we don't have to have several instances of wireguard on different ports.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.