angristan / angristan/wireguard-install
multi-port with iptables
- 主要言語
- 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 はまだ評価されていません。