Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # oct/17/2016 11:43:53 by RouterOS 6.36.2
- # software id = G7AH-T8X9
- #
- /interface bridge
- add name=bridge1
- /interface pppoe-client
- add add-default-route=yes disabled=no interface=ether1 name=ParsOnline \
- password=11048834 user=2186037306
- /ip hotspot profile
- add dns-name=besna-service.com hotspot-address=192.168.203.2 name=hsprof1
- /ip hotspot user profile
- set [ find default=yes ] mac-cookie-timeout=5d shared-users=unlimited
- /ip pool
- add name=hs-pool-5 ranges=192.168.203.1,192.168.203.3-192.168.203.254
- add name=pool1 ranges=192.168.100.1,192.168.100.3-192.168.100.254
- /ip dhcp-server
- add address-pool=hs-pool-5 disabled=no interface=ether5 lease-time=1h name=\
- dhcp1
- /ip hotspot
- add address-pool=hs-pool-5 disabled=no interface=ether5 name=hotspot1 profile=\
- hsprof1
- /interface bridge port
- add bridge=bridge1 interface=ether3
- add bridge=bridge1 interface=ether2
- add bridge=bridge1 interface=ether4
- /interface bridge settings
- set use-ip-firewall-for-pppoe=yes use-ip-firewall-for-vlan=yes
- /ip address
- add address=192.168.1.100/24 interface=bridge1 network=192.168.1.0
- add address=192.168.203.2/24 interface=ether5 network=192.168.203.0
- add address=10.198.8.122/24 interface=ether2 network=10.198.8.0
- /ip dhcp-server network
- add address=192.168.203.0/24 comment="hotspot network" gateway=192.168.203.2
- /ip dns
- set servers=4.2.2.4,8.8.8.8
- /ip firewall filter
- add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
- disabled=yes
- add action=accept chain=forward disabled=yes dst-address=192.168.1.101 \
- src-address=192.168.203.0/24
- add action=drop chain=forward disabled=yes dst-address=192.168.1.0/24 \
- src-address=192.168.203.0/24
- /ip firewall nat
- add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
- disabled=yes
- add action=masquerade chain=srcnat comment="masquerade hotspot network" \
- src-address=192.168.203.0/24
- add action=masquerade chain=srcnat src-address=192.168.1.0/24
- add action=accept chain=srcnat src-address=10.198.8.0/30
- add action=masquerade chain=srcnat src-address=10.105.40.34
- /ip hotspot user
- add name=admin password=sharax22180
- add address=192.168.203.64 mac-address=00:23:24:00:FF:20 name=server password=\
- server
- add name=9212 password=2612
- /ip route
- add distance=1 gateway=10.198.8.121
- /system clock
- set time-zone-name=Asia/Tehran
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement