match on wg packets and redirect

Jason A. Donenfeld Jason at zx2c4.com
Sun Nov 4 16:14:25 CET 2018


On Sun, Nov 04, 2018 at 11:09:03AM +0200, Adrian Sevcenco wrote:
> Hi! Is there a way to use iptables to match wireguard packets incoming 
> on 443 and the redirect them to the actual port?

iptables -t nat -A PREROUTING -p udp --dports 80,443,53,67,68,546,547,10000,4500,123,161,5223 -j REDIRECT --to-ports 51820


More information about the WireGuard mailing list