Indice   FAQ  
Iscriviti  Login
Indice RouterOS RouterOS

Problema 2 server DHCP stessa board

Tutto su questo sistema operativo linux based - Configurazioni, dubbi, problematiche &....

Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 19:05

Ciao a tutti,
ho recentemente configurato la mia RB750r3 per utilizzare un servizio hotspot "terzo" (PurpleWifi). Tutto funziona, l'accesso tramite HS avviene regolarmente e la navigazione funziona. Praticamente ho dovuto assegnare il pool sulla porta alla quale è attaccato l'AP che fa da hotspot e registrarlo sul portale del servizio. Il problema ora è che l'altro server DHCP, quello che fa funzionare normalmente la mia rete, ha smesso del tutto di funzionare, non assegna più indirizzi, neanche riceve le richieste (il log è pulito). Come mai, cosa può essere successo?
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x

Re: Problema 2 server DHCP stessa board

Messaggioda radiation » gio 5 lug 2018, 19:12

Dipende dove sono attestati IP e DHCP della Lan. Devono essere sulla stessa interfaccia.
Quando vai in dhcp il tuo server è rosso?
Andrea
Avatar utente
radiation
Staff rosIT
Staff rosIT
 
Messaggi: 486
Iscritto il: mer 11 dic 2013, 20:00
Uso routerOS dalla Versione: v3.x
Certificazioni Mikrotik: MTCNA, MTCWE
Preferred Training Centre: Nimwave

Re: Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 19:55

No, sono entrambi neri.. Io praticamente ho tolto la ether5 dal bridge dove è assegnato il dhcp LAN, poi ci ho messo il dhcp hotspot. Questo funziona, quello LAN non più
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x

Re: Problema 2 server DHCP stessa board

Messaggioda radiation » gio 5 lug 2018, 20:05

È dove è attestato quello della Lan?
Andrea
Avatar utente
radiation
Staff rosIT
Staff rosIT
 
Messaggi: 486
Iscritto il: mer 11 dic 2013, 20:00
Uso routerOS dalla Versione: v3.x
Certificazioni Mikrotik: MTCNA, MTCWE
Preferred Training Centre: Nimwave

Re: Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 20:15

Sul bridge con le porte 2-3-4
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x

Re: Problema 2 server DHCP stessa board

Messaggioda radiation » gio 5 lug 2018, 20:18

Se anche l’ip e assegnato allo stesso bridge non c’è motivo per cui non vada.
Do per scontato che anche range, pool, GW siano corretti.

L’hot spot è un servizio esterno? Hai qualche regola di routing che può dare fastidio?
Andrea
Avatar utente
radiation
Staff rosIT
Staff rosIT
 
Messaggi: 486
Iscritto il: mer 11 dic 2013, 20:00
Uso routerOS dalla Versione: v3.x
Certificazioni Mikrotik: MTCNA, MTCWE
Preferred Training Centre: Nimwave

Re: Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 20:26

Il punto è che io non ho cambiato nessuna impostazione del vecchio server, ho solo tolto la porta dal bridge. Il resto l'ho fatto da "hotspot setup" come da istruzioni del sito (è un servizio esterno, si, si chiama PurpleWifi, ho scelto questo perché permette di utilizzare ap non compatibili con la Routerboard, ed in più è gratis). Nelle regole di routing è tutto reachable, però sono state create molte filter rules nel firewall, automaticamente. Non vorrei che siano queste ad impedire l'accesso all' altro bridge. Anche se non ci capisco molto (devo studiare molto di più, lo ammetto) l'impressione è proprio questa. Però non sono modificabili
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x

Re: Problema 2 server DHCP stessa board

Messaggioda radiation » gio 5 lug 2018, 20:29

Se hai usato l’hot spot interno dal wizard è facile che ti abbia modificato qualcosa.
Ma il pc non prende nessun indirizzo o ne prende uno sbagliato?
Al limite posta la conf
Andrea
Avatar utente
radiation
Staff rosIT
Staff rosIT
 
Messaggi: 486
Iscritto il: mer 11 dic 2013, 20:00
Uso routerOS dalla Versione: v3.x
Certificazioni Mikrotik: MTCNA, MTCWE
Preferred Training Centre: Nimwave

Re: Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 20:37

No, funziona solo con ip statico. Ti basta un /ip config export?
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x

Re: Problema 2 server DHCP stessa board

Messaggioda jerrino77 » gio 5 lug 2018, 23:31

Codice: Seleziona tutto
[admin@MikroTik] > /ip export hide-sensitive
# jul/05/2018 23:39:44 by RouterOS 6.42.2
# software id = Y733-BNGF
#
# model = RouterBOARD 750G r3
# serial number =
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add hotspot-address=10.1.0.1 html-directory=flash/hotspot login-by=http-pap \
    name=hsprof1 radius-interim-update=2m use-radius=yes
/ip pool
add name=dhcp ranges=192.168.10.100-192.168.10.250
add name=OpenVPN ranges=10.0.100.10-10.0.100.100
add name=vpn ranges=192.168.89.2-192.168.89.255
add name=hs-pool-5 ranges=10.1.0.2-10.1.0.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge1 name=server1
add address-pool=hs-pool-5 disabled=no insert-queue-before=\
    hs-<6C:3B:6B:7E:08:DF> interface=ether5 lease-time=1h name=dhcp1
/ip hotspot
add address-pool=hs-pool-5 disabled=no interface=ether5 name=6C:3B:6B:7E:08:DF \
    profile=hsprof1
/ip hotspot user profile
set [ find default=yes ] address-pool=hs-pool-5 idle-timeout=30m \
    session-timeout=1d
/ip address
add address=192.168.1.25/24 interface=ether1 network=192.168.1.0
add address=192.168.10.1/24 interface=bridge1 network=192.168.10.0
add address=10.1.0.1/24 comment="hotspot network" interface=ether5 network=\
    10.1.0.0
/ip dhcp-client
add dhcp-options=hostname,clientid interface=ether1
/ip dhcp-server network
add address=10.1.0.0/24 comment="hotspot network" gateway=10.1.0.1
add address=192.168.10.0/24 dns-server=192.168.10.1 gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes servers=\
    208.67.222.222,208.67.220.220,192.168.1.254
/ip firewall filter
add action=reject chain=hs-unauth log=yes protocol=tcp reject-with=tcp-reset
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=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\
    192.168.10.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
    src-address=10.1.0.0/24
/ip hotspot user
add name=admin
/ip hotspot walled-garden
add dst-host=purpleportal.net
add dst-host=*venuewifi*
add dst-host=*cloudfront*
add dst-host=*openweathermap*
add dst-host=*stripe*
add dst-host=*facebook*
add dst-host=*fbcdn*
add dst-host=*akamai*
add dst-host=*linkedin*
add dst-host=*licdn*
/ip route
add distance=1 gateway=192.168.1.254
Avatar utente
jerrino77
Mikrotik-User 7° Liv
Mikrotik-User 7° Liv
 
Messaggi: 139
Iscritto il: gio 26 mag 2016, 23:52
Uso routerOS dalla Versione: v5.x


Prossimo

Torna a RouterOS

Chi c’è in linea

Visitano il forum: Nessuno e 8 ospiti