The Poor Man VPN

You may have an IT team in your company who believe company productivity will be boosted if company disallow access to social media , streaming or even the soundcloud. Although some recent studies show that productivity has nothing to do with such sites

Don’t get me wrong, but I hate to be restricted or not having access to what I want, of course I won’t visit illegal sites or hiding my gampling history! using the corporate network but also I need some level of freedom to perform well. I will manage my own time!

Anyways whatever your final goal, make sure you’re not breaking any corporate policies

So let’s start

First here’s the topology and the normal call flow for Enterprise Network

clip_image002[6]

What we will try to accomplish is manipulate the corporate gateway and establish an SSH tunnel back to our home network (where everything is accessible from there and free!) then we will redirect our browsing traffic to home network back and forth.

No just that, we will enhance the tunneling by connecting our home router to DDNS provider

From firewall perspective, we just established an innocent SSH connection to somewhere in the internet

clip_image004[6]

 

Tools Used

Home Network

1-Modem (Home Router) that support Port Forwarding (most routers nowdays do)

2-VMware to run squid proxy server and SSH over Centos Machine

3-DDNS account (www.noip.com is my favorite, However if your purchased an static IP from your ISP then this step is not necessary but remember this solution is for poor guys J )

Client in Corporate

4-MobaXterm (to establish SSH tunnel back to VMware)

5- Browser

Read More »

Enable LDAP server on Solaris 11

 

I tried to enable the LDAP server inside the solaris 11 T5-2 chassis using the below command

# svcadm enable ldap/server

and below message is printed in Server console

Apr 20 17:30:15 <hostname> svc.startd[11]: network/ldap/server:openldap_24 failed: transitioned to maintenance (see 'svcs -xv' for details)
SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major
EVENT-TIME: Mon Apr 20 17:30:15 EET 2015
PLATFORM: SPARC-T5-2, CSN: AK00247532, HOSTNAME: <hostname>
SOURCE: software-diagnosis, REV: 0.1
EVENT-ID: 92067780-6c30-6c73-ec28-a0fac2f0d16a
DESC: A service failed - a method is failing in a retryable manner but too often.
AUTO-RESPONSE: The service has been placed into the maintenance state.
IMPACT: svc:/network/ldap/server:openldap_24 is unavailable.
REC-ACTION: Run 'svcs -xv svc:/network/ldap/server:openldap_24' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted. Please refer to the associated reference document at http://support.oracle.com/msg/SMF-8000-YX for the latest service procedures and policies regarding this diagnosis.

Read More »

RedHat tips

 
حاجة بس صغنتتة كدة في ال
terminal
بتاع ال
red hat
وغالبا في اللينكس كله-بس مجربتهاش-لما تحب تعرف ايه ال
input
اللي انت مفروض تكتبه بعد اللي انت كتبته دوس
double tab
في سيسكو مثلا بنعمل ال
question mark
في اللينكس بنعمل تاب واحدة عشان نكمل ال
command
و
double tab
عشان نعمل
list
لكل الاوامر اللي ممكن تيجي بعد ال
command
ده

حد عنده
tips
تانية لاخوكوا المفحوت في ال
Redhat
ده؟
اي حاااجة ينوبكوا ثواب
😀

 

update 1: (From Ehab Abdelfattah)

عندى كتير خد ديه مثلا
man -k anything
لما تحب تعرف اى حاجه بتتعمل ازاى زى الكوبى مثلا تكتب
man -k copy
عايز تعرف الامر بيتكتب ازاى وايه الاوبشن بتاعته وبيعمل ايه بالظبط اكتب
man command
or
command –help