<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Routers : Linux System And Network Admnistration</title>
	<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php" />
	<modified>2010-03-10T08:26:30Z</modified>
	<author>
		<name>Routers</name>
	</author>
	<copyright>Copyright 2010, Routers</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.5.1">SPHPBLOG</generator>
	<entry>
		<title>IPCop Port Forward</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090209-151052" />
		<content type="text/html" mode="escaped"><![CDATA[Forward port 80 to LAN WebServer , this is to have home webserver <br />can be used for others port also <br /><br />Very Simple, here is the image, click to enlarge<br /><br /><a href="javascript:openpopup('images/fwportfward.png',1036,631,false);"><img src="images/fwportfward.png" width="574" height="350" border="0" alt="" /></a><br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090209-151052</id>
		<issued>2009-02-09T00:00:00Z</issued>
		<modified>2009-02-09T00:00:00Z</modified>
	</entry>
	<entry>
		<title>MySQL Create db</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090207-235930" />
		<content type="text/html" mode="escaped"><![CDATA[[root@db-svr ~]# mysql -u root -p<br />Enter password:<br />Welcome to the MySQL monitor.  Commands end with ; or \g.<br />Your MySQL connection id is 2<br />Server version: 5.0.45 Source distribution<br /><br />Type &#039;help;&#039; or &#039;\h&#039; for help. Type &#039;\c&#039; to clear the buffer.<br /><br /><br />mysql&gt; CREATE DATABASE linux_db;<br />Query OK, 1 row affected (0.03 sec)<br /><br />mysql&gt; GRANT SELECT,INSERT,UPDATE,DELETE<br />    -&gt; ON linux_db.*<br />    -&gt; TO linux@localhost<br />    -&gt; IDENTIFIED BY &#039;linuxdbpaswd&#039;;<br />Query OK, 0 rows affected (0.00 sec)<br /><br />mysql&gt; flush privileges;<br />Query OK, 0 rows affected (0.00 sec)<br /><br />mysql&gt; SHOW DATABASES;<br />+--------------------+<br />| Database           <br />+--------------------+<br />| information_schema <br />| linux_db           <br />| mysql              <br />+--------------------+<br />3 rows in set (0.00 sec)<br /><br />mysql&gt; \q<br />Bye<br />[root@db-svr ~]# <br />                   <br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090207-235930</id>
		<issued>2009-02-07T00:00:00Z</issued>
		<modified>2009-02-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>MySQL Network Security</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090207-192251" />
		<content type="text/html" mode="escaped"><![CDATA[By Default MySQL server will answer any incoming telnet to <br />the machine from outside, so we need to disable this <br /><br />(Add entry at my.cnf)<br />[root@noc ~]# nano -w /etc/my.cnf<br /><br />[mysqld]<br />bind-address=127.0.0.1<br /><br />(Restart MySQL)<br />[root@noc ~]# /sbin/service mysqld restart<br />Stopping MySQL:                                            [  OK  ]<br />Starting MySQL:                                            [  OK  ]<br />[root@noc ~]#<br /><br />(From Now any scan to that port from outside will not be answered)<br /><br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090207-192251</id>
		<issued>2009-02-07T00:00:00Z</issued>
		<modified>2009-02-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>MySQL Clean Up</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090207-145548" />
		<content type="text/html" mode="escaped"><![CDATA[MySQL need to clean up for security reason after first installation <br />Do as following :-<br /><br />[root@svr ~]# mysql -u root -p<br />Enter password:<br />Welcome to the MySQL monitor.  Commands end with ; or \g.<br />Your MySQL connection id is 2 to server version: 5.0.22<br /><br />Type &#039;help;&#039; or &#039;\h&#039; for help. Type &#039;\c&#039; to clear the buffer.<br /><br />mysql&gt; drop database test;<br />Query OK, 0 rows affected (0.02 sec)<br /><br />mysql&gt; use mysql;<br />Reading table information for completion of table and column names<br />You can turn off this feature to get a quicker startup with -A<br /><br />Database changed<br />mysql&gt; delete from db;<br />Query OK, 2 rows affected (0.00 sec)<br /><br />mysql&gt; delete from user where not (host=&quot;localhost&quot; and user=&quot;root&quot;);<br />Query OK, 3 rows affected (0.02 sec)<br /><br />mysql&gt; flush privileges;<br />Query OK, 0 rows affected (0.00 sec)<br /><br />mysql&gt; \q<br />Bye<br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090207-145548</id>
		<issued>2009-02-07T00:00:00Z</issued>
		<modified>2009-02-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>MySQL Tunnel</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090207-095614" />
		<content type="text/html" mode="escaped"><![CDATA[From Linux Laptop<br /><br />ssh -f -L 3000:localhost:3306 <a href="mailto:root@db-server.net" target="_blank" >root@db-server.net</a> sleep 2d<br /><br />Now open MySQL Administrator make connection<br /><br /><img src="images/mysqlogin.png" width="432" height="357" border="0" alt="" /><br /><br />click Connect and there you go <br /><br /><a href="javascript:openpopup('images/mysqlogin_in.png',944,689,false);"><img src="images/mysqlogin_in.png" width="574" height="419" border="0" alt="" /></a><br /><br />FYI, dont worry server status shown down, its local in laptop is down<br />but the server you maintain remote is alive , <br /><br />happy backup :)]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090207-095614</id>
		<issued>2009-02-07T00:00:00Z</issued>
		<modified>2009-02-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>YUM Tunnel IDC</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090206-175002" />
		<content type="text/html" mode="escaped"><![CDATA[This tutorial suitable for user/admin who got/own/rent server in IDC <br />for them to full utilize their DSL connection in the local <br />office linux o/s update<br /><br />setup as following<br /><br />======IDC Server side Setup============<br /> # yum install privoxy<br /> # service privoxy start<br />========================================<br /><br />======Client Local Office Setup=========<br />-nothing to install actually<br /><br /># echo &#039;http_proxy=http://localhost:4222&#039; &gt;&gt; /etc/yum.conf<br /># echo &#039;export http_proxy=localhost:4222&#039; &gt;&gt; /etc/rc.local<br />  ( info: run # export http_proxy=localhost:4222 to activate w/o reboot)<br />  ( check run # echo $http_proxy if correct you will get &quot;http://localhost:4222&quot;)<br /><br /># ssh -f -L 4222:localhost:8118 root@idc-server-ip sleep 2d<br />  ( info: once you enter the command, its forked to the background )<br />============done============================<br /><br />now you can do yum update in local office computer and feel the diffrent<br />btw this also work for web proxy just go to browser proxy setup <br />put localhost port 4222 and google for showip<br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090206-175002</id>
		<issued>2009-02-06T00:00:00Z</issued>
		<modified>2009-02-06T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Linux ADD IP </title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090206-105043" />
		<content type="text/html" mode="escaped"><![CDATA[login as root in konsole<br /><br />First Way<br />----------<br />(Add IP)<br />#/sbin/ifconfig eth0 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255<br />To view execute /sbin/ifconfig eth0<br /><br />(Add Route)<br />#/sbin/route add default gw 192.168.1.1<br />To view execute /sbin/route -n<br />----------<br /><br />Second Way<br />----------<br />(If you have a lot of IP to add, consider use range)<br /><br />#nano -w /etc/sysconfig/network-scripts/ifcfg-eth0-range0<br />(add as following)<br /><br />IPADDR_START=192.168.1.10<br />IPADDR_END=192.168.1.20<br />CLONENUM_START=0<br /><br />(save it and restart network)<br />---------]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090206-105043</id>
		<issued>2009-02-06T00:00:00Z</issued>
		<modified>2009-02-06T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Mount Remote Drive</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090205-215312" />
		<content type="text/html" mode="escaped"><![CDATA[To make remote drive available to your local hardisk<br />First need to install fuse-sshfs into your local linux system<br /><br />(Create Mount Point Folder , mkdir /path/mount-place)<br /><br /># mkdir /export/remotedisk-isp1<br /># sshfs -o follow_symlinks  <a href="mailto:user@remotedisk-isp1.net" target="_blank" >user@remotedisk-isp1.net</a>: /export/remotedisk-isp1<br /><br />Done. and to see your drive <br /># df -h<br /># cd /export/remotedisk-isp1<br /><br />All remote file will be available as your local drive<br /><br /><br />have fun :)<br /><br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090205-215312</id>
		<issued>2009-02-05T00:00:00Z</issued>
		<modified>2009-02-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>IPCop tunnel IDC</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090205-145404" />
		<content type="text/html" mode="escaped"><![CDATA[---------IDC Server--------------------<br /><a href="mailto:root@idcserver.net" target="_blank" >root@idcserver.net</a> yum install privoxy <br /><a href="mailto:root@idcserver.net" target="_blank" >root@idcserver.net</a> /sbin/service privoxy start<br /><br />----------local office ----------------<br />install openssh47p1.tar.gz to inside ipcop box<br />get from  <a href="http://www.ipadd.de/binary.html" target="_blank" >http://www.ipadd.de/binary.html</a><br />wich command cd openssh ./install -l<br /><br />root@fw:~ # tar xvfz openssh47p1.tar.gz<br />root@fw:~ # cd openssh47p1<br />root@fw:~/openssh47p1 # ./install -i<br /><br />Installing now ...<br />Successfully done!<br /><br />root@fw:~ # ssh -f -L 4222:localhost:8118 <a href="mailto:root@idcserver.net" target="_blank" >root@idcserver.net</a> sleep 365d<br />---------<br />now to web ipcop under proxy set<br /><br />Enabled on Green:<br />Transparent on Green:<br /><br />hostport:port ======= localhost:4222<br />u/user========= empty<br />u/pass========= empty<br />proxy port = 80<br /><br />see sample (click for large image)<br /><a href="javascript:openpopup('images/proxyset.png',1036,755,false);"><img src="images/proxyset.png" width="574" height="418" border="0" alt="" /></a><br />save it<br />---------------------------------<br /><br />from now all your workstation will have ip from idcserver.net <br />automatically once start browsing the net, and dsl speed will <br />be increased<br /><br />good luck :)<br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090205-145404</id>
		<issued>2009-02-05T00:00:00Z</issued>
		<modified>2009-02-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Mylinux</title>
		<link rel="alternate" type="text/html" href="http://rou.tprsb.com/blog/index.php?entry=entry090205-115459" />
		<content type="text/html" mode="escaped"><![CDATA[[Wed Feb 4 2009] [16:04:57] &lt;Buntal&gt;    ping 192.168.1.1<br />[Wed Feb 4 2009] [16:05:06] &lt;Buntal&gt;    aduh<br />[Wed Feb 4 2009] [16:05:07] &lt;Routers&gt;   dari centos ping .1.1<br />[Wed Feb 4 2009] [16:05:21] &lt;Buntal&gt;    oke<br />[Wed Feb 4 2009] [16:05:24] &lt;Buntal&gt;    jap<br />[Wed Feb 4 2009] [16:05:38] &lt;Routers&gt;   centos tu dah ada ip tak<br />[Wed Feb 4 2009] [16:05:56] &lt;Buntal&gt;    network is unreachable<br />[Wed Feb 4 2009] [16:06:01] &lt;Routers&gt;   kalau takde ip then u kena buat kan &#039;<br />[Wed Feb 4 2009] [16:06:08] &lt;Buntal&gt;    mcam mna nk buatkan<br />[Wed Feb 4 2009] [16:06:20] Nick        Buntal is now known as fazli.<br />[Wed Feb 4 2009] [16:07:09] &lt;Routers&gt;   /sbin/ifconfig eth0 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255<br />[Wed Feb 4 2009] [16:08:42] &lt;Routers&gt;   dah ?<br />[Wed Feb 4 2009] [16:08:48] &lt;fazli&gt;     lum<br />[Wed Feb 4 2009] [16:08:51] &lt;fazli&gt;     ngah taip ni<br />[Wed Feb 4 2009] [16:08:54] &lt;fazli&gt;     sory slow<br />[Wed Feb 4 2009] [16:09:17] &lt;Routers&gt;   oo keyboard rosak tu , beli keyboard baru<br />[Wed Feb 4 2009] [16:09:59] &lt;fazli&gt;     oke<br />[Wed Feb 4 2009] [16:10:06] &lt;fazli&gt;     dh<br />[Wed Feb 4 2009] [16:10:09] &lt;fazli&gt;     rasa nyer<br />[Wed Feb 4 2009] [16:10:17] &lt;fazli&gt;     lepas tekan tu<br />[Wed Feb 4 2009] [16:10:17] &lt;Routers&gt;   /sbin/ifconfig eth0<br />[Wed Feb 4 2009] [16:11:32] &lt;fazli&gt;     i net addr : 192.168.1.10 bcast: 192.168.1.255 mask: 255.255.255.0<br />[Wed Feb 4 2009] [16:11:41] &lt;fazli&gt;     oke<br />[Wed Feb 4 2009] [16:11:47] &lt;Routers&gt;   ping -c 4 192.168.1.1<br />[Wed Feb 4 2009] [16:13:20] &lt;fazli&gt;     host unreachable<br />[Wed Feb 4 2009] [16:13:28] &lt;Routers&gt;   :)<br />[Wed Feb 4 2009] [16:13:33] &lt;fazli&gt;     apo tu<br />[Wed Feb 4 2009] [16:14:02] &lt;Routers&gt;   /sbin/route add default gw 192.168.1.1<br />[Wed Feb 4 2009] [16:15:12] &lt;fazli&gt;     oke dh<br />[Wed Feb 4 2009] [16:15:16] &lt;Routers&gt;   ping -c 4 192.168.1.1<br />]]></content>
		<id>http://rou.tprsb.com/blog/index.php?entry=entry090205-115459</id>
		<issued>2009-02-05T00:00:00Z</issued>
		<modified>2009-02-05T00:00:00Z</modified>
	</entry>
</feed>
