Wednesday, January 15, 2025

Instalasi Debian KMS Server

 cd /opt/

git clone https://github.com/kebe7jun/linux-kms-server
useradd -s /usr/sbin/nologin -r -M vlmcsd
cd /opt/linux-kms-server/vlmcsd/
make
Add following file
nano /lib/systemd/system/vlmcsd.service
[Unit]
Description=vlmcsd KMS emulator service
After=network-online.target
Wants=network-online.target


[Service]
Type=forking
User=vlmcsd

ExecStart=/opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd/vlmcsd.log

[Install]
WantedBy=multi-user.target
save
Create 
mkdir /var/log/vlmcsd
chown vlmcsd:vlmcsd /var/log/vlmcsd
add enable service
systemctl enable vlmcsd
systemctl start vlmcsd
systemctl status vlmcsd
 vlmcsd.service - vlmcsd KMS emulator service
   Loaded: loaded (/lib/systemd/system/vlmcsd.service; enabled; vendor preset: e
   Active: active (running) since Thu 2025-01-16 14:03:50 WIB; 11s ago
  Process: 6825 ExecStart=/opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd
 Main PID: 6826 (vlmcsd)
    Tasks: 1 (limit: 4642)
   Memory: 360.0K
   CGroup: /system.slice/vlmcsd.service
           └─6826 /opt/linux-kms-server/vlmcsd/vlmcsd -l /var/log/vlmcsd/vlmcsd.

Jan 16 14:03:50 KMS systemd[1]: Starting vlmcsd KMS emulator service...
Jan 16 14:03:50 KMS systemd[1]: Started vlmcsd KMS emulator service.


Example activation license office
  1. Mount ISO and install.
  2. Open one of the Office applications, for example Word and close initial window that is asking for serial key.
  3. Open “cmd” as Administrator and run following commands (separated with #):
    # cd /d %ProgramFiles%\Microsoft Office\Office16
    # for /f %x in (‘dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms’) do cscript ospp.vbs /inslic:”..\root\Licenses16\%x”
    # cscript ospp.vbs /setprt:1688
    # cscript ospp.vbs /unpkey:6F7TH >nul
    # cscript ospp.vbs /inpkey:FXYTK-NJJ8C-GB6DW-3DYQT-6F7TH
    # cscript ospp.vbs /sethst:<IP OR FQDN OF YOUR KMS SERVER>
    # cscript ospp.vbs /act

Thursday, December 12, 2024

Setting Mikrotik 2 WAN

Setting as link balance 


WAN 1= 10.111.0.2/24 on Eth1

WAN2 = 172.16.0.0/24 on Eth2

LAN - 192.168.0.0/24 on Eth5


Create NAT

add chain=srcnat out-interface=ether1 action=masquerade

add chain=srcnat out-interface=ether2 action=masquerade


Create Policy Routing

Incoming

add chain=prerouting dst-address=10.111.0.0/24  action=accept in-interface=ether5

add chain=prerouting dst-address=172.16.0.0/24  action=accept in-interface=ether5

Crete marking

add chain=prerouting in-interface=ether1 connection-mark=no-mark action=mark-connection new-connection-mark=koneksiISP1

add chain=prerouting in-interface=ether2 connection-mark=no-mark action=mark-connection new-connection-mark=koneksiISP2


add chain=prerouting  in-interface=ether5 connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:3/0 action=mark-connection new-connection-mark=koneksiISP1

add chain=prerouting  in-interface=ether5 connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:3/1 action=mark-connection new-connection-mark=koneksiISP1

add chain=prerouting  in-interface=ether5 connection-mark=no-mark dst-address-type=!local per-connection-classifier=both-addresses:3/2 action=mark-connection new-connection-mark=koneksiISP2

add chain=prerouting connection-mark=ISP1_conn in-interface=ether5 action=mark-routing new-routing-mark=keISP1

add chain=prerouting connection-mark=ISP2_conn in-interface=ether5 action=mark-routing new-routing-mark=keISP2

add chain=output connection-mark=koneksiISP2 action=mark-routing new-routing-mark=keISP2


Ip Route+ Failover

add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_ISP1 distance=1 check-gateway=ping

add dst-address=0.0.0.0/0 gateway=172.16.0.1 routing-mark=to_ISP2 distance=2 check-gateway=ping



Wednesday, October 23, 2024

SFLOW Aruba 8100

 

Enable sflow

sflow

Set IP host collector

sflow collector 192.168.100.23


Set ip switch as agent

sflow agent-ip 192.168.100.51


Configure sFLow sampling rate and polling interval.

sflow sampling 5000

sflow polling 20


Check show sflow