Saturday, October 24, 2015

MPLS advantages & disadvantages

MPLS advantages



Why are companies using MPLS? Here are some MPLS advantages:

Outsourced routing
 With MPLS, the carrier handles WAN routing. This means users don't have to, which makes MPLS operationally simpler than managing a large routed network. This means, in turn, that companies can keep fewer WAN/router engineers on staff.
Any-to-any connectivity
 Applications, like voice and video, feature any-to-any traffic patterns. MPLS makes it easy to interconnect sites with each other to handle these types of traffic patterns.
Built-in support for Quality of Service (QoS)
. Virtually all commercial MPLS services feature multiple levels of QoS, meaning that users can specify latency, jitter and packet loss minimum thresholds for each type of traffic (voice, video, 
email, bulk file transfers, etc.)
 This means that, for example, the MPLS network treats latency-sensitive traffic, like voice and video, preferentially over less-sensitive traffic.
Service-level agreements (SLAs)
with delivery guarantees. Like most commercial-caliber services, MPLS comes with guarantees from the carrier when it comes to installation times and availability. That's in contrast to consumer-grade Internet, which is typically offered on a best-effort basis.


Where in the WAN is MPLS used?

How are companies using MPLS? Unsurprisingly, given these MPLS advantages, the most common use for MPLS is to connect branch offices to data centers and interconnect branch offices to each other. Sixty-seven percent of benchmark participants use MPLS for this purpose. Just over half -- 52% -- are using it to interconnect data centers, and 20% say they're using it to connect remote sites.


MPLS advantages compared to WAN connectivity alternatives

As noted, MPLS is great at -- and widely used for -- interconnecting data centers and branches, and branches to each other. That level of connectivity comprises Tier 2 in the WAN architecture. What about the other two tiers?

For Tier 1 -- interconnnecting data centers -- the most common alternative to MPLS is carrier Ethernet. Carrier Ethernet is an umbrella term that covers point-to-point Ethernet, metro Ethernet, and any-to-any topologies like virtual private LAN service (VPLS). The common denominator to all these services is that they operate at Layer 2 -- where the enterprise handles all routing.

The big advantage to carrier Ethernet services is that the bandwidth is low cost (relative to the data rate) and the services are easy to set up. The downside is that carrier Ethernet services don't scale to the same order of magnitude of sites as MPLS. Because MPLS is a routed network, it can support tens of thousands of sites (and more). Carrier Ethernet, in contrast, is effectively a giant bridged network, which can't scale easily beyond a few hundred sites. So, for a small set of high-bandwidth sites like data centers, carrier Ethernet may be a better fit than MPLS. And, in fact, the most common use for Ethernet is in this Tier 1 scenario: interconnecting data centers.

At the opposite end of the WAN there's Tier 3: connecting to remote and small offices. Most companies already use Internet services to connect at least some of their remote and small offices to the WAN. Sometimes these are business-caliber Internet services (with SLAs); other times they're consumer-grade "best effort" offerings. To ensure privacy, companies may deploy encryption, including secure socket layer (SSL), IPsec, or proprietary application-layer security.

The big benefits the Internet confers over MPLS in this Tier-3 scenario are cost and ubiquity. Internet services are typically considerably cheaper than MPLS (though commercial-grade services, with SLAs, can approach MPLS in cost). And it's rare to find a location that doesn't feature at least some flavor of Internet access.

The downside? Unreliability. Consumer-grade Internet services, in particular, can be spotty, both in service quality (where the service is working, but poorly) or outright availability (where there's an outage).

So for locations where best-effort services is good enough, QoS isn't required, and ubiquity trumps reliability, Internet services make a good alternative.

The bottom line? MPLS advantages include the connectivity of data centers to branch offices, or branches to each other. For point-to-point links requiring a lot of bandwidth, or remote offices where cheap connectivity is the most important factor, Carrier Ethernet and Internet services, respectively, are solid alternatives.


SEE MORE

Thursday, August 20, 2015

How To Install Axigen Mail Server on Windows server

step1==>DOWNLOAD APP
you need primary domain :Active Directory , DNS (AAA,MX)
***if you setup AXIGEN on internet :ip static DNS  ,ACD , FIREWALL recommended(iptables)
***you can use dynamic ip for AXIGEN server but use DDNS 

step2==>





TYPE: http://host:9000
USER:admin
PASS:admin password (you typed )
SAMPlE:





GOOD LUCK 




Wednesday, August 19, 2015

How To Prevent DDOS Attack By PHP




According the PHP part of the question;
Although I don't rely on PHP for this, it could be implemented but needs to consider all these
possiblities or more;

Attacker may change IP for each request
Attacker may pass parameter(s) to URI that target site doesn't care these parameter(s)
Attacker may restart the session before expiry ...
Simple pseudo;

<?php                                                                        
// Assuming session is already started                      
$uri = md5($_SERVER['REQUEST_URI']);          
$exp = 3; // 3 seconds                                              
$hash = $uri .'|'. time();                                            
if (!isset($_SESSION['ddos'])) {                              
    $_SESSION['ddos'] = $hash;                              
                                                                                   
}                                                                              
                                                                                   
list($_uri, $_exp) = explode('|', $_SESSION['ddos']);
if ($_uri == $uri && time() - $_exp < $exp) {
    header('HTTP/1.1 503 Service Unavailable');
    // die('Easy!');
    die;
}

// Save last request
$_SESSION['ddos'] = $hash;
?>

BY qeremy
SEE MORE

Tuesday, August 11, 2015

Allow Sendmail or Postfix Traffic



#iptables -A INPUT -i eth0 -p tcp --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
#iptables -A OUTPUT -o eth0 -p tcp --sport 25 -m state --state ESTABLISHED -j ACCEPT      


How to define a static route for an external IP address on iptables

I'm putting a new router on our network to help manage our private network connections and to better control routing to the outside. I've decided to simplify this question by removing references to a second private network on our router (but please be aware that there are reasons for this question so the answer is not to leave the old router the default gateway).

I have the following routing in my iptables on our router:



# Allow established connections, and those !not! coming from the public interface
# eth0 = public interface
# eth1 = private interface #1 (129.2.2.0/25)
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW ! -i eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

# Allow outgoing connections from the private interface
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

# Masquerade (NAT)
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

# Don't forward any other traffic from the public to the private
iptables -A FORWARD -i eth0 -o eth1 -j REJECT

This configuration means that users will be forwarded through a modem/router that has a public address - this is all well and good for most purposes, and in the main it doesn't matter that all computers are hidden behind the one public IP.

However, some users need to be able to access a proxy at 192.111.222.111:8080 - and the proxy needs to identify this traffic as coming through a gateway at 129.2.2.126 (the old router) - it won't respond otherwise.

I tried adding a static route on our router with:


route add -host 192.111.222.111 gw 129.2.2.126 dev eth1

I can successfully ping 192.111.222.111 from the router. When I trace the route, it lists the 129.2.2.126 gateway, but I just get * on each of the following hops (I think this makes sense since this is just a web-proxy and requires authentication).

When I try to ping this address from a host on the 129.2.2.0/25 network it fails.

Should I do this in the iptables chain instead? How would I configure this routing?


Here is the interfaces configuration for the router:


auto eth0
iface eth0 inet static
    address     150.1.2.2
    netmask     255.255.255.248
    gateway     150.2.2.1

auto eth1
iface eth1 inet static
    address     129.2.2.125
    netmask     255.255.255.128
And here is the routing table (without my static route added):

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         eth1202.sa.adsl 0.0.0.0         UG    100    0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth1
129.2.2.0       *               255.255.255.128 U     0      0        0 eth1


To restate - I want traffic from 129.2.2.7 (for example) to now route through our router (129.2.2.125). But this router needs to then forward 8080 requests with the destination of 192.111.222.111 - which is somewhere the other side of the old router (129.2.2.126 - which is not manageable by us).

SEE MORE

5 ways to overcome appetite

1. Eat breakfast

We often hear breakfast is the most important meal of the day because it provides us with the energy and nutrients needed to improve our concentration at home, work, or school. Breakfast is also important in helping us maintain a healthy body weight and stops us from binge eating on snack foods high in fat and sugar long before it’s time for lunch. A 2013 study found adults who skip breakfast tend to have more body weight, hypertension, insulin resistance, and elevated fasting lipid concentrations. This leaves people prone to overeating later in the day and increases their risk of

developing obesity-related diseases.

2. Snack on Healthy Foods

When the uncontrollable hunger pangs begin to set in, it’s important to consume healthy snacks that can help us avoid food cravings. Consuming healthy snacks like “fruits, vegetables, lean proteins (e.g. chicken breast, fish) are great, because they contain lots of vitamins, minerals, and other nutrients that our body can use in a healthy way,” said Dr. Lindsey Hoskins, a psychologist in Bethesda, Md., to Medical Daily in an email. She suggests replacing sugary drinks like juices and diet coke with water because it's a great way to feel full without consuming as many calories.

The more we eat addictive foods such as sugars, salts, fats, and carbohydrates, the more we want them. Consuming healthy fats can decrease sugars slowly to help avoid major cravings and prevent the body from experiencing rapid fluctuations in blood sugar levels. Hoskins believes if we train ourselves to enjoy healthier foods that aren’t as addictive, this can be an essential tool to cut down on binge eating.

3. Use Smaller Plates

While this may be playing tricks on your mind, it’s for a good cause — your health. Eating on smaller plates can help curb your appetite because, quite frankly, we all know the larger the plate, the more likely we are to overeat. A 2006 study found children and adults serve themselves based on a size-contrast illusion, meaning they serve and consume more cereal when given a larger plate compared to those given a smaller plate. Plate and spoon size on the serving and consumption of ice cream was also evaluated.

At home, portions are a key factor for stopping the family from overeating at family dinners. “Plate accordingly... don't make dinner 'a la carte’” Dr. Dale Fernandez, a chiropractor at the Back to Wellness Center in Los Angeles, Calif., told Medical Daily in an email. Rather, Fernandez said, place food items on everyone’s plates in the kitchen in appropriate portions. All the serving dishes should be kept in the kitchen and not on the table, as many of us do. “Seconds are never necessary,” he said.

4. Exercise

Physical activity can make us work up a sweat and even reduce our reaction to food signals post workout. Exercise is a great way to elevate our mood, help get our mind off food, and alleviate any stress. A 2012 study found exercise significantly reduced neuronal response to food, which could be detected in different areas of the brain. It also led to a significant decrease in activation in the parts of the brain that are associated with food craving, reducing incentive motivation, and reduced anticipation for food. Reduce your hunger pangs by getting a moderate amount of physical activity every day.

5. Mindful Eating

Overeating is a struggle that can be overcome with mindful eating techniques. Mindful eating includes pacing ourselves at meals and avoiding doing something distracting while we eat, such as sitting in front of the television or working on the computer. These distractions will interfere with our ability to perceive portion size, which can actually cause us to overeat. However, Kristen Smith, dietician in Atlanta, Ga., told Medical Daily in an email, those who eat fast and hardly chew their food don’t allow for the brain to recognize the flavor, nor give the food enough time to reach the stomach, and send a signal that it’s full. “I recommend to spend at least 20 minutes per meal and chew food to an applesauce consistency prior to swallowing,” Smith said.


SEE MORE