# oct/15/2019 17:40:44 by RouterOS 6.45.3
# software id = 6H94-RTE8
#
# model = RouterBOARD 750G r3
# serial number = 8AFF080417D3
/interface bridge
add admin-mac=CC:2D:E0:B0:27:B6 auto-mac=no comment=defconf name=bridge
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.87.10-192.168.87.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
add bridge=bridge local-address=dhcp name=VPN_DHCP remote-address=dhcp
add change-tcp-mss=yes local-address=192.168.200.254 name=openvpn \
    remote-address=192.168.200.10 use-compression=no use-encryption=required
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/interface ovpn-server server
set auth=sha1 certificate=SERVER cipher=aes256 default-profile=VPN_DHCP \
    enabled=yes mode=ethernet require-client-certificate=yes
/ip address
add address=192.168.87.1/24 comment=defconf interface=ether2 network=\
    192.168.87.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
    ether1 use-peer-dns=no
/ip dhcp-server lease
add address=192.168.87.2 comment=PRINTERI mac-address=2C:59:E5:D5:42:B0 \
    server=defconf
/ip dhcp-server network
add address=192.168.87.0/24 comment=defconf gateway=192.168.87.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1
/ip dns static
add address=192.168.87.1 name=router.lan
/ip firewall address-list
add address=srv.auu.ge list=kot
add address=work.auu.ge list=kot
add address=deamed.auu.ge list=kot
add address=dolidze.auu.ge list=kot
add address=eliava.auu.ge list=kot
add address=work2.auu.ge list=kot
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=accept chain=input comment="ALLOW KOT WINBOX" dst-port=8291 \
    protocol=tcp src-address-list=kot
add action=accept chain=input comment="Allow OpenVPN" dst-port=1194 protocol=\
    tcp
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=accept chain=srcnat dst-address=192.168.87.0/24 src-address=\
    192.168.88.0/24
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    ipsec-policy=out,none out-interface-list=WAN
/ip route
add distance=1 dst-address=192.168.88.0/24 gateway=192.168.200.10
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/ip ssh
set forwarding-enabled=remote
/ppp secret
add name=midlerO password=E30bae74 profile=VPN_DHCP service=ovpn
add name=test password=test profile=openvpn service=ovpn
/system clock
set time-zone-name=Asia/Tbilisi
/system identity
set name=PIA
/system scheduler
add interval=5m name=IPPost on-event=\
    "/tool fetch url=\"https://all.auu.ge/mikrotik/getip/\?device=Dolidze\"" \
    policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=mar/27/2019 start-time=09:36:46
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN