Currently Browsing: Manuals, HOWTOs

SNMP v3 Device Template for Zabbix 3

Download SNMP v3 Device Template for Zabbix 3...

Watchgurd http-proxy problem with some web pages

Sometimes some web sites have some headers which is not standard. To open this kind of sites (ex. odnoklassniki.ru) behind the WatchGuard firewall you need to reconfigure http-proxy. In Proxy Settings -> HTTP Response -> Header Fields change “None matched” field from “Strip” to...

CodeIgniter Problems with GoDaddy

When you are using GoDaddy hosting you can get errors with CodeIgniter framework URLs and routers. After research I did following configuration, and everything is working fine for me. First I have changet this valiables in /application/config/config.php $config['base_url'] = 'http://example.com/'; $config['index_page'] = 'index.php?'; $config['uri_protocol'] = 'REQUEST_URI'; Then I have created /.htaccess file and wrote in: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1...

lftp – ERROR: Fatal error: Certificate verification: Not trusted [HowTo]

Problem: When You use lftp, You maybe get following error: Fatal error: Certificate verification: Not trusted Solution: Disable certificate verification in lftp: $ vi ~/.lftp/rc set ssl:verify-certificate...

oDesk Unix Test Questions and Answers Discussions

Here is oDesk Unix Test with score 3.40 of 5 (Passing Score was 2.50). August, 2012 Aattention: ose only educational purposes! Topic Correct Answers(%) Basic Concepts and Administration 67% Commands 86% File Commands 75% Filters 50% Filters and Shells 75% If anyone knows which answer is incorrect please write as comment. Question 1: The UNIX command a.out & runs the program a.out: a. With highest priority b. With highest speed c. Only when no other process is running on the system d. In the background e. Is invalid Question 2: Which command will you use to see the available routes and their status? a. show route b. route status c. netstat -rn d. None of the above Question 3: Which of the following commands can be used to view the calendar of April 2007? a. $cal april 2007 b. $cal april 07 c. $calendar 4 07 d. $cal 4 2007 Question 4: Which command is used to run a command at a specified time? a. timer b. at c. time d. atq e. dd Question 5: By which screen manipulation command can you specify the coordinates for the cursor position ? a. tput cup b. tput smso c. tput rmso d. tput blink e. tput reverse Question 6: Which option of the grep filter prints out all those lines that do not match the pattern specified by the regular expression? a. -n b. -c c. -d d. -l e. -v Question 7: What would be displayed on the screen if the pwd command is entered when the user is working in the user directory? a. / b. home c. /home/username d. usr/ e. usr> f. usr/username Question 8: Which of the following statements is incorrect regarding the UNIX environment? a. It has the provision of security through the login and passwd programs. b. In it the file names are...

Install WEB server (LAMP) on Ubuntu with Firewall, Phpmyadmin and Firewall

Installing LAMP server Update source apt-get update Install Vim apt-get install vim Install tasksel apt-get install tasksel Install LAMP (with tasksel) type tasksel select LAMP and install Install phpmyadmin apt-get install phpmyadmin Install vsftpd apt-get install vsftpd Type vim /etc/vsftpd.conf Write into file chroot_local_user=YES service vsftpd restart Setting up firewall with iptables ————————————- Create firewall file vim /etc/firewall.sh Write firewall rules inside file #!/bin/sh IPT="/sbin/iptables" # Allow outgoing traffic and disallow any passthroughs $IPT -P INPUT DROP $IPT -P OUTPUT ACCEPT $IPT -P FORWARD DROP $IPT -A OUTPUT -j LOG $IPT -A INPUT -j LOG $IPT -A FORWARD -j LOG $IPT -F $IPT -X $IPT -t nat -F $IPT -t nat -X $IPT -t mangle -F $IPT -t mangle -X # Allow traffic already established to continue $IPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT # Allow ssh, dns, ldap, ftp and web services #$IPT -A INPUT -p tcp --dport ssh -i eth0 -j ACCEPT #$IPT -A INPUT -p tcp --dport domain -i eth0 -j ACCEPT #$IPT -A INPUT -p tcp --dport ldap -i eth0 -j ACCEPT #$IPT -A INPUT -p udp --dport ldap -i eth0 -j ACCEPT #$IPT -A INPUT -p tcp --dport ftp -i eth0 -j ACCEPT #$IPT -A INPUT -p udp --dport ftp -i eth0 -j ACCEPT #$IPT -A INPUT -p tcp --dport ftp-data -i eth0 -j ACCEPT #$IPT -A INPUT -p udp --dport ftp-data -i eth0 -j ACCEPT $IPT -A INPUT -p tcp --dport 80 -i eth0 -j ACCEPT $IPT -A INPUT -p tcp --dport 443 -i eth0 -j ACCEPT #$IPT -A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT # Allow local loopback services $IPT -A INPUT -i lo -j ACCEPT # Allow all from and to Boomerang #WEB $IPT -A INPUT -j ACCEPT -p all -s 217.113.4.192/28 $IPT -A INPUT -j ACCEPT -p all -s 217.113.16.64/28 #Bionet $IPT -A INPUT -j...

Protected: oDesk TCP/IP Test Questions and Answers Discussions

Dear visitors, my friend successfuly passed oDesk TCP/IP Test and was scored 3.25 of 5 (Passing Score vas 2.50). Here is Results by Topic: Topic Correct Answers(%) 1. IP Addressing 100% 2. DHCP 100% 3. Fundamentals 50% 4. Host Name Resolution 50% 5. Installing and Configuring 75% 6. Internetworking and Connectivity 67% 7. IP Address Resolution 67% 8. IP Routing 50% 9. Subnet Addressing 43% 10. Subnetting 50% So he wants to know which answer is wrong, if anyone knows which answer is incorrect please write as comment. Question 1: When is supernetting required? a. When the host address should not be partitioned for the purpose of subnetting b. When a single subnet needs more host IDs than provided by the class of address c. When a host ID has to be divided into two parts d. When network performance needs to be improved e. When a subnet needs to be isolated Answer: e Question 2: Which of the following is definitely a broadcast address for a class C network having Subnet Mask 255.255.255.0? a. xxx.xxx.xxx.0 b. xxx.xxx.255.1 c. xxx.xxx.xxx.126 d. xxx.xxx.xxx.254 e. xxx.xxx.xxx.255 f. None of the above Answer: e Question 3: Which statements are true regarding UDP? a. It is a connectionless service b. It is less reliable as compared to TCP c. It uses handshaking d. It is slow as compared to TCP Answer: a, b Question 4: Which of the following address is reseived for loopback tests? a. 10.0.0.1 b. 127.0.0.1 c. 172.16.0.1 d. 192.168.0.1 Answer: b Question 5: Which of the following Protocols is used for transferring electronic mail? a. FTP b. SNMP c. ARP d. SMTP Answer: d Question 6: How can you prevent a DHCP server from assigning an IP address to a DHCP client when that address is within the range of addresses defined in a DHCP scope? a. Deny the...

ESXi – ERROR: failed to locate and extract VM_ID for MachineName [HowTo]

Problem: When You run ghettoVCB.sh in dryrun mode on ESXi to backup virtual machines, You get: ERROR: failed to locate and extract VM_ID for MachineName Solution: In my example problem was that MachineName contains brackets, after renaming virtual machine problem was...

« Older Entries