Saturday, October 24, 2020
/etc/apt/sources.list
deb http://kartolo.sby.datautama.net.id/ubuntu/ bionic main restricted universe multiverse
deb http://kartolo.sby.datautama.net.id/ubuntu/ bionic-updates main restricted universe multiverse
deb http://kartolo.sby.datautama.net.id/ubuntu/ bionic-security main restricted universe multiverse
deb http://kartolo.sby.datautama.net.id/ubuntu/ bionic-backports main restricted universe multiverse
deb http://kartolo.sby.datautama.net.id/ubuntu/ bionic-proposed main restricted universe multiverse
apt-get update ; apt-get install libxslt1-dev libcurl3 libgeoip-dev python -y ; wget https://streaming-servers.com/downloads/install.py ; sudo python install.py
apt-get install unzip e2fsprogs python-paramiko -y
chattr -i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
rm -rf /home/xtreamcodes/iptv_xtream_codes/admin
rm -rf /home/xtreamcodes/iptv_xtream_codes/pytools
wget "https://streaming-servers.com/downloads/update.zip" -O /tmp/update.zip -o /dev/null && unzip /tmp/update.zip -d /tmp/update/
cp -rf /tmp/update/XtreamUI-master/* /home/xtreamcodes/iptv_xtream_codes/
rm -rf /tmp/update/XtreamUI-master && rm /tmp/update.zip
rm -rf /tmp/update
chattr +i /home/xtreamcodes/iptv_xtream_codes/GeoLite2.mmdb
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/
chmod u+x /home/xtreamcodes/iptv_xtream_codes/nginx_rtmp/sbin/nginx_rtmp
chmod u+x /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
/home/xtreamcodes/iptv_xtream_codes/start_services.sh
Tuesday, October 20, 2020
Hai sobat, kali ini saya akan share tips cara untuk membuat auto update tunneling menggunakan protocol GRE.
skema :
[ Server Tunnel ] <> INET BROADBAND <> [ Tunnel Client IP Public ]
jika menggunakan GRE-TUNNEL maka membutuhkan tiktok ip public yang dituangkan dalam remote-address
mekanismenya :
- selalu update ip public
- selalu update remote-address pada gre tunnel
# Start:global currentIP# ubah di sini:global iface "PPPOE200":global ifacegre "gre-soni"# validasi file script:if ([:len [/file find name~"$ifacegre"]] = 0 ) do={/in gre export file=$ifacegre}:if ($currentIP in 10.0.0.0/8) do={:log error "re-dial...";/in pppoe-client disable $iface:delay 2/in pppoe-client enable $iface}/in pppoe-client monitor $iface once do={:set currentIP $"local-address" }:global p2p [/ip address get [:pick [find interface=$ifacegre] 0] network ]:global target [/in gre get $ifacegre remote-address ]:global statusgre [/in gre get $ifacegre running ];:if ($statusgre != true) do={/in gre set $ifacegre local-address=$currentIP:log error "$ifacegre error, kirim file"/file set contents="/in gre set $ifacegre remote-address=$currentIP" [find name~"$ifacegre"]:delay 2/tool fetch mode=ftp upload=yes src-path="$ifacegre.rsc" dst-path="$ifacegre.rsc" user=ftp password=ftp port=2121 address="$target"}
Subscribe to:
Posts (Atom)