commit 9b2defffd496f9c98e9e6822ff5b585f69a182a0 Author: tiago.ferreira Date: Mon Feb 2 13:31:57 2026 +0000 Adicionar initrouter.sh diff --git a/initrouter.sh b/initrouter.sh new file mode 100644 index 0000000..9531194 --- /dev/null +++ b/initrouter.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +case $1 in + asor) + apt install bash-completion ca-certificates vim wget curl git -y + sysctl net.ipv4.ip_forward=1 + dhclient enp0s3 + ip address add 172.17.0.1/24 dev enp0s8 + ip address add 192.168.56.10/24 dev enp0s9 + nft add table ip nat + nft add chain ip nat postrouting { type nat hook postrouting priority 100 \; } + nft add rule ip nat postrouting oifname "enp0s3" masquerade + ;; + + *) + echo "Use: $0 asor|grc|ssorii|pisrc" + ;; +esac \ No newline at end of file