Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
AbahDoku Custom
Serba-serbi Windows
AbahDoku Wiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Zerotier
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Zerotier sebagai Remote Gateway== ===Aktifkan IP Forwarding=== Edit file /etc/sysctl.conf Buang tanda pagar (#) pada baris #net.ipv4.ip_forward=1 menjadi net.ipv4.ip_forward=1 atau gunakan command berikut : sysctl -w net.ipv4.ip_forward=1 Hasilnya menjadi : net.ipv4.ip_forward = 1 ===Konfigurasi iptables=== Cek menggunakan ifconfig untuk mendapatkan interface yg digunakan untuk internet dan dan virtual interface yang terhubung ke zerotier, misal : interface internet adalah eth0 dan virtual interface zerotier adalah zt7nnalacz Jalankan command berikut di terminal : PHY_IFACE=eth0 ZT_IFACE=zt7nnalacz ===Tambahkan Rule di iptables=== Jalankan perintah berikut : 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 ===Simpan Rule iptables=== Jalankan perintah : apt install iptables-persistent Ketik Y dan enter jika muncul pertanyaan pada proses berikutnya Dan jalankan perintah berikut agar saat booting rule yang dibuat bisa langsung berjalan : bash -c iptables-save > /etc/iptables/rules.v4
Summary:
Please note that all contributions to AbahDoku Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
AbahDoku Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width