Thursday, May 26, 2011

pfsense multi wan / load balancing

Watch English Translation below

00:00
There are more than one line to the Internet and links to back up the internet
would you connected an uninterrupted, Pfsense security wall
The new version (2.0) with redundant connections as possible to use.
greken avoid interruption of service (e-mail service), even in this feature for
may use,
How to use this feature going to tell our video.
www.sistemzone.com


00:18
Pfsense version 2.0 Betas


00:25
2 x WAN interface (interface) bulumakta. Simulation will test on the VMware To, 3 define a LAN segment.
Ic network LAN 1 LAN 2 and LAN 3 is the internet To.
The above two machines installed on the server 2003 (isp1 and isp2) Internet service to us enables.



00:35
WAN interface auto IP address via DHCP recruiting.


00:59
Not yet identified any rules on the firewall.


01:15
S gateway to the WAN interface is automatically defined. WAN interfaces
Gateway to Dynamic IP from DHCP which they called for them.


01:26
WAN2 I click on the double to come.


1:32
If the gateway IP address, the monitor does not allow pinglemeye alternative to the IP part at main menu
girbilirsiniz ip address. I'm getting OpneDNS URLs.


01:38
Advanced section to be able to do various adjustments. Weight: Gateway for the priority
enables you to specify the value. Value is high as a priority will be high.


01:47
Latency threshold: If the ping values ​​in milliseconds belirledginiz (min-max)
rises above values, the system automatically and then you understand that, appears,
group will build on the gateway, by setting the trigger level, delay low value for the gateway, such as priority of Attraction can make diagnosis.


01:58
Packet Lost thresholds: enables you to specify priority packet losses according to the gateway.
At the same time in these priority groups and then build and gateway values base to be taken.


02:08
Gateway Group, in episode tanimlayabiliyorsunuz groups. Tanimliyorum a new one.


02:17
To write the name of the Group. WAN interfaces for the Gateway Priority ayaliyorum values.
The values ​​are the lowest in the highest priority is the means. For example, weight belilediginiz with values, while WAN2 essay, specified here with values, the priority order of change is possible.


02:39
Trigger Level: Here are a few to us, available option. (Member Down / Packet Loss /
High Latency / Packet Loss or High Latency) you according to your infrastructure you want a
secebillirsiniz. I'll leave it as member down.


02:51
Member Down: If you are an active internet line to ugararsa interrupted, Internet Lines is
directs one of the other active connections can.


03:00
Packet Loss: Packet loss, according to at least pay for what packet loss, primarily determines the
Give it focuses on Internet traffic.


03:05
High Latency: ping values ​​in milliseconds hang derecade growth shows degreri low priority determines the line and the internet directs traffic accordingly.



03:20
Saving to save the settings saying.


03:27
Group names, spaces, characters such as hyphens and underscores are not allowed.


03:37
Accept the changes made.


03:50
Sira has a firewall rule larini Arrangement.


03:56
Geten as I click the Default rule double. Gateway by Gateway address from Shedding as a Multi-Gateway. 'm Going to save the settings.


04:15
Accept the Yapdan desisiklikleri.


04:34
Here, both online gateway that is currently active in the Advanced gormektesiniz.su.


04:55
I pull up the Internet connection is temporarily out of isp1.


05:06
Below you see that the internet connection is provided over isp1 online.


05:43
Also do the same procedure as for the other line.


06:04
In connection are both currently online.


06:24
Connections getiriorum it back.


06:40
Soon will do a little testing. Connections can close one, and how much After time, the connection will continue to

execute over the other line, will see together.


07:40
Good isp2 easier to disable. With specific ranges will be small little cuts.


08:42
Once to link at google, yahoo and then the connection is, in short term has been disconnected and you see a.



08:59
I isp1 easier to disable.


09:49
For a short period of time has been disconnected and you see a connections. Very gecmedem other traffic Will continue to flow over the WAN line.


10:17
As you can see the WAN Gateway is also bands online looks at the water line.


10:53
Izyelebilirziniz situation of a connection here.


11:35
Thank you for our video followed by.

www.sistemzone.com

Gokhan Sezen

Tuesday, May 17, 2011

How to Clone Whole Hardisk with Ubuntu operating System

ye command aap ki pori ki pori hard disk ko dosri harddisk main istarha copy kardayti hay kay usko operating system bhi copy hojata hay
aur aap wo harddisk kisi dosray computer main laga kar use karsaktay hain aur sub kuch waysa hi hoga.

aik new harddisk lain jo bilkul usi size/capacity ki ho jis ko aap copy karna chatay hain
Ubuntu main gpart ki madad say pehlay uskay sary partitions delete kar dain phir system restart kar kay nechay di hoi command apply karain.

dd command
--------------

sudo dd if=/dev/sdb of=/dev/sdc

iss command ko istarha parhain gay

disk copy karo "if=/dev/sdb" input disk drive say output drive main "of=/deve/sdc

is kay ilawa aap iss ki madad say pori harddisk ki ISO file bana kar bhi backup lay saktay hain
is kay liye nechay wali command use karain

sudo dd if=/dev/sdb of=/home/shaheer/thumbImage.img
------------------------------------------------End-----------------------------------------------

hosakta hay kay jab aap ye hard disk apnay dosray system main lagain to wahan 
Network Card conflict kar jaen ye is liye hota hay kay aap k Ubuntud main MAC address purana wala 
hi  hota hay aur new system main Network Card dosra aajata hay

Following is the solution for this Problem: 


 “SIOCSIFADDR: No such device eth0″

After a bit of googling I found a solution that required editing /etc/ftab to remove an incorrect generated mac address. Hardy Heron doesn’t have this file though so I did a bit more searching around the filesystem and found a reference to the mac address stored in the vmx (vmware config) file found in /etc/udev/rules.d/70-persistent-net.rules. Note: For Debian the file can be found at /etc/udev/rules.d/z25_persistent-net.rules
Method One – delete the rules file

Quickest way to solve this is to move/delete the rules file. (Thanks to the comment from SonniesEdge.)

Ubuntu
sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old

Debian
sudo mv /etc/udev/rules.d/z25_persistent-net.rules /etc/udev/rules.d/z25_persistent-net.rules.old

Now reboot the system so that rule file will be recreated by the Ubuntu

-------------------------------------------------------------------------------------------------------


Method Two – edit the rules file

The second way is to comment out the line relating to eth0 which had the wrong mac address and replaced “eth1″ with “eth0″. After rebooting eth0 should be working properly and normality will be restored.

Here’s an example carried out on Ubuntu.

The old /etc/udev/rules.d/70-persistent-net.rules looked like this:
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:xx:xx", ATTR{type}=="1", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:36:xx:xx", ATTR{type}=="1", NAME="eth1"

Was edited to look like this:
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:3

Sunday, May 15, 2011

How to Configure a Multihomed Server in Windows 7


A multihomed computer has more than one network adapter card or embedded network chip and port installed. Configuring a multihomed computer, in most cases, requires additional settings to ensure that the computer sends information to the intended destination hosts on the network without errors. By adding additional parameters to the network adapter configuration of a multihomed computer, you can avoid errors related to dual network connections.


Instructions

1-
Click "Start" and the "Search" box. Type "ncpa.cpl" (without quotation marks) and press the "Enter" key. The "Network Connections" window will appear.

2-
Right-click on the first network adapter and click the "Properties" item in the menu that appears. Scroll down the list of protocols and double-click on the "Internet Protocol Version 4 (TCP/IPv4)" selection. The "Internet Protocol Version 4 TCP/IPv4 Properties" window will appear.

3-
Click the "Obtain an IP address automatically" radio button and then click "Obtain a DNS server IP address automatically" if the network supports dynamic assignment of IP addresses (DHCP). If the network does not support dynamic IP address assignment, then click the "Use the following IP address" radio button and then click "Use the following DNS server addresses" radio button. Type in the IP address, subnet mask, default gateway IP address and DNS server IP address that are assigned to the first network adapter in the fields provided.

4-
Click the "Advanced" button. The "Advanced TCP/IP Settings" window will appear. Uncheck the "Automatic metric" box and then type a "1" in the "Interface metric" field if network services used most often by the computer are located on the network connected to the first network adapter. Otherwise type a "2" in the "Interface metric" field.

5-
Click "OK" in the "Advanced TCP/IP Settings" window and then click "OK" in the "Internet Protocol Version 4 (TCP/IPv4)" window. Click "OK" in the "Local Area Connection" window to save the configuration.

6-
Configure the second network adapter following the same procedure as the first network adapter. In the "Advanced TCP/IP Settings" configuration window for the second adapter, ensure that the number typed into the "Interface metric" box is a "2" if the first network adapter "Interface metric" box value is a "1", or vice versa, so that the metric values are different for each network adapter and the network adapter with the "Interface metric" box value of "1" is connected to the network that provided the majority of the network services for the computer.

7-
Repeat the procedure above for each additional network adapter, assigning a number in the "Interface metric" box relative to the proportion of use and priority of the network to which the interface is connected.

8-
Click the "Start" button and then click the "Search" box. Type "cmd" in the box. Right-click on the command line icon that appears in the upper left pane and then click "Run as Administrator." On the command line, type "ipconfig /all" and press the "Enter" key. View the command line output and verify that the IP address, subnet mask and gateway IP address for each network adapter is different from the other network adapter.



Linux Course outline

Following are the Chapters that should must read and understand properly for Linux Students.  

Linux for Newbies 

  1. History of Linux
  2. Concept of free software, open source and GPL
  3. Installing RedHat Linux 5.x / CentOS 5.x / Fedora 8+
  4. Configuring the system for dual booting with other operating systems (eg. wintendo)
  5. Understanding kernel and kernel versions
  6. Understanding different Linux distributions and distribution specific version numbers
  7. How and where to look for help (Websites, Howtos, Mailing lists, Discussion Forums)
  8. Starting up and shutting down the system
  9. Working in command line interface and basic commands
  10. Using KDE and GNOME file managers for file management operations.
  11. The X window system (KDE and GNOME window managers)
  12. Using KDE desktop (including KDE control panel)
  13. Understanding devices : Floppies, cdrom and hard disks (formatting, mounting, etc)
  14. Configuring (mounting) Harddisks on other IDE / SATA channels for data copying
  15. Partitioning and formatting Harddisks
  16. Creating and managing users (a general overview)
  17. Working with files (creating and changing files,etc)
  18. Files and directory permissions (viewing and setting)
  19. Working with system information (GUI bases, and commands like lspci, etc)
  20. Configuring printer and printing files (CUPS)
  21. Configuring and using scanners (Xsane)
  22. Working with various text editors in command mode (vi, pico and emacs)
  23. File compression utilities (tar, gzip, bzip2, compress)
  24. Installing , removing and updating packages with RPM
  25. Installing software from source code tarballs (tar.gz)
  26. Using OpenOffice
  27. Games on Linux, configuring Sound and Video cards on Linux
  28. Using Internet (modem configuration & Internet account setup)
  29. Configuration of ethernet cards
  30. Configuration of Wireless Cards
  31. Email clients (KMAIL / Thunderbird/ Evolution)
  32. Configuration of POP+IMAP+SMTP accounts in e-Mail client software
  33. Configuring Hotmail email accounts on Linux
  34. Chat on IRC, MSN, Yahoo, Skype
  35. Listening to music CDs (MP3 etc, XMMS)
  36. Viewing video CDs (MPG, AVI, MOV, etc) (Mplayer, Xine, VLC Player)
  37. Writing / burning CDs with CD-writer K3b and Xcdroast (configuration, etc)
  38. Creating and using boot-disks (obsolete ?)
  39. Brief introduction to web publishing tools (Quanta, Velocity, etc)
  40. Implementing firewalls at user level
  41. Using secure copy for transferring files between Linux computers
  42. Connecting from a Linux pc to a windows PC to access shared files
  43. Recovering system and boot-problems using rescue CD and single user-mode
  44. Configuring Samba service.
  45. Connecting from a windows PC to a Linux PC to access files shared through Samba


 Linux for System Administrators
  1. Linux advance commands (including regular expressions, and related tools (sed, awk, perl)  
  2. Using telnet, secure shell and scp
  3. RSH, Rlogin, RExec
  4. SSH keys, Key based authentication, Password less logons, etc
  5. Understanding File System Layout (ext3)
  6. Locating and editing configuration files and scripts (/etc/init.d/*, /etc/rc.local)
  7. Networking basics (TCP/IP). Configuring network interfaces.
  8. Administrating user accounts and groups.
  9. System initialization scripts and run-levels
  10. Configuring selected services to run on system boot (chkconfig)
  11. Setting up servers / services: BIND (DNS), NFS, NIS, SAMBA, Sendmail, Postfix, Apache, Squid
  12. Monitoring and administrating log files (logrotate, cron)
  13. Monitoring system resources, using SNMP and MRTG
  14. System security, restricting access to network services
  15. Configuring / implementing firewalls
  16. Configuring IP Masquerading
  17. Making and using boot disks
  18. Enabling support for NTFS partitions
  19. Working in rescue and single user mode / securing single user mode
  20. Configuring, building and installing a custom kernel (kernel recompilation

    I hope it to be helpful for all.

How To Compile And Patch The Kernel In Ubuntu, The Easy Way (Using KernelCheck)