Azmawee`s 127.0.0.1 log

"Mauiwagen. Das Server."

Maxis Home Fiber internet (or TM Unifi) with FreeBSD server

Setting up the internet for Maxis Home Fiber (or TM Unifi) in FreeBSD are pretty easy and straight forward. The important thing you need to know is, their vlan ID/tag for data, Maxis Home Fiber using vlan id 621 (for data) and TM Unifi using vlan id 500.

1. Open your /etc/rc.conf and put this:

cloned_interfaces=”vlan0″
ifconfig_vlan0=”inet 10.1.1.2 netmask 255.255.255.0 vlan 621 vlandev em0″

The inet IP can be anything, and my em0 network interface is connected to the fiber optic modem, I’m using 621 vlan id for Maxis Home Fiber, for Unifi change it to 500.

2. Restart your server, if you don’t want to restart, then google for manual command to setup the vlan on fly.

3. Make sure the vlan0 and em0 status are active:

vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1492
        options=3<RXCSUM,TXCSUM>
        ether 2c:27:d7:14:13:1e
        inet 10.1.1.2 netmask 0xffffff00 broadcast 10.1.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        vlan: 621 parent interface: em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1492
        options=1db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,TSO4>
        ether 2c:27:d7:14:13:1e
        inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

4. Then proceed to edit your ppp.conf or mpd.conf:

Add this for ppp.conf :
set device PPPoE:vlan0
set authname user@home.maxis.com.my
set authkey password

Add this for mpd.conf :
set auth authname “user@home.maxis.com.my”
set auth password “password”
set pppoe iface vlan0

5. You are ready to go, just dial pppoe like usual.

6. IMPORTANT NOTE for Maxis Home Fiber user, you will get a LAN ip of 10.x.x.x for you WAN interface, if you hosting a server like web, email and others, you will need a public IP for those, so you need to call Maxis customer service support to request a public IP for you connection, after you get the public ip activated from Maxis, your username will changed from user@home.maxis.com.my to user@public.maxis.com.my, make sure you change it in your config files.

7. Enjoy fiber optic broadband internet with FreeBSD server. :D

– MaUi^

, , , , , , , , , , , , , , , , , ,

Leave a Reply

35 Comments on "Maxis Home Fiber internet (or TM Unifi) with FreeBSD server"

Notify of
avatar

Sort by:   newest | oldest | most voted
Darryl Yeoh
Guest
4 years 1 month ago

My office is using Maxis fiber BB as well. Maxis provide just a single modem/wifi router/dialer. What are the common settings to turn their modem router into a bridged modem ?

Secondly, when you apply for a public IP from Maxis, see what is the netmask they provide. I believe you get usable 2 IP addresses base on the netmask. Unifi’s netmask defaults to 255.255.255.255 meaning single IP address only. The Maxis one is quite similar to StreamyX enterprise package where you get 2 usable IP addresses if using your method. Can you confirm this ? Thanks.

   0 likes

MaUi
Guest
4 years 1 month ago
TM give one fiber optic modem and Maxis give one wifi/voip router which I didn’t use as I don’t use the phone (voip phone) they provided, so I just used TM modem which was the fiber optic cable connected to and through the modem LAN port number 2 cable connected to the NIC in my server, then server can dial pppoe like usual. SO yeah they give 2 things for my home, fiber optic modem from TM and wifi/voip router from maxis (thomson brand). Public IP from maxis have a /32 netmask, so same as Unifi, this is my ng0… Read more »
Darryl Yeoh
Guest
4 years 1 month ago

IC, your modem is TM Fiberhomme right ? It has 4 LAN ports, LAN 1 is normally configured for Unifi, so you use LAN2.

The fiber optic cable is the one provided by Maxis right ?

How did you know which LAN port to use ? You ran some sniffer program on all LAN ports to figure out which port is broadcasting the vlan id ?

-Darryl

   0 likes

MaUi
Guest
4 years 1 month ago

Sniffer? no, I asked them and they provide me the technical details, voip run on 821 vlan, and another vlan id number 822 don’t know for what, maybe for the iptv. The guy from maxis have access to the fiber optic modem and show me everything from telnet command prompt to the TM modem.

Fiber optic cable are from TM, basically every hardware are from TM except the wifi/voip router. Maxis 100% using TM infra, only different on their gateway/routing server.

   1 likes

MaUi
Guest
4 years 1 month ago

Maybe after this can apply Unifi and do load balance fiber optic broadband? hehehe…

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Ah okay. That makes sense :>

Now if Jaring were to provide fiber BB service, the trio setup will be complete :>

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Yeah. Can take a look at setfib(1) command to configure multiple default route on FreeBSD or go with PfSense for multi-wan setup :>

   1 likes

MaUi
Guest
4 years 1 month ago

I never try setfib(1) before, for multi-wan setup I used mpd5 or normal ppp ( by dialing pppoe 2 times and created tun0 and tun1), and used PF rules to load balance the load over 2 wan interface, have been done this over 2 4mbps streamyx line, working good so far.

   0 likes

MaUi
Guest
4 years 1 month ago

I only have 1 minor problem with this Maxis home fiber, regarding their public IP, they not blocking port 25 on their network, which is good thing that we don’t have to use any relay host for sending emails (smtp server), and maybe because of this, most of their public IP were listed under Spamhaus blocklist, so every time I get a new public IP, I need to request manual removal from Spamhaus blocklist.

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

IC. Thanks for sharing :>

-Darryl

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Btw, is Maxis IPTV service out ? Are you using it ?

   0 likes

MaUi
Guest
4 years 1 month ago

Maxis IPTV rasanye belum out.

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Maui, if you don’t mind, could you test TP-Link’s TL-WR1043ND v1 ver. 1.8 ‘N’ wifi router with your Maxis FTTH ? This router is Unifi-ready with stock firmware. However to test it with Maxis you will need to flash it with OpenWRT. I am using this model but with Unifi.

If your ok with this I’ll try to get a test unit for you.

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Actually I can flash it for you to OpenWRT, preset everything base on Unifi’s setup and pass you the unit if your ok with it.

Then just reconfigure the correct vlan id and change the pppoe user/pass.

   0 likes

MaUi
Guest
4 years 1 month ago

I’m ok with this, but what and how long to test it? cause this website are hosted in my home server that using maxis.

   0 likes

xjian
Guest
xjian
4 years 1 month ago

Dear MaUi,

Can you please share with me how to configure the TM BTU to connect to Maxis broadband without the Thomson device? because currently my Thomson device is not working, need a temporary workaround to connect to Maxis broadband.

-xjian

   0 likes

Darryl Yeoh
Guest
4 years 1 month ago

Hi xjian,

Since you were already using the Thompson router, there’s nothing you need to do with the TM BTU. Instead, you need to setup VLANS on your computer and dial from there or setup VLANS on a spare router running either DD-WRT or OpenWRT. As Maui has explained at the beginning, the VLAN ID for Maxis is 621.

-Darryl

   0 likes

MaUi
Guest
4 years 1 month ago

Hi,

I’m not sure how to configure the TM BTU as I don’t have access or password to login to it, it’s all been done by the Maxis guy in the first place, but I believe it just a modem, so need another device to do pppoe over vlan, so I just skip the thomson and connect directly from TM BTU to my home server.

   0 likes

xjian
Guest
xjian
4 years 1 month ago

Dear MaUi,

Thanks for your explaination.
I am trying to setup my freebsd to connect to maxis fiber following your guide.
Can you show me how to configure ppp.conf? Possible to share me the file? Also how to dial pppoe in freebsd? Please enlight me as i’m noob in freebsd

Thanks!
xjian

   0 likes

MaUi
Guest
4 years 1 month ago
The setup are the same like I’m writing in this page, you need to change or add the information from the point no. 4 to your /etc/ppp/ppp.conf file. The full sample of my ppp.conf is here: http://azmawee.com/freebsd/conf/ppp.adsl.en.conf To dial the connection just run command ppp -ddial label_name in command prompt, or set it to run automatically in /etc/rc.conf. Please see the freebsd handbook for more details here : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html To disconnect the connection just kill the ppp process using kill or killall command. You can also use the rc script to dial and disconnect the connection, sh /etc/rc.d/ppp start or… Read more »
unifi
Guest
4 years 18 days ago

Pretty element of content. I simply stumbled upon your web site and in accession capital to claim that I get actually loved account your blog posts. Any way I will be subscribing in your feeds and even I achievement you access consistently fast.

   0 likes

Izham
Guest
Izham
3 years 10 months ago

Hi Azmawee,

I was just wondering is it possible to configure this freeBSD server to also have a LAN interface with vlan 600, which to be used for hyppTV. I was hoping that I can build a machine that can serve

1. Unifi dial-up router
2. Wifi access router
3. Lan router
4. LAN port for HyppTV
5. NAS
6. print server

I believe if we’re able to do this, we can save a lot of space and electricity due to this capability. what do u think?

-Izham-

   0 likes

MaUi
Guest
3 years 10 months ago
Hi Izham, Yeah, it is very possible to do that, and I think we will need an extra NIC for the HyppTV port, I’m not sure as I do not have any experience on this (HyppTV), but the way I see it, it is possible. Anyway my server already run as no. 1, 3, and 5. and it could also run as print server. I’m not sure about the Wifi access router, do you mean connecting a wifi pci/pci-e card or USB wifi adapter to the server and the server became a Wifi router? yeah that also can be done… Read more »
azahar
Guest
azahar
3 years 5 months ago

how to use common prompt for maxis or unifi btu test?

   0 likes

azahar
Guest
azahar
3 years 5 months ago

hi abg maui ,common prompt blh guna untuk maxis btu test tk?

   0 likes

Darryl
Guest
Darryl
3 years 5 months ago

For Wifi AP, make sure to get a PCI/PCIe card that uses the ath(4) driver.

https://wiki.freebsd.org/dev/ath_hal%284%29/HardwareSupport

TP-Link seems to be a good choice.

   1 likes

MaUi
Guest
3 years 4 months ago

BTU test rasanya kene login dalam unifi punya modem, takde access yg tu.

   0 likes

kit
Guest
kit
3 years 1 month ago

hi,

do you know how many concurrent logins can you have with pppoe? i’m thinking of setting up 2 servers, each with its own pppoe dialer but dialing the same account.

thanks
kit

   0 likes

Darryl Yeoh
Guest
Darryl Yeoh
3 years 1 month ago

Only 1 session is allowed.

   0 likes

Euan Thoms
Guest
2 years 11 months ago

Don’t need to restart, this is UNIX.
To redo network interfaces:
#service netif restart

and you may need to redo routing:
#service routing restart

   1 likes

Darryl
Guest
Darryl
2 years 8 months ago

Btw, TM Unifi/StreamyX is now IPv6 ready..actually since Sept 27th. I am using at home. Native IPv6 finally :>

   1 likes

sanyog
Guest
sanyog
2 years 1 month ago

hi,

typical issue , i have maxis fibre, 10 mbps , my brother has unifi, and hypptv subscription which he does’nt uses ,
so i tried to connect hypptv STB to thomson router nothing happens, connection status on STB first 2 lights green , no connection to iptv server
any configuration needed, or hyptv only works on unifi or stremyx

my setup
tm modem zte zxdsl 931d11, router – TG784N,

help friends

   0 likes

karthik
Guest
karthik
1 year 27 days ago

Hi everyone, i will be getting maxis fibre internet service soon in my office. Currently using Unifi and now adding maxis fibre internet as a backup internet.

The technician told me, will connect the maxis router to tm modem. If let say tm modem goes down, my maxis connection will be down also. No other way for the maxis router to set up?

Need your help and suggestion on this guys.. thanks

   0 likes

MATHAVAN
Guest
MATHAVAN
7 months 12 days ago

HI
I AM USING MAXIS FIBRE INTERNET
I WANT TO USE FIBRE INTERNET IN THE ETHERNET PORT
PLEASE GIVE ME A IDEA
THANK YOU

   0 likes

wpDiscuz