Script Zerotier sebagai remote gateway pada armbian server STB

Posted by rg_stealth Jumat, 20 Mei 2022 0 komentar

 



Zerotier sudah terinstall di STB. link

Route between ZeroTier Network and Physical Networks Armbian Server STB B860H

1. Enable IP Forwarding

     [Edit /etc/sysctl.conf to uncomment net.ipv4.ip_forward.]

      sysctl -w net.ipv4.ip_forward=1


2. Configure iptables

     a. [Modify physical network interface name, ZeroTier interface name.]

         PHY_IFACE=eth0

         ZT_IFACE=zt44xaj2sx

     b. [Add rules to iptables]

         iptables -t nat -A POSTROUTING -o $PHY_IFACE -j MASQUERADE

         iptables -A FORWARD -i $ZT_IFACE -o $PHY_IFACE -j ACCEPT

         iptables -A FORWARD -i $PHY_IFACE -o $ZT_IFACE -m state --state RELATED,ESTABLISHED -j ACCEPT

      c. [Save iptables rules for next boot]

          apt install iptables-persistent

          bash -c iptables-save > /etc/iptables/rules.v4



sumber : Andum Kawruh

TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: Script Zerotier sebagai remote gateway pada armbian server STB
Ditulis oleh rg_stealth
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://it-ordinary.blogspot.com/2022/05/script-zerotier-sebagai-remote-gateway.html . Terima kasih sudah singgah membaca artikel ini.

0 komentar :

Posting Komentar

Recent Comment

Sahabat it-ordinary

pageView