سلام
گاهی اوقات برای موقع لاگین خطای no valid profile found را میگیرم!
اگر رمز اشتباه بزنم خطای رمز را میده.
مشکل از چی میتونه باشه؟
کد:
# aug/30/2016 20:38:23 by RouterOS 6.36
#
/interface bridge
add name=bridge1
/ip hotspot profile
set [ find default=yes ] http-cookie-lifetime=1d radius-interim-update=10s \
use-radius=yes
add hotspot-address=192.168.1.2 http-cookie-lifetime=2h name=hsprof1 \
radius-interim-update=30s use-radius=yes
/ip pool
add name=dhcp_pool1 ranges=192.168.5.151-192.168.5.199
add name=pppoe ranges=192.168.5.201-192.168.5.222
add name=hs-pool-12 ranges=192.168.1.1,192.168.1.31-192.168.1.88
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge1 name=dhcp1
/ip hotspot
add address-pool=dhcp_pool1 disabled=no interface=bridge1 name=hotspot1 \
profile=hsprof1
/ppp profile
add dns-server=192.168.1.2,8.8.8.8 local-address=192.168.200.1 name=\
PPPOE-Server remote-address=pppoe
/tool user-manager customer
set admin access=\
own-routers,own-users,own-profiles,own-limits,config-payment-gw password=\
test signup-allowed=yes
/tool user-manager profile
add name=Group-1 name-for-users="" override-shared-users=off owner=admin \
price=0 starts-at=logon validity=4w3d
add name=Group-2 name-for-users="" override-shared-users=off owner=admin \
price=12000 starts-at=logon validity=4w2d
/tool user-manager profile limitation
add address-list="" download-limit=0B group-name="" ip-pool="" name=lim1 \
owner=admin transfer-limit=1073741824B upload-limit=0B uptime-limit=0s
/interface bridge port
add bridge=bridge1 disabled=yes interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
/interface pppoe-server server
add authentication=mschap1,mschap2 default-profile=PPPOE-Server disabled=no \
interface=bridge1 max-mru=1480 max-mtu=1480 mrru=1600 service-name=\
service1
/ip address
add address=192.168.1.2/24 interface=bridge1 network=192.168.1.0
add address=192.168.5.2/24 interface=bridge1 network=192.168.5.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid interface=ether1
/ip dhcp-server network
add address=192.168.1.0/24 comment="hotspot network" gateway=192.168.1.2
add address=192.168.5.0/24 dns-server=192.168.5.2,8.8.8.8 gateway=192.168.5.2
/ip dns
set servers=192.168.5.2,8.8.8.8
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=dst-nat chain=dstnat dst-port=3389 in-interface=all-ppp log=yes \
log-prefix=vpn protocol=tcp src-address=!192.168.0.0/16 to-addresses=\
192.168.5.5 to-ports=3389
add action=masquerade chain=srcnat disabled=yes dst-address=192.168.1.2 log=\
yes log-prefix="" src-address=192.168.5.0/24
add action=masquerade chain=srcnat disabled=yes log-prefix="" out-interface=\
bridge1
add action=masquerade chain=srcnat log-prefix="" out-interface=ADSL
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.1.0/24
/ip hotspot ip-binding
add mac-address=08:FC:88:3F:F2:F1 type=bypassed
add address=192.168.5.189 disabled=yes mac-address=BC:77:37:E0:B5:FF server=\
hotspot1 to-address=192.168.5.189 type=bypassed
/ip hotspot user
add name=admin password=test
/ip hotspot walled-garden
add comment="place hotspot rules here" disabled=yes
/ip hotspot walled-garden ip
add action=accept disabled=no dst-address=192.168.0.0/16
/ip route
add check-gateway=ping disabled=yes distance=1 gateway=ether1
add check-gateway=ping disabled=yes distance=2 gateway=192.168.1.1
add check-gateway=ping disabled=yes distance=2 gateway=192.168.5.254
add distance=1 dst-address=192.168.1.0/24 gateway=192.168.1.1 pref-src=\
192.168.1.2 scope=10
/ppp aaa
set interim-update=10s use-radius=yes
/radius
add address=127.0.0.1 secret=iran service=ppp,hotspot timeout=3s
/radius incoming
set accept=yes
/tool user-manager database
set db-path=user-manager
/tool user-manager profile profile-limitation
add from-time=0s limitation=lim1 profile=Group-1 till-time=23h59m59s \
weekdays=sunday,monday,tuesday,wednesday,thursday,friday,saturday
/tool user-manager router
add coa-port=3799 customer=admin disabled=no ip-address=127.0.0.1 log=\
auth-fail name=Local shared-secret=iran use-coa=yes
/tool user-manager user
add customer=admin disabled=no password=test shared-users=1 username=hpold \
wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add comment=pc5 customer=admin disabled=no first-name=pc5 location=pc5 \
password=user01 shared-users=1 username=user01 wireless-enc-algo=none \
wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=unpgzw shared-users=1 username=user02 \
wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=a123 shared-users=1 username=\
user03 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=test shared-users=1 username=hp \
wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=tvtznt shared-users=1 username=user05 \
wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=d62m5g shared-users=1 username=\
usercnyc5th wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=tgf9u6 shared-users=1 username=\
user3hhrw57 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=sgnqi2 shared-users=1 username=\
uservytpah3 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=rhd6du shared-users=1 username=\
userh9rb4qu wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
add customer=admin disabled=no password=s98ucw shared-users=1 username=\
usercdwsp32 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
موضوعات مشابه: