<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7198399104428082623</id><updated>2024-09-14T22:56:28.440+07:00</updated><category term="Linux"/><category term="Cisco"/><category term="Cisco IOS"/><category term="Ubuntu"/><category term="Apache"/><category term="Computer"/><category term="FreeRADIUS"/><category term="OpenLDAP"/><category term="Security"/><category term="Syslog"/><title type='text'>NOC Guy</title><subtitle type='html'>I&#39;m a network engineer. This is a place where I keep my stuff that I experienced or faced during work and study, things like setting up a gns3 lab, uses of utilities in Linux, writing a piece of codes etc</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-8480290443921592722</id><published>2015-08-27T04:26:00.001+07:00</published><updated>2015-08-27T04:53:08.639+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Linux kernel module</title><content type='html'>I am working on a driver for NetFPGA-1G card. I found this &lt;a href=&quot;http://tldp.org/LDP/lkmpg/2.6/html/index.html&quot;&gt;Linux Kernel Programming Guide&lt;/a&gt;&lt;br /&gt;
is a good place for whom wants to write a kernel module or hardware driver to start with&lt;br /&gt;
Install/remove a kernel module&lt;br /&gt;
Commands must be executed under root privilege&lt;br /&gt;
&lt;br /&gt;
To install insmod &amp;lt;path_to_module/module_name.ko&amp;gt;&lt;br /&gt;
To remove modprobe -r module_name&lt;br /&gt;
or rmmod -f module_name&lt;br /&gt;
-f: force removal&lt;br /&gt;
&lt;br /&gt;
If it fails to remove, there could be the module is in use by a process or it has dependencies&lt;br /&gt;
Run lsmod to display all loaded module, its use and dependencies&lt;br /&gt;
Ex. lsmod | grep module_name&lt;br /&gt;
Output:&lt;br /&gt;
Module &amp;nbsp; &amp;nbsp; Size &amp;nbsp; &amp;nbsp; Used by&lt;br /&gt;
&lt;br /&gt;
Used by is a number and may be followed by a list of dependencies&lt;br /&gt;
If the number &amp;gt; 0, modprode will fail.&lt;br /&gt;
&lt;br /&gt;
Sometimes, a positive number means the kernel module has bugs. It crashes during installation can lead to the case. Then, the only solution is to reboot the computer and check the code.&lt;br /&gt;
A look at /var/log/syslog can provide some infos.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/8480290443921592722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/8480290443921592722?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/8480290443921592722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/8480290443921592722'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2015/08/linux-kernel-module.html' title='Linux kernel module'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-7028646458563641400</id><published>2012-01-11T08:44:00.004+07:00</published><updated>2012-01-11T08:44:30.290+07:00</updated><title type='text'>SPEC.org</title><content type='html'>Qouted: &quot;&lt;strong&gt;The Standard Performance Evaluation Corporation (SPEC)&lt;/strong&gt; is a non-profit corporation formed to establish, maintain and endorse a standardized set of relevant benchmarks that can be applied to the newest generation of high-performance computers. SPEC develops benchmark suites and also reviews and publishes submitted results from our &lt;a href=&quot;http://www.spec.org/consortium/&quot;&gt;member organizations&lt;/a&gt; and other benchmark licensees&quot;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/7028646458563641400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/7028646458563641400?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7028646458563641400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7028646458563641400'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2012/01/specorg.html' title='SPEC.org'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-482554275223816439</id><published>2011-10-01T07:52:00.003+07:00</published><updated>2011-10-01T07:52:39.943+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco"/><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS"/><title type='text'>Limit PPPoE PADI per specific time period</title><content type='html'>In ISP environment, some of the clients have their internet service disabled or somehow their modem is configured with wrong username and password. That will produce massive Accept-Rejects, because client modem continually try to request PPPOE connection.&lt;br /&gt;
That could cause high cpu consumption for Radius Servers and produce much log which burden troubleshooting effort.&lt;br /&gt;
&lt;br /&gt;
Session throttle feature of Cisco IOS allows us to limit number of PPPoE PADI over period of time and help to prevent this situation.&lt;br /&gt;
How to use:&lt;br /&gt;
In the Ethernet environment:&lt;br /&gt;
&lt;blockquote&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bba-group pppoe group1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; virtual-template 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sessions per-mac throttle 10 60 300&lt;/blockquote&gt;
The&amp;nbsp;above&amp;nbsp;configuration cause BRAS not to answer PPPOE PADI if 10 request has passed within 60 seconds. The silent time will last for 300 seconds.&lt;br /&gt;
&lt;blockquote&gt;
&amp;nbsp;&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/482554275223816439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/482554275223816439?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/482554275223816439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/482554275223816439'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/10/limit-pppoe-padi-per-specific-time.html' title='Limit PPPoE PADI per specific time period'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-566118431858440344</id><published>2011-09-12T14:21:00.000+07:00</published><updated>2011-10-01T07:38:57.239+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco"/><title type='text'>L2 Protocol Tunneling can cause loop</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://2.bp.blogspot.com/-Ki5WiuWuxtI/Tm2ydE899pI/AAAAAAAACq4/lWO_bPOui6c/s1600/Drawing1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;http://2.bp.blogspot.com/-Ki5WiuWuxtI/Tm2ydE899pI/AAAAAAAACq4/lWO_bPOui6c/s400/Drawing1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Turnning on l2protocol-tunnel cdp and vtp on the ports will cause loop in the network. Why?</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/566118431858440344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/566118431858440344?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/566118431858440344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/566118431858440344'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/09/l2-protocol-tunneling-can-cause-loop.html' title='L2 Protocol Tunneling can cause loop'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-Ki5WiuWuxtI/Tm2ydE899pI/AAAAAAAACq4/lWO_bPOui6c/s72-c/Drawing1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-7270221346537886346</id><published>2011-09-07T10:30:00.003+07:00</published><updated>2011-09-07T16:06:40.433+07:00</updated><title type='text'>Cisco 4500 IOS XE upgrade with ISSU</title><content type='html'>Checklist:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;auto-boot must be enabled&lt;/li&gt;
&lt;li&gt;SSO must be configured and standby supervisor engine in STANDBY HOT state&lt;/li&gt;
&lt;li&gt;NSF must be configured and working properly&lt;/li&gt;
&lt;li&gt;Current running IOS XE must support ISSU&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For detail, refer this&amp;nbsp;&lt;a href=&quot;http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/3.1.1SG/configuration/guide/issu.pdf&quot;&gt;http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12.2/3.1.1SG/configuration/guide/issu.pdf&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/7270221346537886346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/7270221346537886346?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7270221346537886346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7270221346537886346'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/09/cisco-4500-ios-xe-upgrade-with-issu.html' title='Cisco 4500 IOS XE upgrade with ISSU'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-1329070189729406986</id><published>2011-08-28T00:52:00.001+07:00</published><updated>2011-08-28T00:52:57.780+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS"/><title type='text'>User port configuration guideline on Cisco switches</title><content type='html'>For the best security and service, the following configuration should be applied to switch ports that connect to end users (applicable in most scenario)&lt;br /&gt;
&lt;br /&gt;
switch port-security&lt;br /&gt;
switch port-security maximum 1 (3 for port that connects to VoIP phone)&lt;br /&gt;
switch port-security violation shutdown&lt;br /&gt;
switchport host&lt;br /&gt;
spanning-tree bpdufilter enable&lt;br /&gt;
no cdp enable&lt;br /&gt;
storm-control broadcast include multicast&lt;br /&gt;
storm-control broadcast level 0.1&lt;br /&gt;
storm-control broadcast shutdown&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/1329070189729406986/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/1329070189729406986?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1329070189729406986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1329070189729406986'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/08/user-port-configuration-guideline-on.html' title='User port configuration guideline on Cisco switches'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-6234386225704783401</id><published>2011-08-27T09:29:00.000+07:00</published><updated>2011-08-28T00:53:08.895+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco"/><title type='text'>Spanning Tree Protocol most noticeable questions</title><content type='html'>What happens when whole network first boots up?&lt;br /&gt;
What happens after network converges?&lt;br /&gt;
What happens when new switch is added to network?&lt;br /&gt;
What should be done before adding new switch?&lt;br /&gt;
What happens when switch port up/down?&lt;br /&gt;
What happens when STP configuration on a switch is changed?</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/6234386225704783401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/6234386225704783401?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/6234386225704783401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/6234386225704783401'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/08/spanning-tree-protocol-most-noticeable.html' title='Spanning Tree Protocol most noticeable questions'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-4499733624668581987</id><published>2011-07-26T14:03:00.002+07:00</published><updated>2011-07-26T14:03:32.307+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco"/><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS"/><title type='text'>Broadcast issue with bridge-domain on ASR9000</title><content type='html'>By default, Flood Optimization feature on ASR9K prevents broadcast and multicast frames to be flooded to the other interfaces that are located on different line cards.&lt;div&gt;
For example, if one bridge-domain contains one Bundle-Ethernet interface and one physical interface Gigabit 0/1/0/12, broadcast received from interface G0/1/0/12 will never be flooded to the BE interface.&lt;/div&gt;
&lt;div&gt;
In some application, that&#39;s not a good idea. To change this, enter&amp;nbsp;&lt;i style=&quot;font-weight: bold;&quot;&gt;flood mode convergence-optimized &lt;/i&gt;command under bridge-domain configuration.&lt;/div&gt;
&lt;div&gt;
Click &lt;a href=&quot;http://www.cisco.com/en/US/customer/docs/routers/asr9000/software/asr9k_r4.1/lxvpn/configuration/guide/lesc41p2mps.html#wp1278800&quot;&gt;here&lt;/a&gt; for more information about this feature.&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/4499733624668581987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/4499733624668581987?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/4499733624668581987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/4499733624668581987'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/07/broadcast-issue-with-bridge-domain-on.html' title='Broadcast issue with bridge-domain on ASR9000'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-8922676194146909984</id><published>2011-07-22T13:49:00.001+07:00</published><updated>2011-07-22T13:49:19.628+07:00</updated><title type='text'>Cisco PPPoE: No idb found! Framed IP Addr might not be included</title><content type='html'>I encountered this issue today when setting wrong value for the CiscoAVPair attribute on LDAP.&lt;br /&gt;
I have radiusIPPool in LDAP mapping to Cisco AVPair used to assign IP Pool for PPPoe users.&lt;br /&gt;
The right format for this attribute is &quot;ip:addr-pool=&lt;ip name=&quot;&quot; pool=&quot;&quot;&gt;&quot;, but I put only &lt;ip name=&quot;&quot; pool=&quot;&quot;&gt;&lt;/ip&gt;&lt;/ip&gt;&lt;br /&gt;
&amp;nbsp;But the problem is, Cisco BRAS doesn&#39;t reject user&#39;s connection and just issue the log &quot;No idb found! Framed IP Addr might not be included&quot;. That cause the user keep establishing new ppp connnection to BRAS until the maximum session for that user is met or the BRAS has no more resource for new connection.&lt;br /&gt;
&lt;br /&gt;
BE&amp;nbsp;CAREFUL with Cisco AVPAir. Wrong format could cause serious or unexpected problem.&lt;br /&gt;
&lt;br /&gt;
Following is the log message:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS(00056ED0): Send &lt;b&gt;Access-Request&lt;/b&gt; to 192.168.1.2:1812 id 1645/151, len 155&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;authenticator 60 D0 60 C5 56 AF 76 65 - 95 40 85 C0 41 88 80 2D&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;Framed-Protocol &amp;nbsp; &amp;nbsp; [7] &amp;nbsp; 6 &amp;nbsp; PPP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [1]&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;User-Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 11 &amp;nbsp;&quot;ctvtnpc6a&quot;&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;User-Password &amp;nbsp; &amp;nbsp; &amp;nbsp; [2] &amp;nbsp; 18 &amp;nbsp;*&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;NAS-Port-Type &amp;nbsp; &amp;nbsp; &amp;nbsp; [61] &amp;nbsp;6 &amp;nbsp; PPPoEoVLAN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[33]&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;NAS-Port &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[5] &amp;nbsp; 6 &amp;nbsp; 1124077332 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;NAS-Port-Id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [87] &amp;nbsp;13 &amp;nbsp;&quot;4/0/19/3860&quot;&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;41 &lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 35 &amp;nbsp;&quot;client-mac-address=0050.7f7a.02bb&quot;&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;Service-Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[6] &amp;nbsp; 6 &amp;nbsp; Framed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[2]&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;NAS-IP-Address &amp;nbsp; &amp;nbsp; &amp;nbsp;[4] &amp;nbsp; 6 &amp;nbsp; 116.&lt;i&gt;xxx.xxx.xxx&lt;/i&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS: &amp;nbsp;Acct-Session-Id &amp;nbsp; &amp;nbsp; [44] &amp;nbsp;22 &amp;nbsp;&quot;4/0/19/3860_00057816&quot;&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS(00056ED0): Sending a IPv4 Radius Packet&lt;br /&gt;
Jul 22 13:17:10 VN-Time: RADIUS(00056ED0): Started 5 sec timeout&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: Received from id 1645/149 192.168.1.2:1812, Access-Reject, len 30&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;authenticator 44 A6 24 BA 1A B8 0E B3 - A8 A5 F1 27 90 81 01 A7&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Reply-Message &amp;nbsp; &amp;nbsp; &amp;nbsp; [18] &amp;nbsp;10 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; 55 6E 6B 6E 6F 77 6E 20 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[ Unknown ]&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS(00056ECF): Received from id 1645/149&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS/DECODE: Reply-Message fragments, 8, total 8 bytes&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: Received from id 1645/150 192.168.1.2:1812, &lt;b&gt;Access-Accept&lt;/b&gt;, len 218&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;authenticator 74 B2 77 A0 FB E0 9B E3 - 87 5A 74 1E A1 48 20 0C&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Class &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [25] &amp;nbsp;88 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; 53 42 52 32 43 4C 9C F2 A2 ED EF AF F3 B1 F3 C0 11 80 43 01 80 04 81 99 8C 86 80 02 80 0A 81 B1 DD 8E E7 A3 B9 E0 E3 9B 80 06 80 05 81 BC 80 C0 80 80 12 80 0E 81 9C F2 A2 ED EF AF F3 B1 F3 C0 80 81 97 C8 13 80 0E 81 99 8C 86 82 EB 8D E8 F6 BA 9B CE 86 99 D8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ SBR2CLC]&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;NAS-Port-Id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [87] &amp;nbsp;14 &amp;nbsp;&quot;4/0/19/3860 &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;37 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 31 &amp;nbsp;&quot;ip:sub-qos-policy-in=NPC6_UP &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;40 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 34 &amp;nbsp;&quot;ip:sub-qos-policy-out=NPC6_DOWN &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;19 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; &lt;b&gt;Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 13 &amp;nbsp;&quot;IP_POOL_03 &quot;&lt;/b&gt;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: Received from id 1645/151 192.168.1.2:1812, Access-Accept, len 220&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;authenticator 6C 44 67 BC 5B 96 8A 52 - 18 5D E5 C2 8D 30 AE 49&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Class &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [25] &amp;nbsp;90 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; 53 42 52 32 43 4C 9C F2 A2 ED EF AF F3 B1 F3 C0 11 80 45 01 80 04 81 99 8C 86 80 02 80 0B 81 B1 DD 8E E7 A3 B9 E0 E3 9B 98 A0 06 80 05 81 BC C0 C0 80 80 12 80 0E 81 9C F2 A2 ED EF AF F3 B1 F3 C0 80 81 97 CC 13 80 0F 81 99 8C 86 82 EB 8D E8 F6 BA 9B CE 86 99 D9 C2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [ SBR2CLE]&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;NAS-Port-Id &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [87] &amp;nbsp;14 &amp;nbsp;&quot;4/0/19/3860 &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;37 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 31 &amp;nbsp;&quot;ip:sub-qos-policy-in=NPC6_UP &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;40 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 34 &amp;nbsp;&quot;ip:sub-qos-policy-out=NPC6_DOWN &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp;Vendor, Cisco &amp;nbsp; &amp;nbsp; &amp;nbsp; [26] &amp;nbsp;19 &lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS: &amp;nbsp; Cisco AVpair &amp;nbsp; &amp;nbsp; &amp;nbsp; [1] &amp;nbsp; 13 &amp;nbsp;&quot;IP_POOL_03 &quot;&lt;br /&gt;
Jul 22 13:17:11 VN-Time: RADIUS(00056ED1): Received from id 1645/150&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: parse VSA parts error&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: convert VSA string; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: cisco VSA type 1; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: VSA; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: decoder; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: attribute Vendor-Specific; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: parse response op decode; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS(00056ED0): Received from id 1645/151&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: parse VSA parts error&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: convert VSA string; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: cisco VSA type 1; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: VSA; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: decoder; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: attribute Vendor-Specific; FAIL&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Jul 22 13:17:11 VN-Time: RADIUS/DECODE: parse response op decode; FAIL&lt;/b&gt;&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: [No of bits] slot : 4 port : 3 adapter : 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vlanid : 24 vci : 0 vpi : 0 inner_vlan_id : 0&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: [No of bits] slot : 4 port : 3 adapter : 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vlanid : 24 vci : 0 vpi : 0 inner_vlan_id : 0&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: [No of bits] slot : 4 port : 3 adapter : 1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vlanid : 24 vci : 0 vpi : 0 inner_vlan_id : 0&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS/ENCODE(00056ED3):Orig. component type = PPPoE&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: DSL line rate attributes successfully added&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E value 0x4 for character S with bitmask 0xF&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E port 0x4 with bit 4 processed&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E value 0x0 for character A with bitmask 0x1&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E port 0x8 with bit 5 processed&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E value 0x3 for character P with bitmask 0x7&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E port 0x43 with bit 8 processed&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E value 0xF14 for character V with bitmask 0xFFFFFF&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS: Format E port 0x43000F14 with bit 32 processed&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS(00056ED3): Config NAS IP: 0.0.0.0&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS(00056ED3): Config NAS IPv6: ::&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS/ENCODE: &lt;b&gt;No idb found! Framed IP Addr might not be included&lt;/b&gt;&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS/ENCODE(00056ED3): acct_session_id: 358425&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS/ENCODE(00056ED3): Acct-session-id pre-pended with Nas Port = 4/0/19/3860&lt;br /&gt;
Jul 22 13:17:16 VN-Time: RADIUS(00056ED3): sending&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/8922676194146909984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/8922676194146909984?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/8922676194146909984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/8922676194146909984'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/07/cisco-pppoe-no-idb-found-framed-ip-addr.html' title='Cisco PPPoE: No idb found! Framed IP Addr might not be included'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-1480384269532021764</id><published>2011-07-17T08:09:00.007+07:00</published><updated>2011-07-17T08:46:52.467+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cisco IOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Syslog"/><title type='text'>Installing Rsyslog and Log Analyzer</title><content type='html'>Operating system: RedHat Linux Enterprise 6.&lt;br /&gt;
&lt;br /&gt;
Assume that Apache has been installed and configured to work properly. Apache docsroot is /var/www/html.&lt;br /&gt;
&lt;br /&gt;
This installation is aimed to provide syslog facility to networking devices such as routers, switches, servers and to use Log Analyzer to view and analyse syslog.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Configuring Rsyslog&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.rsyslog.com/&quot;&gt;Rsyslog&lt;/a&gt; is installed by default in RHEL environment. If not, do it following &lt;a href=&quot;http://www.rsyslog.com/doc/install.html&quot;&gt;this&lt;/a&gt;.&lt;br /&gt;
Configure Rsyslog to receive syslog via UDP port 514:&lt;br /&gt;
Edit &lt;i&gt;/etc/rsyslog.conf&lt;/i&gt;&lt;br /&gt;
Uncomment&amp;nbsp;$ModLoad imudp.so and&amp;nbsp;$UDPServerRun 514&lt;br /&gt;
Add &lt;i&gt;$ActionFileDefaultTemplate RSYSLOG_SyslogProtocol23Format&lt;/i&gt; and comment all other&amp;nbsp;$ActionFileDefaultTemplate&lt;br /&gt;
&lt;br /&gt;
Add &lt;i&gt;*.* /var/log/syslog&lt;/i&gt; and comment all other rules if not used. That causes all syslog messages received to be put to file &lt;i&gt;/var/log/syslog&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Make Rsyslog to automatically start when OS reboots:&lt;br /&gt;
Run &lt;i&gt;chkconfig rsyslog on&lt;/i&gt;&lt;br /&gt;
Start Rsyslog: /etc/init.d/rsyslog start&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Installing Log Analyzer&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://loganalyzer.adiscon.com/downloads&quot;&gt;Get it&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://loganalyzer.adiscon.com/doc/install.html&quot;&gt;Install it&lt;/a&gt;&lt;br /&gt;
DONE.&lt;br /&gt;
If you get this message &quot;&lt;b&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;Syslog file is not readable, read access may be denied&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&quot;. &lt;a href=&quot;http://experiencestore.blogspot.com/2011/07/apache-file-permission-issue.html&quot;&gt;Follow this to resolve&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3. Configuring logging in Cisco IOS&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;logging esm config&lt;/i&gt; // Send to syslog server every command that user enters. Used to track what user has done on IOS.&lt;br /&gt;
&lt;i&gt;logging trap notifications &lt;/i&gt;// Choose lowest severity level to send to syslog. In this case syslog messages include emerg, alert, crit, err, warning and notice. If you want more, put logging trap info or even lower.&lt;br /&gt;
&lt;i&gt;logging origin-id hostname &lt;/i&gt;// To send HOSTNAME in syslog msg&lt;br /&gt;
&lt;i&gt;logging source-interface Loopback0 &lt;/i&gt;// Source IP address used to send syslog msg&lt;br /&gt;
&lt;i&gt;logging 192.168.16.9 &lt;/i&gt;// Syslog server</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/1480384269532021764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/1480384269532021764?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1480384269532021764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1480384269532021764'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/07/installing-rsyslog-and-log-analyzer.html' title='Installing Rsyslog and Log Analyzer'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-1239756954685091227</id><published>2011-07-17T07:33:00.001+07:00</published><updated>2011-07-17T07:33:55.960+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Apache file permission  issue</title><content type='html'>I was so crazy about this.&lt;br /&gt;
I tried to setup Log Analyzer site but couldn&#39;t get it work as wanted. &quot;Syslog file is not readable, read access may be denied&quot; is what I got instead of syslog information.&lt;br /&gt;
&lt;br /&gt;
Searching in the net and asking for help from friends didn&#39;t work. All I got were about using such:&lt;br /&gt;
chmod 644 or 755 or even 777&lt;br /&gt;
Or chown&lt;br /&gt;
&lt;br /&gt;
At last, I found out that, the main cause of the issue is &lt;a href=&quot;http://en.wikipedia.org/wiki/Security-Enhanced_Linux&quot;&gt;SE Linux&lt;/a&gt;. SE Linux prevents Apache from accessing files outside its granted folders (that&#39;s /var/www). Following shows how to overcome this:&lt;br /&gt;
&lt;b&gt;Solution 1:&lt;/b&gt;&lt;br /&gt;
Disable SE Linx (Not recommended)&lt;br /&gt;
edit /etc/selinux/config&lt;br /&gt;
change&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: 12px; line-height: 16px; white-space: pre;&quot;&gt;&lt;b&gt;SELINUX=enforcing to &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: monospace; font-size: 12px; line-height: 16px; white-space: pre;&quot;&gt;&lt;b&gt;SELINUX=disabled&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
DONE.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Solution 2:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
Grant permission to apache user&amp;nbsp;(The one that&#39;s used to run apache web server)&amp;nbsp;over /var/log/ or anywhere you want.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/1239756954685091227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/1239756954685091227?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1239756954685091227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/1239756954685091227'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/07/apache-file-permission-issue.html' title='Apache file permission  issue'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-639262667335838154</id><published>2011-07-17T06:24:00.004+07:00</published><updated>2011-07-17T06:28:20.111+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="OpenLDAP"/><title type='text'>OpenLDAP for ISP on RedHat Enterprise 6</title><content type='html'>This posts shows step by step of installing OpenLDAP on RHEL 6.&lt;br /&gt;
The next post will shows how to add more LDAP objects and AAA&amp;nbsp;&lt;a href=&quot;http://www.cisco.com/en/US/docs/ios/12_2/security/configuration/guide/scfrdat1.html#wp1038515&quot;&gt;attributes&lt;/a&gt; that often being used in Internet Service Provider environment (such as Framed-IP-Address, NAS-Port-ID...)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1. Installing compiler tools&lt;/b&gt;&lt;br /&gt;
RHEL doesn&#39;t install this by default. At least that&#39;s true to me.&lt;br /&gt;
Refer to &lt;a href=&quot;http://quickfixpc.blogspot.com/2011/03/freeradius-deployment-on-redhat.html&quot;&gt;this&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;2. Installing Prerequisites software&lt;/b&gt;&lt;br /&gt;
2.1.&amp;nbsp;Installing &lt;a href=&quot;http://www.oracle.com/database/berkeley-db/db/index.html&quot;&gt;Oracle Berkeley Database&lt;/a&gt;&lt;br /&gt;
[root@openldap db-5.1.25]# cd build_unix&lt;br /&gt;
[root@openldap db-5.1.25]# ../dist/configure&lt;br /&gt;
[root@openldap db-5.1.25]# make&lt;br /&gt;
[root@openldap db-5.1.25]# make install&lt;br /&gt;
&lt;br /&gt;
2.2. Installing &lt;a href=&quot;http://www.openssl.org/&quot;&gt;OpenSSL&lt;/a&gt;&lt;br /&gt;
Get it (Require internet connection to the server)&lt;br /&gt;
[root@openldap tmp]# wget http://www.openssl.org/source/openssl-1.0.0d.tar.gz&lt;br /&gt;
Install it&lt;br /&gt;
[root@openldap tmp]# tar zxvf openssl-1.0.0d.tar.gz&lt;br /&gt;
[root@openldap openssl-1.0.0d]# ./config&lt;br /&gt;
[root@openldap openssl-1.0.0d]# make&lt;br /&gt;
[root@openldap openssl-1.0.0d]# make install&lt;br /&gt;
&lt;br /&gt;
2.3. Installing&amp;nbsp;&lt;a href=&quot;http://asg.web.cmu.edu/sasl/sasl-library.html&quot;&gt;Cyrus SASL&lt;/a&gt;&lt;br /&gt;
Install Cyrus SASL from RHEL DVD: [root@openldap Packages]# rpm -Uvh cyrus-sasl-2.1.23-8.el6.x86_64.rpm&lt;br /&gt;
2.4. Installing&amp;nbsp;&lt;term&gt;&lt;a href=&quot;http://web.mit.edu/kerberos/www/&quot;&gt;Kerberos Authentication Service&lt;/a&gt;&lt;/term&gt;&lt;br /&gt;
&lt;b&gt;3. Installing OpenLDAP&lt;/b&gt;&lt;br /&gt;
3.1. Get the latest version&lt;br /&gt;
&lt;a href=&quot;http://www.openldap.org/software/download/&quot;&gt;http://www.openldap.org/software/download/&lt;/a&gt;&lt;br /&gt;
3.2. Compile and install&lt;br /&gt;
CPPFLAGS=&quot;-I/usr/local/BerkeleyDB.4.7/include&quot;&lt;br /&gt;
export CPPFLAGS&lt;br /&gt;
LDFLAGS=&quot;-L/usr/local/lib -L/usr/local/BerkeleyDB.4.7/lib -R/usr/local/BerkeleyDB.4.7/lib&quot;&lt;br /&gt;
export LDFLAGS&lt;br /&gt;
LD_LIBRARY_PATH=&quot;/usr/local/BerkeleyDB.4.7/lib&quot;&lt;br /&gt;
export LD_LIBRARY_PATH4. Configuring OpenLDAP&lt;br /&gt;
&lt;br /&gt;
4.1. Create database for storing config information (config DIT)&lt;br /&gt;
4.2. Create database for root DIT&lt;br /&gt;
In this example, root DIT is: dc=test, dc=com</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/639262667335838154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/639262667335838154?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/639262667335838154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/639262667335838154'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/07/openldap-for-isp-on-redhat-linux.html' title='OpenLDAP for ISP on RedHat Enterprise 6'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-3748411513143059008</id><published>2011-03-11T06:00:00.001+07:00</published><updated>2011-07-17T06:34:31.271+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Create VLAN on Ubuntu</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #333333;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;First, check to see whether NIC supports 802.1Q&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If yes, install VLAN support to Ubuntu:&lt;/span&gt;&lt;div style=&quot;font-style: inherit;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #134f5c; font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;udo apt-get install vlan&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;Edit your /etc/network/interfaces file so it would contain the following:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# The loopback network interface&lt;br /&gt;
auto lo&lt;br /&gt;
iface lo inet loopback&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# This is a list of hotpluggable network interfaces.&lt;br /&gt;
# They will be activated automatically by the hotplug subsystem.&lt;br /&gt;
auto vlan11&lt;br /&gt;
auto vlan22&lt;br /&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# VLAN 11&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;iface vlan11 inet static&lt;br /&gt;
address x.x.x.x&lt;br /&gt;
netmask x.x.x.x&lt;br /&gt;
vlan_raw_device eth0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font-weight: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;# VLAN 22&lt;br /&gt;
iface vlan5 inet static&lt;br /&gt;
address 172.16.0.1&lt;br /&gt;
netmask 255.255.255.0&lt;br /&gt;
vlan_raw_device eth0&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 21px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Restart your network interface:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; line-height: 21px; margin-bottom: 1.8em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0c343d; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;b&gt;sudo /etc/init.d/networking restart&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0c343d; font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code style=&quot;border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-style: inherit; font: normal normal normal 1.1em/normal &#39;Courier New&#39;, Courier, Fixed; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: small;&quot;&gt;Done. If you connects that Ubuntu to a switch via trunk link, it can serve multiple VLANs same as the routers do.&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/3748411513143059008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/3748411513143059008?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3748411513143059008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3748411513143059008'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/03/create-vlan-on-ubuntu.html' title='Create VLAN on Ubuntu'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-4662241516532183138</id><published>2011-03-11T05:46:00.002+07:00</published><updated>2011-07-17T06:40:24.573+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>PPPoE Server on Ubuntu 10</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
If you need a PPPoE for your network or just for hacking a very poor security Ethernet network, follow this to create a PPPoE server on a Ubuntu server.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note that:&lt;/b&gt;&lt;br /&gt;
In poor security ethernet network, when a pppoe client sends request in broadcast form, that request could reach not only genuine BRAS but also other clients. If you setup a client as pppoe server, and your reply comes to the client before that BRAS&#39;s one, the client will choose you. You will be the gateway. That&#39;s cool.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
sudo apt-get install ppp&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
sudo apt-get install pppoe&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
cd /etc/ppp/&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
vi options&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
uncomment &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;auth&lt;/b&gt;&lt;/span&gt; to enable authentication that requires users to enter password&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
comment &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;noauth&lt;/b&gt;&lt;/span&gt; to disable non-authentication&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
uncomment &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;+pap&lt;/b&gt;&lt;/span&gt; and &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;+chap&lt;/b&gt;&lt;/span&gt; to enable PAP an CHAP authentication method&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
vi pap-secrets and chap-secrets to add new users&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Start PPPoE Server&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In this example, pppoed will listen on interface eth0, local IP for eth0 is 172.16.16.1, dynamic IP for clients ranges from 172.16.16.2&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
sudo pppoe-server -I eth0 -L 172.16.16.1 -R 172.16.16.2 -O /etc/ppp/options&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Now we can create PPPoE session on our client host to connect to the server&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In case you want to enable clients to connect to the internet, you must change local IP and Remote IP to public IP addresses. Or you could enable NAT on the server&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;Enable NAT on Ubuntu using ufw (IP Masquerading)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
First, packet forwarding needs to be enabled in ufw.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Two configuration files will need to be&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
adjusted, in &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;/etc/default/ufw&lt;/b&gt;&lt;/span&gt; change the DEFAULT_FORWARD_POLICY to “ACCEPT”:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Then edit &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;/etc/ufw/sysctl.conf&lt;/b&gt;&lt;/span&gt; and uncomment:&amp;nbsp;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;net/ipv4/ip_forward=1&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
(Similarly, for IPv6 forwarding uncomment:&amp;nbsp;net/ipv6/conf/default/forwarding=1)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Now we will add rules to the &lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;&lt;b&gt;/etc/ufw/before.rules&lt;/b&gt;&lt;/span&gt; file. The default rules only configure the&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
filter table, and to enable masquerading the nat table will need to be configured. Add the following&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
to the top of the file just after the header comments:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;# nat Table rules&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;*nat&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;:POSTROUTING ACCEPT [0:0]&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;# Forward traffic from eth0 through eth1.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;-A POSTROUTING -s 172.16.16.0/24 -o eth1 -j MASQUERADE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;# don&#39;t delete the &#39;COMMIT&#39; line or these nat table rules won&#39;t be processed&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;COMMIT&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
In the above example replace eth0, eth1, and 172.16.16.0/24 with the appropriate&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
interfaces and IP range for your network.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Finally, disable and re-enable ufw to apply the changes:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;sudo ufw disable &amp;amp;&amp;amp; sudo ufw enable&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
IP Masquerading should now be enabled. You can also add any additional FORWARD rules to the&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
/etc/ufw/before.rules. It is recommended that these additional rules be added to the ufw-beforeforward&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
chain.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/4662241516532183138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/4662241516532183138?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/4662241516532183138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/4662241516532183138'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/03/pppoe-server-on-ubuntu-10.html' title='PPPoE Server on Ubuntu 10'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-3135088869304065333</id><published>2011-03-08T16:16:00.004+07:00</published><updated>2011-07-17T06:41:22.688+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FreeRADIUS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>FreeRADIUS deployment on RedHat Enterprise Linux</title><content type='html'>&lt;b&gt;OS Preparation&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installing gcc compiler tool&lt;/b&gt;&lt;br /&gt;
RHEL is not installing gcc by default, so gcc need to be installed first before configuring the source&lt;br /&gt;
Install gcc tools from RHEL DVD&lt;br /&gt;
create a folder to mount cdrom to&lt;br /&gt;
mkdir /cdrom&lt;br /&gt;
insert RHEL DVD disk 1, mount /dev/cdrom /cdrom&lt;br /&gt;
enter /cdrom/Packages&lt;br /&gt;
Install Kernal Headers first&lt;br /&gt;
&lt;br /&gt;
[root@radius Packages]# rpm -Uvh kernel-headers-2.6.32-71.el6.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
Looking for gcc packages&lt;br /&gt;
run rpm -Uvh gcc-??? (enter TAB to display all the packages that start with gcc)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[root@radius Packages]# rpm -Uvh gcc-4.4.4-13.el6.x86_64.rpm&lt;br /&gt;
warning: gcc-4.4.4-13.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY&lt;br /&gt;
error: Failed dependencies:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cloog-ppl &amp;gt;= 0.15 is needed by gcc-4.4.4-13.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cpp = 4.4.4-13.el6 is needed by gcc-4.4.4-13.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;glibc-devel &amp;gt;= 2.2.90-12 is needed by gcc-4.4.4-13.el6.x86_64&lt;br /&gt;
&lt;br /&gt;
If the above error displayed, enter the following command&lt;br /&gt;
[root@radius Packages]# rpm -Uvh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm cpp-4.4.4-13.el6.x86_64.rpm glibc-devel-2.12-1.7.el6.x86_64.rpm gcc-4.4.4-13.el6.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
If this error message displayed, fix it first&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY&lt;br /&gt;
error: Failed dependencies:&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libppl.so.7()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libppl_c.so.2()(64bit) is needed by cloog-ppl-0.15.7-1.2.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;libmpfr.so.1()(64bit) is needed by cpp-4.4.4-13.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;glibc-headers is needed by glibc-devel-2.12-1.7.el6.x86_64&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;glibc-headers = 2.12-1.7.el6 is needed by glibc-devel-2.12-1.7.el6.x86_64&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;Use the following link to find the package that contains libppl.so.7 and so on library &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 15px; white-space: pre-wrap;&quot;&gt;&lt;a href=&quot;http://rpmfind.net/linux/rpm2html/&quot; id=&quot;internal-source-marker_0.38972884765826166&quot; style=&quot;color: #000099; text-decoration: underline;&quot;&gt;http://rpmfind.net/linux/rpm2html/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[root@radius Packages]# rpm -Uvh ppl-0.10.2-11.el6.x86_64.rpm mpfr-2.4.1-6.el6.x86_64.rpm glibc-headers-2.12-1.7.el6.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
Repeat the previous step.&lt;br /&gt;
[root@radius Packages]# rpm -Uvh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm cpp-4.4.4-13.el6.x86_64.rpm glibc-devel-2.12-1.7.el6.x86_64.rpm gcc-4.4.4-13.el6.x86_64.rpm&lt;br /&gt;
Install gcc-c++&lt;br /&gt;
[root@radius Packages]# rpm -Uvh libstdc++-devel-4.4.4-13.el6.x86_64.rpm gcc-c++-4.4.4-13.el6.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installing libtools&lt;/b&gt;&lt;br /&gt;
[root@radius Packages]# rpm -Uvh autoconf-2.63-5.1.el6.noarch.rpm automake-1.11.1-1.2.el6.noarch.rpm libtool-2.2.6-15.5.el6.x86_64.rpm&lt;br /&gt;
[root@radius Packages]# rpm -Uvh libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #20124d;&quot;&gt;If you need to config or change IP address of your server, refer to &lt;a href=&quot;http://quickfixpc.blogspot.com/2011/03/change-ip-address-on-redhat-enterprise.html&quot;&gt;this link&lt;/a&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Get the software&lt;/b&gt;&lt;br /&gt;
Download FreeRADIUS package to /tmp&lt;br /&gt;
[root@radius tmp]# wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.1.10.tar.gz&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prerequisites&lt;/b&gt;&lt;br /&gt;
No prerequisites required&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installation&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
[root@radius tmp]# tar zxvf freeradius-server-2.1.10.tar.gz&lt;br /&gt;
[root@radius freeradius-server-2.1.10]# ./configure&lt;br /&gt;
To enable LDAP authentication, use ./configure&amp;nbsp;--with-modules=&quot;rlm_ldap&quot;&lt;br /&gt;
[root@radius freeradius-server-2.1.10]# make&lt;br /&gt;
[root@radius freeradius-server-2.1.10]# make install&lt;br /&gt;
&lt;br /&gt;
Default installation location on RHEL&lt;br /&gt;
/usr/local/etc/raddb/&lt;br /&gt;
config file: /usr/local/etc/raddb/radiusd.conf&lt;br /&gt;
Radius server daemon:&amp;nbsp;/usr/local/var/run/radiusd&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Configuration&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Start/Stop the server&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Testing server&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;LDAP configuration for authenticating&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;SQL configuration for accounting&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Securing the server&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/3135088869304065333/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/3135088869304065333?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3135088869304065333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3135088869304065333'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/03/freeradius-deployment-on-redhat.html' title='FreeRADIUS deployment on RedHat Enterprise Linux'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-5623757437333597147</id><published>2011-03-08T16:07:00.003+07:00</published><updated>2011-07-17T06:42:08.410+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Change IP Address on RedHat Enterprise Linux</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;1. Open Terminal.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;2. Open network configuration file. In this example, it’ll configure on interface eth0. Type&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: large;&quot;&gt;&lt;i&gt;vi /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;The current and default configuration is DHCP.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;3. Modify the file by press ‘i’ to enter insert mode. Change BOOTPROTO to static and add IP Address and Net mask as new lines if they’re not existed yet..&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;BOOTPROTO=static&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;IPADDR=192.168.125.10&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;NETMASK=255.255.255.0&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;4. Save the configuration file by press ESC + ‘:’ and type ‘wq’ to write and quit the editor.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;5. You can added these configuration to the config file. Replace [number] with your actual value.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;GATEWAY=[number]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;TYPE=Ethernet&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;NETWORK=[number]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;BROADCAST=[number]&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;6. Restart the network interface card. Type&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: large;&quot;&gt;service network restart&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;7. Review the configuration. Type&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: large;&quot;&gt;ifconfig&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/5623757437333597147/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/5623757437333597147?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/5623757437333597147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/5623757437333597147'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2011/03/change-ip-address-on-redhat-enterprise.html' title='Change IP Address on RedHat Enterprise Linux'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-7244897712683139687</id><published>2010-06-27T19:55:00.002+07:00</published><updated>2010-09-12T18:11:22.874+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Computer"/><title type='text'>Fix corrupted NTFS partition on USB drive</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;A partition, especially external one are likely to be damaged for many reason such as improper removal or virus. The indication of a corrupted partition is that Windows asks you to format your driver right after plugging before it can&amp;nbsp;access it. Another indication is when the Properties windows of your driver displays 0KB available and 0KB used. There are many tools to help fixing that problem, however almost are shareware or retail. Fortunately, there is an easy way to cope with corrupted partitions provided by every version of Windows.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;CHKDSK could help you to repair successfully your damaged USB driver. Open Commander window, type CHKDSK &lt;letter of=&quot;&quot; partition=&quot;&quot; your=&quot;&quot;&gt; /F. You must have administrator rights to do that.&amp;nbsp;&lt;/letter&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLE7wolbLn9atRVyNstent7oEGsYYCM5G4waTvFQk8Hmba2Y_moozwsTRd2ba-krB1D-pYh4VhHha_LWgsUmNln2FxVkrWIk-AlvuA6-IeOS35Ck00qQdVp0NQbvXL0qDMNmU0IYdlyFTT/s1600/CHKDSK.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLE7wolbLn9atRVyNstent7oEGsYYCM5G4waTvFQk8Hmba2Y_moozwsTRd2ba-krB1D-pYh4VhHha_LWgsUmNln2FxVkrWIk-AlvuA6-IeOS35Ck00qQdVp0NQbvXL0qDMNmU0IYdlyFTT/s400/CHKDSK.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;It takes approximately a few minutes to complete.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/7244897712683139687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/7244897712683139687?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7244897712683139687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/7244897712683139687'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2010/06/how-to-fix-corrupted-ntfs-partition.html' title='Fix corrupted NTFS partition on USB drive'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLE7wolbLn9atRVyNstent7oEGsYYCM5G4waTvFQk8Hmba2Y_moozwsTRd2ba-krB1D-pYh4VhHha_LWgsUmNln2FxVkrWIk-AlvuA6-IeOS35Ck00qQdVp0NQbvXL0qDMNmU0IYdlyFTT/s72-c/CHKDSK.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7198399104428082623.post-3621555208783702229</id><published>2009-07-09T13:19:00.024+07:00</published><updated>2011-07-17T06:44:05.905+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Security"/><title type='text'>Great tools for penetration test</title><content type='html'>Doing penetration test (so-called ethic hack) could help network administrators to discover vulnerabilities in the systems. Here are some greate open-source hacking and vulnerability assessment tools: &lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;a href=&quot;http://metasploit.org/&quot;&gt;1. Metasploit&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
A comprehensive set of penetration testing and vulnerability assessment tools&lt;/div&gt;
&lt;div&gt;
Systems requirment: Windows and Linux&lt;/div&gt;
&lt;div&gt;
Link: &lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://metasploit.org/&quot;&gt;http://metasploit.org&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;a href=&quot;http://insecure.org/nmap&quot;&gt;&lt;b&gt;2. Nmap&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;This is a network scanner.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Link: &lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://insecure.org/nmap&quot;&gt;http://insecure.org/nmap&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.oxid.it/cain.html&quot;&gt;3. Cain and Abel&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Password cracking&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://www.oxid.it/cain.html&quot;&gt;http://www.oxid.it/cain.html&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.openwall.com/john/&quot;&gt;4. John the Ripper&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Password cracking&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://www.openwall.com/john/&quot;&gt;http://www.openwall.com/john/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;a href=&quot;http://www.aircrack-ng.org/doku.php&quot;&gt;5. Aircrack&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;WEP/WPA cracking tool. It is a best WEP cracking. I&#39;ve tried it to crack a WEP access point and it took several minutes to get the WEP key.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://www.aircrack-ng.org/doku.php&quot;&gt;http://www.aircrack-ng.org/doku.php&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://airsnort.shmoo.com/&quot;&gt;6. AirSnort&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;802.11 WEP encrytion cracking&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://airsnort.shmoo.com/&quot;&gt;http://airsnort.shmoo.com/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.nessus.org/&quot;&gt;7. Nessus&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Network scanner&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://www.nessus.org/&quot;&gt;http://www.nessus.org&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.antsight.com/zsl/rainbowcrack/&quot;&gt;8. Rainbow&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Passwork cracker&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Link: &lt;a href=&quot;http://www.antsight.com/zsl/rainbowcrack/&quot;&gt;http://www.antsight.com/zsl/rainbowcrack/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://www-arc.com/sara&quot;&gt;&lt;b&gt;9. Sara&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Vulnerability assessment tool&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://www.hping.org/&quot;&gt;&lt;b&gt;10. HPings&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Packet crafter&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.kismetwireless.net/&quot;&gt;11. Kismet&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Wireless sniffer&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;a href=&quot;http://www.cirt.net/code/nikto.shtml&quot;&gt;&lt;b&gt;12. Nikto&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Web scanner&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.parosproxy.org/&quot;&gt;13. Paros Proxy&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;&quot;&gt;Web vulnerability assessment proxy&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;i&gt; &lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;(Source: Santos, O. (2008). End-to-end security: Defense-in-Depth: Cisco Press)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://nocguy.blogspot.com/feeds/3621555208783702229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7198399104428082623/3621555208783702229?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3621555208783702229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7198399104428082623/posts/default/3621555208783702229'/><link rel='alternate' type='text/html' href='http://nocguy.blogspot.com/2009/07/great-tools-for-security-enginner.html' title='Great tools for penetration test'/><author><name>Trung Truong</name><uri>http://www.blogger.com/profile/12978853858667138923</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>