Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

Home Networking Ditch ONU, use GPON SFP on Business Grade Router, 2.5G ONU for Unifi & Maxis, NO NEED VLAN

views
     
pacat
post Sep 22 2020, 04:00 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 22 2020, 12:24 AM)
Plugging Maxis ZTE 4G Dongle into PC is same like plugging into Mikrotik, only "nslookup" works
[attachmentid=10593029]
The reason resolve work because Mikrotik is a client behind the dongle network, thus the packet involved was only outgoing packet.
Forwarding on lte1 interface will be confusing cause duplicate route to internet. In your screenshot, active flag was on pppoe-out1 interface, so your connection will not go through lte1 interface.

Have you tried to disable the pppoe-out1 interface first then check whether internet works with lte?

If you want to test specific client to use on lte, you can try this
1. Disable add default route on dhcp client on lte1 interface
CODE
/ip dhcp-client set add-default-route=no [find interface=lte1]

2. Add route to with
2.a Dst addr = 0.0.0.0/0
2.b Gateway = lte1
2.c Routing mark = lte_route (any name to be used later)
CODE
/ip route add dst-address=0.0.0.0/0 gateway=lte1 routing-mark=lte_route


After fixing the route, next is prerouting decision what/when packet to go through this route in IP>Firewall>Mangle.
3. Then add new mangle rule with
3.a Chain = prerouting
3.b Action = mark routing
3.c New routing mark = lte_route (whatever routing mark set in 2.c)
3.d Src address = x.x.x.x (ip address)
CODE
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=lte in-interface=bridge src-address=192.168.88.x


Then the device with specified ip in mangle rule will be using the dongle internet, assuming you have added NAT masquerade rule for outgoing interface lte1, since you can open the dongle webUI.


pacat
post Sep 23 2020, 12:15 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 22 2020, 01:57 AM)
some digging:
[attachmentid=10593106]
in maxis router show some list mac address
I believe mac address seen by the dongle in the maxis router was at dhcp_USB_4G. Try put that mac address into lte interface in Mikrotik.
pacat
post Sep 23 2020, 09:36 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 23 2020, 02:36 AM)
I tried to change in "Interface" > LTE. it revert back to original MAC.

What if bridge > dummy interface > lte1.

the dummy interface is using maxis router mac address, some kind change mac address
*
Maybe. Try putting the mac address into that bridge and dhcp client interface point to that bridge.

I think lte interface can be added as port into the bridge. Just create a new bridge then add the lte interface as port. No need of dummy interface in between.

This post has been edited by pacat: Sep 23 2020, 09:41 AM
pacat
post Sep 23 2020, 05:31 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 23 2020, 04:28 PM)
I have tried this, and not working. bridge > lte1
You mean: bridge > bridgeLTE---lte1 ?
I create bridgeLTE and add a port, the lte1 interface are not exist sad.gif
*
QUOTE(miloaisdino @ Sep 23 2020, 04:49 PM)
Yup maybe can try set passthrough to bridgeLTE interface.
https://help.mikrotik.com/docs/display/ROS/...sthroughExample
pacat
post Sep 24 2020, 05:21 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 24 2020, 02:49 AM)
tried, lte1 passthrough to bridge adapter not work:
[attachmentid=10594902]

I guess, time to UART console for some iptables:
[attachmentid=10594903]
WebGUI login not work in UART console, I dont know what is the valid login
UART log here: https://gist.github.com/Anime4000/4dd729dc4...7eec36121184992
*
Have you put the mac address into bridgeLTE's mac address? Passthrough mac address is only a filter to pass a client's mac address to the dongle (in case the interface connected to multiple hosts).

Searching for your dongle vid and pid leads to this https://www.development-cycle.com/2017/04/2...e-mf823-inside/. Though not same as yours, is it able to telnet into? Password might not be same.
pacat
post Sep 24 2020, 11:25 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 24 2020, 08:55 PM)
I tried run nmap scan, none sad.gif
» Click to show Spoiler - click again to hide... «

*
USB dongle connected to PC or router?


QUOTE(Anime4000 @ Sep 24 2020, 10:14 PM)
it works half way, some can be read
[attachmentid=10596323]
*
Try with this https://github.com/sta-c0000/tpconf_bin_xml
pacat
post Sep 25 2020, 04:07 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 25 2020, 02:19 AM)
it is possible 4G Dongle reject traffic that not come from a hostname?
possible to replicate this in Mikrotik without change Mikrotik hostname, just unique hostname to USB 4G
*
Try these commands
CODE
/ip dhcp-client option add name=lte_hostname code=12 value="'Maxis_Archer_C5v'"
/ip dhcp-client set dhcp-options=lte_hostname,clientid [find interface=lte1]
/ip dhcp-client release [find interface=lte1]
/ip dhcp-client renew [find interface=lte1]

pacat
post Sep 25 2020, 04:32 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


https://gist.github.com/Anime4000/38db42c2e...-conf-xml-L2291
Take note remote syslog to their server was enabled.
pacat
post Sep 25 2020, 12:32 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


The dongle nat iptables might be created specifically for that hostname, or created upon successful assignment of an ip with that hostname. Still better than mac address since it can change.
pacat
post Sep 26 2020, 09:08 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 26 2020, 08:15 PM)
pacat miloaisdino

This should be enough for Dual WAN Fail Over?
[attachmentid=10599085]
*
Should be enough. Depend on how long you can tolerate downtime before pppoe-out1 interface timeout. Only then will the route via pppoe-out1 removed and route via lte1 become active.

But when pppoe-out1 up again, default route via pppoe-out1 will not active, like current lte1 default route. Only after lte1 reconnected will pppoe-out1 route become active again.

This post has been edited by pacat: Sep 26 2020, 09:53 PM
pacat
post Sep 27 2020, 11:39 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Sep 27 2020, 02:09 AM)
I change lte1 default route distance to 2,
once pppoe-out1 active, traffic redirect to pppoe-out1 gateway,
so far I test, this works for now
*
Yes keep it simple. Less time to troubleshoot in the future.
pacat
post Oct 1 2020, 11:28 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Oct 1 2020, 07:46 PM)
What I found that, ONT SFP that I have, might using smart/monitor traffic then automatically bridge VLAN, this is reason DHCP request take too long...

Kind sad, I might need buy thankyou ODI stick my self, since WebGUI have rich interface, allow configure VLAN without monitor packet/automatic VLAN. Then Maxis VoIP works.
*
Unless you can setup vlan 822 in your sfp, I do not know any workaround to make it faster. Is there any vlan config found in backup config file? Or any way to configure vlan using telnet?

QUOTE(Anime4000 @ Oct 1 2020, 05:15 AM)
ONT SFP I have is full bridge, no need set VLAN like thankyou and have internet.
After Mikrotik starts, there is delay, apparently SFP power on same time with LAN ports.

Since I have internet, I set VLAN bridge for VoIP as usual, but maxis router give up so quickly to get IP from DHCP, I tried DHCP client on Mikrotik, it quite slow to get an IP from VLAN 822 via SFP, any idea? miloaisdino pacat
[attachmentid=10604239]
*
To make maxis router to retry dhcp again, try adding script onto bridge822 interface dhcp client. This script will disable and enable ether2 (I think this is where your maxis router located) interface with 5 seconds delay
CODE
:if ($bound=1) do={
   /interface ethernet disable ether2;
   :delay 5s;
   /interface ethernet enable ether2;
}

Or use this command
CODE
/ip dhcp-client set \
script=":if (\$bound=1) do={\r\
\n    /interface ethernet disable ether2;\r\
\n    :delay 5s;\r\
\n    /interface ethernet enable ether2;\r\
\n}" \
[find interface=bridge822]

pacat
post Oct 3 2020, 11:31 AM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Oct 3 2020, 01:18 AM)
pacat it is possible to have 2 different NAT? I thinking let Mikrotik get VLAN 822 DHCP and NAT + DMZ to VoIP LAN port
*
Should be possible. Just add masquerade rule on outgoing interface of your vlan1.822. For DMZ just dst-nat the in-interface vlan1.822 to the ip gotten by voip interface in maxis router.
CODE
/ip firewall nat add chain=srcnat out-interface=vlan1.822 action=masquerade
/ip firewall nat add chain=dstnat in-interface=vlan1.822 action=dst-nat to-addresses=x.x.x.x

To ensure all traffic from vlan2.822 to go through vlan1.822, we need add mangle rules to mark the routing-mark to use the specified route
CODE
/ip route add dst-address=0.0.0.0/0 gateway=vlan1.822 routing-mark=maxis_voip
/ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=maxis_voip in-interface=vlan2.822 routing-mark=!maxis_voip

pacat
post Oct 3 2020, 04:17 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(miloaisdino @ Oct 3 2020, 12:58 PM)
just thought of this.. how about simply having some mikrotik routing rules for maxis voip gateway. maxis router can obtain ip address from mikrotik in the same subnet as every other device, then when vlan822 is finally up, mikrotik redirects voip traffic through vlan822, else voip is via regular pppoe internet (or 4g failover)

https://forum.mikrotik.com/viewtopic.php?t=157048
*
Also can. But maxis SIP use fqdn in their OutboundProxy (homegw01.maxis.com.my), so need to resolve to know the ip address. Resolve using dns from vlan822 dhcp to get ip to route to vlan822, resolve using public dns will get public ip that can be connected using regular internet.

QUOTE(Anime4000 @ Oct 3 2020, 01:51 PM)
pacat miloaisdino thankyou

Here I dump my ONT Stick telnet and config:
https://gist.github.com/Anime4000/522b021d0...34e95c42603ed2f
*
Any info on VLAN_MANU_MODE?
What happen when set VLAN_MANU_MODE to 1 (Tagging). Any difference in webUI?
Can extract /home/httpd/web from the stick?

This post has been edited by pacat: Oct 3 2020, 04:37 PM
pacat
post Oct 3 2020, 08:22 PM

New Member
*
Newbie
16 posts

Joined: Aug 2006
From: bendang, paya, selut, parit, etc.


QUOTE(Anime4000 @ Oct 3 2020, 04:57 PM)
I tried your command, Mikrotik and Maxis Router can ping each other.
Yet cannot register VoIP, something happen with FQDN you said earlier.
in vlan.asp page, only 1 tag can be set, thus Internet Only.
*
Try resolve homegw01.maxis.com.my with vlan822 dns server. Is it same as public one?
CODE
/ip route add dst-address=58.71.252.3 gateway=vlan1.822
:put [:resolve domain-name=homegw01.maxis.com.my server=58.71.252.3]

Mine
CODE
:put [:resolve domain-name=homegw01.maxis.com.my]            
202.75.146.26


 

Change to:
| Lo-Fi Version
0.0454sec    0.75    7 queries    GZIP Disabled
Time is now: 9th December 2025 - 04:28 AM