system identity set name=LocalAP
system clock set time-zone-name=Europe/Simferopol
system ntp client set enabled=yes mode=unicast primary-ntp=46.250.98.41 secondary-ntp=62.149.0.30
interface bridge add name=bridge1
interface bridge port add bridge=bridge1 interface=wlan1-gateway
interface bridge port add bridge=bridge1 interface=ether1-local
ip dns set servers=192.168.88.1
interface wireless security-profiles set default mode=dynamic-keys authentication-types=wpa2-psk wpa2-pre-shared-key=<secret_password>
interface wireless nstreme set enable-nstreme=yes wlan1-gateway
interface wireless set 0 mode=station-wds channel-width=20mhz ssid=MyBridge radio-name=LocalAP frequency=5300 wireless-protocol=any frequency-mode=superchannel country=ukraine periodic-calibration=enabled periodic-calibration-interval=10 hw-retries=15 hw-protection-mode=rts-cts ht-guard-interval=long tx-power-mode=card-rates tx-power=13 wds-mode=dynamic wds-default-bridge=bridge1 nv2-security=enabled nv2-preshared-key=<secret_password>
ip address set 0 comment=LAN address=192.168.88.2/24 network=192.168.88.0 interface=bridge1
queue type set ethernet-default pfifo-limit=500
queue type set wireless-default kind=pfifo pfifo-limit=500
tool graphing interface add interface=ether1-local store-on-disk=yes
system identity set name=RemoteAP
system clock set time-zone-name=Europe/Simferopol
system ntp client set enabled=yes mode=unicast primary-ntp=46.250.98.41 secondary-ntp=62.149.0.30
interface ethernet set 0 auto-negotiation=no speed=100Mbps
interface bridge add name=bridge1
interface bridge port add interface=wlan1-gateway bridge=bridge1
ip dhcp-server set default disabled=yes
ip dhcp-client disable 0
ip dns set servers=8.8.8.8
interface wireless security-profiles set default mode=dynamic-keys authentication-types=wpa2-psk wpa2-pre-shared-key=<secret_password>
interface wireless nstreme set enable-nstreme=yes wlan1-gateway
interface wireless set 0 mode=bridge channel-width=20mhz ssid=MyBridgeName radio-name=RemoteAP frequency=5300 wireless-protocol=nv2-nstreme frequency-mode=superchannel country=ukraine periodic-calibration=enabled periodic-calibration-interval=10 tdma-period-size=1 nv2-cell-radius=10 hw-retries=15 hw-protection-mode=rts-cts ht-guard-interval=long tx-power-mode=card-rates tx-power=12 wds-mode=dynamic wds-default-bridge=bridge1 nv2-security=enabled nv2-preshared-key=<secret_password>
ip route add dst-address=0.0.0.0/0 gateway=192.168.203.1
ip firewall nat set 0 disabled=no out-interface=ether1-local
ip address add comment=WAN address=192.168.203.30/24 network=192.168.203.0 interface=ether1-local
ip address set 0 comment=LAN address=192.168.88.1/24 network=192.168.88.0 interface=bridge1
queue type set ethernet-default pfifo-limit=500
queue type set wireless-default kind=pfifo pfifo-limit=500
//Replacing relative path to absolute, coz wkhtmltopdf do not work with relative path
$input = preg_replace('!(?<=src\=\")(.+)(?=\"(\s|\/\>))!', USER_ROOT.'$1', $input);
$input = preg_replace('#url\((?!\s*[\'"]?//)\s*([\'"])?#', 'url($1'.USER_ROOT, $input);