Showing posts with label Cisco. Show all posts
Showing posts with label Cisco. Show all posts

Sunday, February 1, 2015

ASA Hair-pinning

What is hair-pinning?

Hair-pinning is when ASA appliance is receiving traffic on an interface and immediately sending traffic back out the same interface.

This feature could be enabled by using the following command:

ASA(config)# same-security-traffic permit intra-interface

Encrypted traffic can be redirected through same interface as encrypted and as a clear traffic - feature from ASA software version 7.2(1). Hair-pinning is useful for many different scenarios.

Let's consider following scenario.


R1 which is our test host is connected to ASA inside interface and same ASA interface is attached to R2. I know, looks a bit weird, but this is just simple scenario for the feature test.

ASA has route for network 172.16.2.0 over the router R2 (172.16.1.100)

ASA(config)# route inside 172.16.2.0 255.255.255.0 172.16.1.100

R1 has ASA 172.16.1.1 inside interface configured as default gateway.


Wednesday, January 14, 2015

GRE tunnel and policy to clear DF bit on Cisco Router

Tunneling provides a mechanism to transport packets of one protocol within another protocol. Generic Routing Encapsulation (GRE) is one of the available tunneling mechanisms which uses IP as the transport protocol and can be used for carrying many different protocols. Basically when you configure a tunnel, it is like you create a simple point-to-point connection between the two devices.


Let's consider following scenario with Cisco routers.



R1#show running-config interface tunnel 0
Building configuration...

Current configuration : 140 bytes
!
interface Tunnel0
 ip address 192.168.99.1 255.255.255.0
 keepalive 300 3
 tunnel source 192.168.1.1
 tunnel destination 192.168.2.3
end

R3#show running-config interface tunnel 0
Building configuration...

Current configuration : 140 bytes
!
interface Tunnel0
 ip address 192.168.99.3 255.255.255.0
 keepalive 300 3
 tunnel source 192.168.2.3
 tunnel destination 192.168.1.1

end