angristan / angristan/wireguard-install

multi-port with iptables

未關閉
#445 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Shell
星號
11.3k
分支
1.7k
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。