Hardware Requirement
Samsung Galaxy Tab 10.1 (I'm tested on rooted Official firmware : Android 3.2 HC.)
Software Requirement
1. OpenVPN Installer (from market)
2. OpenVPN Setting (from market)
3. BussyBox Installer (from market)
4. SSHDroid ssh server (from market)
PC Software Requirement
1. Putty ssh client
Step
1. If your tablet doesn't rooted please roote it's first.
2. Open BussyBox Installer and install bussy box to /system/xbin/
3. Connect your tabet to pc and copy openvpn configuration files to tablet /sdcard/openvpn/
5. Connnect you tablet to wifi-network (same the pc's network)
4. Open putty on your pc and connect it to your tablet (default username is root and password is admin)
5. run following command
cd /
mount -o remount rw /system
ln -s /system/xbin/busybox /system/bin/cp
6. On your tablet Open OpenVPN Installer
7. Install OpenVPN to /system/bin/ and choose path of ifconfig to "/system/xbin/busybox ifconfig"
if status showed "Binary Installed" it's mean installation success.
8. Open OpenVPN Setting and go to advance menu.
9. Do not checked on Load tun kernel module (Because i'm check for tun.ko is now loading to kernel. I'm using Tun.ko from market to check tun.ko in kernel module). Set Path to Configurations to "/sdcard/openvpn". Set Path to openvpn binary to "/system/bin/openvpn" and press back button. Now. You should see your open configuration connections.
10. Enjoy.
*** if you have problem about dns cannot change you can set dns by press connection you want and then select preference. Check on "Use VPN DNS Server" and set "VPN DNS Server" to your DNS Server.
Reference
http://vpnblog.info/android-openvpn-strongvpn.html
http://code.google.com/p/android-openvpn-installer/issues/detail?id=2
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
วันอังคารที่ 17 เมษายน พ.ศ. 2555
How to root Samsung Galaxy Tab 10.1
Hardware Requirement
Samsung Galaxy Tab 10.1 (I'm tested on Official firmware : Android 3.2 HC.)
How to
1. if you don't have Samsung Galaxy Tab Driver for you computer please download and install it first.
2. download tabrooteasy.zip and then extract to local hard drive
3. connect your tablet to computer
4. copy Samsung_Galaxy_Tab_10.1_root.zip to root of sdcard
5. Power Off your tablet
6. Hold down PowerOn Button + Volumn Down Button and wait for Downloading Menu
7. Press Volumn UP button to select Downloading Menu and enter to Odin download mode
8. Open Odin3 v1.85.exe
9. Press PDA Button and open "recovery-cwm_4.0.0.4-sam-tab-10.1.tar.md5" file and then click start
10. Now the tablet is now restarting. If it's not restart you can restart it manually by press power on button.
11. Restart your tablet again and enter to recovery menu by hold down PowerOn Button + Volumn Down Button
12. Press volumn down button to select recovery menu and then press volumn up button to enter menu
13. Remember. Now I'm use thair button for
Volumn UP or Volumn Down for select menu
Power On button for enter menu
14. choose "install zip from sdcard" -> "choose zip from sdcard" -> "Samsung_Galaxy_Tab_10.1_root.zip" -> "Yes"
15. Back to main menu and reboot your tablet
16. Now tablet are rooted.
Original Article from http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-root-galaxy-tab-10-1-the-easy-way/
Samsung Galaxy Tab 10.1 (I'm tested on Official firmware : Android 3.2 HC.)
How to
1. if you don't have Samsung Galaxy Tab Driver for you computer please download and install it first.
2. download tabrooteasy.zip and then extract to local hard drive
3. connect your tablet to computer
4. copy Samsung_Galaxy_Tab_10.1_root.zip to root of sdcard
5. Power Off your tablet
6. Hold down PowerOn Button + Volumn Down Button and wait for Downloading Menu
7. Press Volumn UP button to select Downloading Menu and enter to Odin download mode
8. Open Odin3 v1.85.exe
9. Press PDA Button and open "recovery-cwm_4.0.0.4-sam-tab-10.1.tar.md5" file and then click start
10. Now the tablet is now restarting. If it's not restart you can restart it manually by press power on button.
11. Restart your tablet again and enter to recovery menu by hold down PowerOn Button + Volumn Down Button
12. Press volumn down button to select recovery menu and then press volumn up button to enter menu
13. Remember. Now I'm use thair button for
Volumn UP or Volumn Down for select menu
Power On button for enter menu
14. choose "install zip from sdcard" -> "choose zip from sdcard" -> "Samsung_Galaxy_Tab_10.1_root.zip" -> "Yes"
15. Back to main menu and reboot your tablet
16. Now tablet are rooted.
Original Article from http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-root-galaxy-tab-10-1-the-easy-way/
วันพฤหัสบดีที่ 23 กุมภาพันธ์ พ.ศ. 2555
OpenVPN Authen ldap with out other plugin.
I've found easy scripts for use in OpenVPN to authentication with LDAP (I'm tested on Windows AD). It's solution from Selivanov Pavel.
1. Install OpenVPN in normal step.
2. Install OpenLDAP in normal step.
3. create "ldap-check-user.sh" script in OpenVPN directory
#!/bin/bash
bind_dn="cn=<user>,cn=Users,dc=domain,dc=com"
bind_pass="<password>"
host=rserver
port=389
dn=`ldapsearch -x -D "$bind_dn" -w $bind_pass -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=radix-tools" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" "dn" | cut -d':' -f 2`
if [ $? != 0 ]; then
echo "Error: user $username not found."
exit 1
fi
ldapsearch -x -D "$dn" -w $password -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=domain,dc=com" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Error: password for $username is incorrect."
exit 1
fi
exit 0
4. Insert "auth-user-pass-verify ldap-check-user.sh via-env" in OpenVPN server configuration file.
5. Insert "auth-user-pass" in OpenVPN client configuration file.
6. Enjoy.
Thanks for solution from Selivanov Pavel
http://serverfault.com/questions/333426/openvpn-plugin-openvpn-auth-ldap-does-not-bind-to-active-directory
1. Install OpenVPN in normal step.
2. Install OpenLDAP in normal step.
3. create "ldap-check-user.sh" script in OpenVPN directory
#!/bin/bash
bind_dn="cn=<user>,cn=Users,dc=domain,dc=com"
bind_pass="<password>"
host=rserver
port=389
dn=`ldapsearch -x -D "$bind_dn" -w $bind_pass -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=radix-tools" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" "dn" | cut -d':' -f 2`
if [ $? != 0 ]; then
echo "Error: user $username not found."
exit 1
fi
ldapsearch -x -D "$dn" -w $password -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=domain,dc=com" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Error: password for $username is incorrect."
exit 1
fi
exit 0
4. Insert "auth-user-pass-verify ldap-check-user.sh via-env" in OpenVPN server configuration file.
5. Insert "auth-user-pass" in OpenVPN client configuration file.
6. Enjoy.
Thanks for solution from Selivanov Pavel
http://serverfault.com/questions/333426/openvpn-plugin-openvpn-auth-ldap-does-not-bind-to-active-directory
วันอาทิตย์ที่ 19 กุมภาพันธ์ พ.ศ. 2555
วันพุธที่ 15 กุมภาพันธ์ พ.ศ. 2555
Install Freeradius mysql Authen on FreeBSD step by step.
# Install freeradius from port
cd /usr/ports/net/freeradius2
make install clean
# Configuration
cd /usr/local/etc/raddb
vi sites-enabled/default
#at authenticate section
#remove "#" before "pam" after line "# Pluggable Authentication Modules."
#save and exit
# Test Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest _yourSystemUser_ _yourSystemPassword_ localhost 0 testing123
#if show message "Access Accept" go to next step.
#MySQL Authen section now in /usr/local/etc/raddb directory
vi radiusd.conf
#remove "#" before "$INCLUDE sql.conf"
#save and exit
vi sites-enabled/default
#At "authorize" section
#remove "#" before "sql" after line "# See "Authorization Queries" in sql.conf"
#At "accounting" section
#remove "#" before "sql" after line "# See "Accounting queries" in sql.conf"
#Save and Exit
#MySQL Database section.
#Please create database "radius" first.
cd sql/mysql
mysql -u _MySQLUser_ -p_MySQLPasswd_ radius < schema.sql
mysql -u _MySQLUser_ -p_MySQLPasswd
INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('guest', 'Password','guest');
exit
# Test SQL Authen Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest guest guest localhost 0 testing123
#if show message "Access Accept" success.
cd /usr/ports/net/freeradius2
make install clean
# Configuration
cd /usr/local/etc/raddb
vi sites-enabled/default
#at authenticate section
#remove "#" before "pam" after line "# Pluggable Authentication Modules."
#save and exit
# Test Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest _yourSystemUser_ _yourSystemPassword_ localhost 0 testing123
#if show message "Access Accept" go to next step.
#MySQL Authen section now in /usr/local/etc/raddb directory
vi radiusd.conf
#remove "#" before "$INCLUDE sql.conf"
#save and exit
vi sites-enabled/default
#At "authorize" section
#remove "#" before "sql" after line "# See "Authorization Queries" in sql.conf"
#At "accounting" section
#remove "#" before "sql" after line "# See "Accounting queries" in sql.conf"
#Save and Exit
#MySQL Database section.
#Please create database "radius" first.
cd sql/mysql
mysql -u _MySQLUser_ -p_MySQLPasswd_ radius < schema.sql
mysql -u _MySQLUser_ -p_MySQLPasswd
INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('guest', 'Password','guest');
exit
# Test SQL Authen Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest guest guest localhost 0 testing123
#if show message "Access Accept" success.
วันพฤหัสบดีที่ 9 กุมภาพันธ์ พ.ศ. 2555
FreeBSD port update
cd /usr/ports net/cvsup-without-gui
make install clean
cp /usr/share/examples/cvsup/ports-supfile /root/
vi /root/ports-supfile
change default cvsup host
default host=CHANGE_THIS.FreeBSD.org
if you want to update all ports
uncommnet this line by remove # at the first of line
ports-all
else
comment "ports-all" out
and uncomment update option you want.
run this command
cvsup -g -L 2 /root/ports-supfile
***
refer : http://blog.cleannet.co.th/?p=14
make install clean
cp /usr/share/examples/cvsup/ports-supfile /root/
vi /root/ports-supfile
change default cvsup host
default host=CHANGE_THIS.FreeBSD.org
if you want to update all ports
uncommnet this line by remove # at the first of line
ports-all
else
comment "ports-all" out
and uncomment update option you want.
run this command
cvsup -g -L 2 /root/ports-supfile
***
refer : http://blog.cleannet.co.th/?p=14
วันจันทร์ที่ 6 กุมภาพันธ์ พ.ศ. 2555
TUN/TAP Interface in FreeBSD8
To load tun/tap interface in FreeBSD please edit file name : /boot/defaults/loader.conf
change if_tap_load="NO" to if_tap_load="YES"
or if_tun_load="NO" to if_tap_load="YES"
If have a problem about interface couldn't load. You can try this command to load interface.
ifconfig tun/tap* create
* tun or tap type of interface
Then reboot computer.
change if_tap_load="NO" to if_tap_load="YES"
or if_tun_load="NO" to if_tap_load="YES"
If have a problem about interface couldn't load. You can try this command to load interface.
ifconfig tun/tap* create
* tun or tap type of interface
Then reboot computer.
สมัครสมาชิก:
บทความ (Atom)