angristan / angristan/wireguard-install

multi-port with iptables

オープン
#445 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。