Archive for the ‘Tutorial’ Category

Hi, it has been a while since my last post, but today I’ve gained new knowledge that I wanted to store into this archive of mine. It might be useful to some other people, but it certainly is useful to me. Please enjoy the tutorial, share if you like it and leave a comment if you feel I am wrong (I’ll correct it if its true 😀 )

 Installing the FTP Package

1. Update your repository

yum check-update

2. Install the package

yum -y install vsftpd

3. After installation is done, make a copy of “vsftpd.conf” file

cp /etc/vsftpd/vsftd.conf /etc/vsftpd/vsftpd.conf.bak

4. Edit the configuration file with nano text editor

nano /etc/vsftpd/vsftpd.conf

5. Find this line “anonymous_enable=YES” by pressing CTRL+W and change the value to NO to disable anonymous FTP access.

6. Using the same method as the above find “chroot_local_user=YES” and uncomment it.

7. Add the following to the end of the file


8. Restart the VSFTPD service and make it start automatically after reboot

systemctl restart vsftpd.service
systemctl enable vsftpd.service

9. Add the FTP service in the firewall-cmd this is to open the FTP port

firewall-cmd –permanent –add-service=ftp
Firewall-cmd --reload

10. Setup SELinux to allow ftp access to the users home directories.

setsebool -P ftp_home_dir on
setsebool -P allow_ftpd_full_access 1

Create a user and assign the home directory

1. For this tutorial I want to create a user without a home directory therefore I use –M instead of –m.

useradd -M mike –s /sbin/nologin
passwd mike

2. Next is to set the home directory for “mike” by creating a new directory

mkdir /var/www/mike
chmod 755 /var/www/mike

3. Once that is complete point the directory to the user “mike”

chown -R mike /var/www/mike

First thing that you guys need to remember is that this tutorial might be a little old since I’ve already left RMIT. Just use this as a reference as it might be a little different from the current system.

    1. Download the latest phpmyadmin from
    2. Extract the content into phpmyadmin folder.
    3. Create a “config” folder inside the phpmyadmin directory.
    4. Upload the phpmyadmin folder to .HTMLinfo on yallara.
    5. Open up your browser and open your yallara link which might look similar to this<insert your id>/phpmyadmin/setup
    6. Once you are at the page please pay attention to the following tabs/boxes
    7. Image
    8. Create a “New Server”
      1. and you key in the following
        1. host :
        2. port : <the port number that is given when you install your MySQL>
        3. extension : mysqli
        4. authentication type : cookie
        5. user : root <it can be other user that you have created>
        6. password : <your user password>
      2. After all is done and the screen on number 7 reappear, click Save.
      3. Go to your filezilla and login to yallara
      4. Go to your .HTMLinfo folder
      5. Go to your phpmyadmin folder
      6. Go to the config folder
      7. Cut the file and paste it to your phpmyadmin folder (take it out of the config folder)
      8. DONE finish now you can login to your phpmyadmin through your respective URL

Security in Computing and IT

Posted: October 22, 2012 in Exam Papers

Its end the of the semester and exam is around the corner next week to be exact here is some sample Web Server and Web Technology paper that I’ve acquired from a good friend of mine back in Malaysia. If any of you need the paper feel free to view it below.

Window 7 WPA2 Authentication Step-by-Step Guide

  1. Mouse over to Network Connection Icon on the bottom right of your desktop screen and
    Click Open network and sharing center.
  2. Click “Manage wireless networks”
  3. Click “Add” then “Manually create a network profile”
  4. Make sure your settings are as below.
    1) Verify that the Network name (SSID) is set to i-Xcess
    2) Network Authentication is set to WPA2-Enterprise
    3) Data Encryption is set to AES.
    4) Check on “Start this connection automatically”
    5) Uncheck on “Connect even if the network is not broadcasting”
    6) Click on “Next” to bring you to next configuration page
  5. Click on “Change connection settings” to proceed with next configuration step
  6. Select the Security tab. Make your settings are as below.
    1) Security type is set to WPA2-Enterprise
    2) Encryption type is set to AES
    3) Verify that authentication method is set to Microsoft: Protected EAP (PEAP).
    4) Check “Remember my credentials for this connection each time I’m logged on
    5) Click on Settings
  7. – Make sure to uncheck Validate server certificate.
    – Verify that the Select Authentication Method drop-down box is set to Secured password (EAP-MSCHAP v2).
    – Check “Enable Fast Reconnect”
    –  Uncheck “Enforce Network Access Protection”
    – Uncheck “Disconnect if server does not present cryptobinding TLV”
    – Uncheck “enable Identity Privacy”
  8. Click the “Configure” button. Uncheck the check box labeled “Automatically use my
    Windows Logon name and password (and domain if any).”

    Click “Ok” or “Close”.

  9. Click on “Advance settings” 
  10. Under 802.1x settings tab, Check “Specify authentication mode” and select “User authentication”, Uncheck “Enable single sign on for this network”. Click “Ok” or “Close” buttons on all the windows.
  11. Try connect to “i-Xcess”. 
  12. Connect the network called “i-Xcess” and when prompted, provide your standard
For this tutorial I’ll be using :-
  • D-Link dir-615/620
  • DD-WRT Firmware: DD-WRT v24-sp2 (11/21/10) std
D-Link dir620
Steps to flash the router
  1. Set a static IP for your PC in the 192.168.0.x range with a subnet mask of ( for example).
  2. Connect a network cable from your computer’s network interface card to the WAN PORT (not LAN port, WAN port) of your DIR-615 G1.
  3. Turn off your DIR-615. Hold down a pin to the RESET button of the router (at the back next to its power socket) and turn on the router while holding this RESET button down.
  4. If you did this properly, the power button on the router should now be orange and blinking continuously. The router is now in Emergency Room mode.
  5. Open up Internet Explorer and head over to . Please use Internet Explorer as Firefox can cause some weird issues with this particular web interface.
  6. You should be able to see the Emergency Room interface.
  1. Hit the Browse button and select the Brainslayer DIR-615 rev D webflash firmware (dlink-dir615d-factory-webflash.bin) that you downloaded earlier. Upload it to the router.
  2. Upon a successful upload, you should be able to see a success confirmation message.
  1. Let the router reboot by itself.
  2. Once power light turns green.. unplug the network cable from the WAN port and plug into any LAN port on the DIR-615 router (I recommend ports 1-3).
  3. The routers IP should now be, so change your PC’s LAN IP from to something in the range (such as with a subnet mask of
  4. Now visit and configure your router’s security (password) settings.
Steps for Wireless Bridge Configuration
By following this steps, you will turn your normal wireless router to a wireless bridge which allow you to extends your LAN without the need of cabling. You might ask why do I want to create a wireless bridge instead of a repeater? the answer is that I’ve used repeater device before and the result are not so great. The repeater will repeat any signal from our wireless router and re-transmit it to our machine, but it will repeat and transmit any signals including from a broken data packet. While wireless bridge will act as a receiver instead of a transmitter like our wireless network adapters with an option of splitting it into more LAN connection using the ports that are available on the bridge device, from there you can attach another wireless router to extends your wireless range or just plug using the LAN ports. So lets begin the tutorial then!
  1. Continuing from the above tutorial, visit and login to your router.
  2. Go to Setup > Basic Setup
  3. Under the “WAN Connection Type” disable the connection type, STP -> Disable
  4. Next is Router IP:
    • Set the Local IP address to 192.168.x.2 (depends on the of the wireless router that you want to bridge with).
    • Gateway to 192.168.x.1
    • Local DNS to 192.168.x.1
    • WAN Port : checked the Assign WANT Port to Switch (optional)
    • SAVE
  5. After that Go to Wireless > Basic Settings and the following settings
    • Wireless Mode : Repeater Bridge (its actually a wireless bridge instead of a repeater :P)
    • Wireless Network Mode : Mixed (make sure the source wireless router is also using Mixed mode)
    • Wireless Network Name (SSID) : [the source SSID from the source router]
    • Wireless Channel : Auto
    • Channel Width : 20MHz
    • Wireless SSID Broadcast : Enable
    • Network Configuration : Bridge
  6. Wait for the Router to reboot and then it is DONE! if you are confuse with the steps refer to the image below
Step 1-4
Step 5-6

Hi, before we get started on the tutorial on how to create a “Homemade FTP server” you will need to have the following requirement and if you need a printable version of this tutorial you can get it here :-

  1. A router modem that support DHCP
  2. Knowledge on router configuration
  3. Filezilla Server
  4. Filezilla Client
  5. no-ip account

Make sure you are using the latest FileZilla Server and Client. If you do not have the software required you can download it directly from Filezilla website.

If you have everything in order lets start with the first procedure :-

  1. Creating a domain name
    • what you need to do is go to to register for a free domain name.
    • after you have register your self >login > click on the Host/Redirects tab
    • click on the “Add Host” using the following options, feel free to create you own domain name
    • when you are done with the configuration click on the “Create Host” button
  2. Router configurations :-
    • I am using TP-Link TD-W8960N Modem router, if you are using a different router the configuration should be almost the same as what I am using.
    • First you need to assign your computer/server to a static LAN IP address
    • Then you need to create a “Virtual Server” to point the static LAN address to your server, the Start Port is 21 and the End Port is 21. Use the “TCP/UDP” protocol
      • Click “Apply/Save” after the configuration is done.
    • After creating a “Virtual Server” you need to configure the “Dynamic DNS”. On any router the “Dynamic DNS” settings should appear under the “Advance Setup”.
      • Select “No-IP” as your D-DNS provider
      • Enter your domain name in the Hostname field
      • Make sure you insert the username and password of your “No-IP” account
  3. FileZilla Server Configuration
    • We are almost at the end of our tutorial, just a little bit more you will have your own “FTP server”
    • Click “Edit” > “Settings”
    • When the “FileZilla Server Options” window comes out > select “Passive Mode Settings” > tick the “Retrieve external IP address from:”> fill in your “No-IP host” Domain name e.g:
      • Click “OK” when you are done.
    • Before you can use the server you need to create a “Username” in order for you to access the server, follow the instruction given bellow to create your username
      • Edit > Users
      • Under the “Page” column select “General”
      • Under the “Users” column click “Add” button
      • Enter the username that you desired and click “Ok”
    • When you are done with the “Users” settings, you need to setup the Shared folders
      • Under the “Page” column select “Shared folders”
      • Under the “Shared folders” column click “Add” to add the folder that you want to share
  4. Done! its finish now you have your own at home FTP server, using the filezilla client you can access your server from anywhere as long as you have an internet connection. If this tutorial is useful please donate USD1 for my study fund thanks!