1. <Host network settings>
  2. <NAT Service configuration>
  3. <DHCP Service configuration>
  4. <Active Directory Domain configuration & DNS settings>
  5. <Web service & Proxy configuration>

🔐 Por padrão, os comandos são executados como usuário root.

1. <Host network settings>

Get-NetAdapter  # Interface index number (ex.10)
New-NetIPAddress -IPAddress "172.20.200.102" -PrefixLength 26 -InterfaceIndex 10 -DefaultGateway 172.20.200.65
Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses "172.20.200.102"Rename-Computer -NewName "ns" -Restart -Force
$AdminAccount = Get-LocalUser -Name Administrator
Rename-LocalUser -InputObject $AdminAccount -NewName "cyber"

< Checking >

ipconfig -all

2. <NAT Service configuration>

updata-alternative --set iptables /usr/sbin/iptables-legacy
vim /etc/rc.local

#!/bin/bash

DELETE

iptables -t nat -D POSTROUTING 1

NAT

iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

exit 0

chmod +x /etc/rc.local
systemctl restart rc-local
updata-alternative --set iptables /usr/sbin/iptables-legacy