Ricky in Melbourne - Enjoy Learning

Better Managing Multiple Windows WiFi Network Profiles in Windows 10

One of the features I do love and I do hate as well is the wireless profile sync feature Windows 10 provided

image

As long as you have a Microsoft ID signed in in your Windows 10, your Wi-Fi profiles will be synced across all your devices

image

I agree it is a handy feature, but sometimes it’s annoying as well.

For instance, I’m in a scenario where I want one specific device connect to a specific WIFI network.

Let me explain that further, I have a SSID at home called “Ricky-Test-5G” which I want my laptop always connected, and I have another SSID called “Ricky-Test” which I want all of my other devices connected to.

The problem I have is both WLAN settings have been saved synced across all my Windows 10 devices, my device will pick up whatever profile first available, or will pick up whatever signal is better, which is out of my intension.

To fix this annoying issue, there are two resolutions:

1. Stop WiFi profile syncing

Only let the device know the right SSID it need to connect

To do this, simply switch “Password” sync settings

Windows 10->Start->Settings->Accounts->Sync your settings

image

The disadvantage for this solution is your browser password will stop sync as well. and sometimes you do want WiFi profile to be synced, just need to be some sort of prioritizing.

 

2. Prioritizing Wi-Fi profiles

Prioritizing Wi-Fi profiles is not a new concept and Windows did support this since Windows 7. and more importantly, Windows 10 won’t sync the network profiles priority, so we can have different priority on different device.

image

More details can be found here

However, Windows 10 removed the GUI interface of change the connections priority.

So we have to use the command line to do the trick

The key command here is “netsh”

image

As you can see here, just use below cmd command to show all of your current wireless profiles information

netsh wlan show profile

The interface here is “Wi-Fi”, and profiles orders are listed as well.

If you want to change the profiles priority, just use below cmd command

netsh wlan set profileorder name="Ricky-Test" interface="Wi-Fi" priority=1

Please replace my profile name “Ricky-Test” and interface name “Wi-Fi” to your actual name.

Now Windows 10 will connect to the Wi-Fi network based on the order if multiple wireless networks are available at the same time.

 

You can always find more about “netsh” command here

Hopefully Microsoft will bring the network connections GUI interface back again, or let user to change the network profiles priority from the GUI, not the command line.

By rickygao on August 11, 2015 | Tech, Windows Client | A comment?

School Ranking

I’ve been doing some homework for gathering the Melbourne school ranking data from a list of resources and group them together.

Below are the resources where I got the data:

The ranking results are based on 2014 Victoria Australia.

So what I did was just group all the information into one excel for better filtering purpose. Enjoy!

Below are the screenshot

image

image

 

If you need my homework, feel free to download from here

 

By rickygao on August 9, 2015 | Daily Life | A comment?

How to upload SSL certificate to Asus router

When it comes to home network security, people always saying I don’t need to worry about that since it’s my home network, not a corporate network. However, your home network is still connecting to the internet which means exposed to the attackers.

One of a good example is some people remote back in home’s network, like your router, NAS or even FTP etc. If you only using HTTP, anyone who just had a simple traffic capture can see all of your whole paint text traffic, included your password.

In today’s world, not only enterprise need a better security, home network as well. and encrypt your traffic is not that hard, just by enabling HTTPS.

So last time I had my NAS remote HTTPS enabled, today I will use the same free public SSL certificate to upload to my Asus router.

No matter what firmware you are using, the upload SSL process should be the same since the core is a linux system

OK, let’s get started.

 

1. Prepare your public SSL certificate

The certificate format has to be a PEM certificate, which may has the extension by .pem, .crt, .cer, .key

If you would like to know more about differernt certificate format and wants to convert between them, you can found here

Here’s what my certificate looks like

clip_image002clip_image004

 

2. Enable SSH on Asus router

Navigate to Administration->System, just enable SSH and apply

Note: I do not recommend enable SSH for WAN, although SSH is a secure protocol, but less ports (doors) to your home is always better

clip_image006

 

3. Enable HTTPS login for router

Navigate to Administration->System

clip_image008

 

4. Login to SSH

To login to SSH, a free tool called “PuTTY” is your friend

Just open PuTTY and type in your router’s IP and port

clip_image010

 

5. Follow the steps below or here to upload your certificate

—————–Verify that https_crt_save is off—————————-

ricky@Ricky-AC87U:/tmp/home/root# nvram get https_crt_save
0

——————Enable https_crt_save and verify that it was set correctly——————

ricky@Ricky-AC87U:/tmp/home/root# nvram set https_crt_save=1

—————–Verify that https_crt_save is on—————————-

ricky@Ricky-AC87U:/tmp/home/root# nvram get https_crt_save
1

—————–upload certificate key—————————-

ricky@Ricky-AC87U:/tmp/home/root# cat >/etc/key.pem

—————-Open your key file in Notepad and paste here, do NOT use “Word Wrap”—————–

clip_image012

——————–Hit Ctrl+D to save and exit cat command———————————-

—————–upload certificate—————————-

ricky@Ricky-AC87U:/tmp/home/root# cat >/etc/cert.pem

———————-Open your cert file in Notepad and paste here, do NOT use “Word Wrap”—————————-

———————–Hit Ctrl+D to save and exit cat command———————–

——————————Verify https_crt_file is empty—————————

————————–You should see empty here—————————-

ricky@Ricky-AC87U:/tmp/home/root# nvram get https_crt_file

ricky@Ricky-AC87U:/tmp/home/root#

———————Restart httpd———————–

ricky@Ricky-AC87U:/tmp/home/root# service restart_httpd

——————————Verify https_crt_file again—————————

ricky@Ricky-AC87U:/tmp/home/root# nvram get https_crt_file

================You will see your new certificate file like below——————–

clip_image014

 

—————————Reboot———————-

ricky@Ricky-AC87U:/tmp/home/root# reboot

 

6. Verification

After the reboot, let’s test the result

clip_image016

That’s my own SSL certificate, no warning anymore

 

By rickygao on March 1, 2015 | Network, Tech | 10 comments

AD
ADFS
ADRMS
Android
Azure
Certification
Citrix
Cluster