More Wireguard

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-28 14:45:27 +02:00
parent 39742dc4a2
commit eb1dc094f1
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -43,7 +43,7 @@ in
nat.forwardPorts = [
{
destination = "127.0.0.1:6666";
destination = "64.225.104.221:6666";
proto = "udp";
sourcePort = 500;
}
@ -52,6 +52,7 @@ in
firewall = {
extraCommands = ''
iptables -P FORWARD DROP
iptables -t nat -I PREROUTING -i eth0 -d 64.225.104.221/32 -p udp -m multiport --dports 500 -j REDIRECT --to-ports 6666
'';
interfaces."eth0" = {