How to bridge OpenVPN client to the server LAN network

Posted in Networking, OpenVPN

Referring to the picture above might explain the bridging concept I want to create to my network. I’m actually setting up Xen VM, and one of the server I disconnect from public access through internet. Well, if you ask why the VM  can be installed with program like databases which don’t require public access on it.

Continue reading

PHP: Find out who are not following you back programmatically for Instagram

Posted in PHP

I think it’s quite hard to find out if someone you are following but he or she aren’t, right? Or perhaps at least I have this problem. Instagram is not like Facebook which require two way relationships whenever you friend with someone. Unlike Twitter, Instagram does not supply information if the person is following you back or you are not following your followers back.

The screenshot below was the output of the code I tried for my Insta. If you don’t want to jump to the coding part you might try the final product of the code  here: http://sandbox.mahadirlab.com/instagram/ .

Continue reading

PHP: OpenVPN connected user lists

Posted in PHP

I had to list out users from about 8 OpenVPN servers for detecting any duplicate users which try to connect to 2 or more VPNs by using same username.

My first attempt was using native c to code the program, a web daemon that can read OpenVPN status file and format the output in JSON format to web browser. I almost took a week to completely finish the code. But until now,  the program still buggy, sigh. it sometimes crashed after several requests from client. You may find the code here https://github.com/mahadirz/opnvpnstatus .

Continue reading