Dalam dunia jaringan, Border Gateway Protocol (BGP) adalah protokol inti yang digunakan untuk pertukaran informasi routing antar sistem otonom (AS) di internet. Jika Anda memiliki VPS (Virtual Private Server) di Indonesia dan ingin mengkonfigurasinya untuk mendukung BGP session, artikel ini akan memandu Anda melalui langkah-langkah yang diperlukan, mulai dari konfigurasi kernel Linux hingga pengaturan jaringan.

Konfigurasi Kernel Linux

Kernel Linux perlu dikonfigurasi untuk mendukung fitur jaringan yang diperlukan oleh BGP, seperti forwarding paket dan dukungan untuk protokol BGP.
BGP memerlukan IP forwarding untuk mengirim paket antar jaringan. Aktifkan fitur ini dengan cara berikut:

Kernel Linux perlu dikonfigurasi untuk mendukung fitur jaringan yang diperlukan oleh BGP, seperti forwarding paket dan dukungan untuk protokol BGP.

Aktifkan IP Forwarding

BGP memerlukan IP forwarding untuk mengirim paket antar jaringan. Aktifkan fitur ini dengan cara berikut:

sudo nano /etc/sysctl.conf
kemudian copy paste script di bawah
jika sudah jalankan perintah
sudo sysctl -p

fs.file-max = 16777216
fs.nr_open = 1073741824
kernel.hung_task_timeout_secs = 0
kernel.msgmax = 65536
kernel.msgmnb = 65536
net.core.default_qdisc = cake
net.core.netdev_max_backlog = 30000
net.core.rmem_default = 67108864
net.core.rmem_max = 67108864
net.core.somaxconn = 65536
net.core.wmem_max = 67108864
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.arp_announce = 1
net.ipv4.conf.all.arp_filter = 1
net.ipv4.conf.all.arp_ignore = 2
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.all.ignore_routes_with_linkdown = 1
net.ipv4.conf.all.rp_filter = 0
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.fib_multipath_use_neigh = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_errors_use_inbound_ifaddr = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.icmp_msgs_per_sec = 2500
net.ipv4.icmp_ratelimit = 0
net.ipv4.igmp_max_memberships = 100
net.ipv4.ip_forward = 1
net.ipv4.ip_local_port_range = 1024 65535
net.ipv4.neigh.default.base_reachable_time_ms = 14400000
net.ipv4.neigh.default.gc_thresh1 = 1024
net.ipv4.neigh.default.gc_thresh2 = 8192
net.ipv4.neigh.default.gc_thresh3 = 16384
net.ipv4.route.max_size = 1073741824
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_dsack = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 120
net.ipv4.tcp_l3mdev_accept = 1
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_mem = 4194304 16777216 67108864
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_rmem = 4194304 16777216 67108864
net.ipv4.tcp_sack = 1
net.ipv4.tcp_syn_retries = 3
net.ipv4.tcp_synack_retries = 3
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_wmem = 4194304 16777216 67108864
net.ipv6.conf.all.accept_ra_defrtr = 0
net.ipv6.conf.all.accept_ra_pinfo = 0
net.ipv6.conf.all.accept_ra_rtr_pref = 0
net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.all.autoconf = 0
net.ipv6.conf.all.dad_transmits = 0
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.all.ignore_routes_with_linkdown = 1
net.ipv6.conf.all.router_solicitations = -1
net.ipv6.icmp.ratelimit = 0
net.ipv6.neigh.default.base_reachable_time_ms = 14400000
net.ipv6.neigh.default.gc_thresh1 = 1024
net.ipv6.neigh.default.gc_thresh2 = 8192
net.ipv6.neigh.default.gc_thresh3 = 16384
net.ipv6.route.max_size = 32768000
vm.max_map_count = 1048575
vm.swappiness = 10 # Perbaikan: Lebih hemat swap
net.ipv6.conf.all.disable_ipv6 = 0

Kesimpulan

Mengkonfigurasi kernel dan jaringan Linux VPS untuk BGP session di Indonesia memerlukan pemahaman tentang protokol BGP, konfigurasi kernel, dan manajemen jaringan. Dengan mengikuti panduan di atas, Anda dapat menyiapkan VPS Anda untuk mendukung BGP session.

apiku-popup

KONTAK UNTUK KONSUL

Dapatkan Penawaran Terbaik sekarang juga!!

Terimaka kasih telah menghubungi kami!! Staff kami akan menghubungi anda segera.