Setup Mikrotik to send Syslog data to Kiwire.

    950

    MikroTik

    1. Configuring Web Proxy in MikroTik

    Enable Mikrotik Web Proxy by navigating to IP > Web Proxy in General tab, click Enable, set Max Cache Size to none and click Cache On Disk

    11

     

    1. Configuring Transparent Proxy

    If we want that every user must be automatically redirected to Proxy transparently, then we have to create additional rule to forcefully redirect users to proxy service, which is called TRANSPARENT PROXY.

    Goto IP > FIREWALL > NAT and create new rule

    12

     

    In Chain, Select dstnat,
    In Protocol, Select 6 (tcp)
    In Dst. Port, Type 80

    13

     

    In Extra,
    Under Hotspot, Select auth

    14

     

    Now go to Action Tab,
    In Action, Select redirect
    In To Ports, Type 8080

    15

     

    3. Configuring System Logging

    Now go to System > Logging > Rules Tab and create new,
    In Topics, select web-proxy and except debug
    In Prefix, type proxy
    In Action, select remote

    16

     

    In Actions Tab, double click on remote,
    In Remote Address, put Kiwire IP address

    17

     

     

    KIWIRE

    1. Need to edit the rsyslog.conf file. SSH into Kiwire and run the following command.

    [root@localhost ~]# nano /etc/rsyslog.conf

    18

     

    Comment out the highlighted script as below

    19

     

     [root@localhost ~]# service rsyslog restart

    20

     

    To view the webproxy log

    [root@localhost ~]# tail -f /var/log/messages

    22

     

    In Kiwire Web Panel

    Go to REPORTS > Insight > User Access URL

    21