PPPOE + DHCP IN ONE MIKROTIK ROUTER ON SAME INTERFACE

Configration Mikrotik Router as PPPOE + DHCP ON Same Interface


Plz use the following script to config




/interface ethernet
set 0 name=lan
set 1 name=wan
/ip hotspot profile
add dns-name=login.link.tech hotspot-address=192.168.1.1 name=hsprof1
/ip hotspot user profile
set [ find default=yes ] idle-timeout=none keepalive-timeout=2m
/ip pool
add name=hs-pool-1 ranges=192.168.1.2-192.168.1.254
add name=ppp ranges=10.0.0.1-10.0.0.100
/ip dhcp-server
add address-pool=hs-pool-1 disabled=no interface=lan lease-time=1h name=dhcp1
/ip hotspot
add address-pool=hs-pool-1 addresses-per-mac=1 disabled=no interface=lan \
    name=hotspot1 profile=hsprof1
/ppp profile
set 0 local-address=hs-pool-1 remote-address=ppp
/tool user-manager customer
add backup-allowed=yes disabled=no login=admin password="" \
    paypal-accept-pending=no paypal-allowed=no paypal-secure-response=no \
    permissions=owner signup-allowed=no time-zone=-00:00
/interface pppoe-server server
add disabled=no interface=lan service-name=service1
/ip address
add address=192.168.1.1/24 interface=lan
add address=192.168.3.5/24 interface=wan
/ip dhcp-server network
add address=192.168.1.0/24 comment="hotspot network" gateway=192.168.1.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/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 to-addresses=0.0.0.0
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=192.168.1.0/24
add action=masquerade chain=srcnat src-address=10.0.0.0/24
/ip hotspot user
add name=hotspot
/ip route
add distance=1 gateway=192.168.3.1
/ppp secret
add name=ppp



Comments

  1. 붊문지노사이트 - kiraill-kondrashin.com
    Situs sistem 카지노 사이트 Deposit via Transfer Bank, E-Wallet, or Credit Card, with MasterCard kirill-kondrashin or PayPal. Min. deposit: 0.10. Re-transfer is possible only

    ReplyDelete

Post a Comment

Popular posts from this blog

Mikrotik 4 WAN Load Balance