diff --git "a/D:\\jjsahdd/server.json" "b/D:\\jjsahdd/server.json" new file mode 100644 index 0000000..babd6a5 --- /dev/null +++ "b/D:\\jjsahdd/server.json" @@ -0,0 +1,23 @@ +{ + "Address": [ + "10.0.0.1/24" + ], + "ListenPort": 51820, + "PrivateKey": "6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw=", + "PublicKey": "u3b+DCYWlT+4u8LHw0w0P1Jd3NOPMAvwDpZzO17HfnE=", + "Endpoint": "ip_addr", + "PersistentKeepalive": 16, + "DNS": [ + "1.1.1.1" + ], + "AllowedIPs": [ + "0.0.0.0/0", + "::/0" + ], + "PreUp": "echo WireGuard PreUp", + "PostUp": "iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE", + "PreDown": "echo WireGuard PreDown", + "PostDown": "iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE", + "CreatedAt": 464703000, + "UpdatedAt": 464703000 +} \ No newline at end of file diff --git "a/D:\\jjsahdd/wg0.conf" "b/D:\\jjsahdd/wg0.conf" new file mode 100644 index 0000000..f3c40ee --- /dev/null +++ "b/D:\\jjsahdd/wg0.conf" @@ -0,0 +1,10 @@ +# Updated: 464703000 / Created: 464703000 +[Interface] +Address = 10.0.0.1/24 +ListenPort = 51820 +PrivateKey = 6O38xfKg6Jo4x4nm9KMwK/NYZNYjNIi+Lx28VqZAzlw= + +PreUp = echo WireGuard PreUp +PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE +PreDown = echo WireGuard PreDown +PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE \ No newline at end of file diff --git a/blockchain/solana/soon/setdata.go b/blockchain/solana/soon/setdata.go index e188bff..815f370 100644 --- a/blockchain/solana/soon/setdata.go +++ b/blockchain/solana/soon/setdata.go @@ -101,9 +101,6 @@ func SoonNodeCreation(data NodeDetails) { // projectDir := "blockchain/solana/soon/." - // // Your private key in base58 format (replace with your actual private key) - // privateKey := "kRVZ7yFvAZFufaUJheFecbp8gESdEFB6hzwRXzzdJGZdnH6hTvdhhZf65bCfG2fAyb9AxFuw3JTvXDPUPXwA5rG" - // Set environment variable to pass to JS file os.Setenv("SOLANA_PRIVATE_KEY", data.PrivateKey)