This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ethers } = require("ethers"); | |
// Function to create a random wallet | |
async function createRandomWallet() { | |
const wallet = ethers.Wallet.createRandom(); | |
const address = wallet.address; | |
const privateKey = wallet.privateKey; | |
const mnemonic = wallet.mnemonic.phrase; | |
console.log(`Address: ${address}`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PORT Forward Create | |
sudo iptables -t nat -A PREROUTING -p tcp --dport {PORT} -j DNAT --to-destination {HOST} | |
sudo iptables -t nat -A POSTROUTING -j MASQUERADE | |
sudo sysctl -w net.ipv4.ip_forward=1 | |
sudo firewall-cmd --zone=public --add-port={PUBLIC_PORT}/tcp --permanent | |
sudo firewall-cmd --reload | |
# PORT Forward Delete |