Today I continued my work to fully understand MPF (Modular Policy Framework) and found a new cool feature in ASA 8.2: TCP State Bypass. By bypassing TCP state machine for certain traffic you can get around problems with asymettricrouting. In my home lab I built this scenario:
On my inside network I have this client host who wants to access the FTP-server on outside. However, there are multiple links between the networks and the routing seems to be assymmetric. My inside hosts outbound traffic leaves thru the router but the return traffic goes thru the firewall. What happens is that the ASA sees the SYN ACK return packet but havent seen the preceeding SYN-packet. The result is that it blocks the packet:
%ASA-2-106001: Inbound TCP connection denied from 192.168.1.50/21 to 10.0.11.100/59677 flags SYN ACK on interface outside
%ASA-2-106001: Inbound TCP connection denied from 192.168.1.50/21 to 10.0.11.100/59677 flags SYN ACK on interface outside
%ASA-2-106001: Inbound TCP connection denied from 192.168.1.50/21 to 10.0.11.100/59677 flags SYN ACK on interface outside
She solution to this is to configure a policy-map that makes an exception to this state-machine-thing and allows that return-traffic anyway. Lets rock!
First, make sure that the inbound traffic gets thru. Doing state-bypass doesnt mean that acls will be bypassed. Since this is return traffic we need to permit permit with the source-port being 21.
access-list acl_outside extended permit tcp host 192.168.1.50 eq ftp any
access-group acl_outside in interface outside
!
Next, define which traffic to do state-bypassing with. It happens to be the same layout as the acl above.
access-list ACL-STATE-BYPASS extended permit tcp host 192.168.1.50 eq ftp any
Now, create a class-map, give it a fancy name and match the access-list above…
class-map state-bypass
match access-list ACL-STATE-BYPASS
Next, a policy-map which references the class-map above and sets the tcp-state-bypass advanced option.
policy-map POLICY-OUTSIDE
class state-bypass
set connection advanced-options tcp-state-bypass
Finally. Apply it. Since its all about inbound traffic it needs to be applied to outside interface. Remember, if you already hava an service-policy for that interface, addit to that existing policy…
service-policy POLICY-OUTSIDE interface outside
Now, when trying to access my outside FTP-server from my inside client it works. I get this in the ASA-log:
%ASA-6-302303: Built TCP state-bypass connection 47 from outside:192.168.1.50/21 (192.168.1.50/21) to inside:10.0.11.100/37781 (10.0.11.100 /37781)
As you can see I get hitcounts in both access-lists:
fw1# sh access-list acl_outside
access-list acl_outside; 1 elements; name hash: 0xdcd74233
access-list acl_outside line 1 extended permit tcp host 192.168.1.50 eq ftp any (hitcnt=1) 0x6863abc6
fw1# sh access-list ACL-STATE-BYPASS
access-list ACL-STATE-BYPASS; 1 elements; name hash: 0xbe9fc05e
access-list ACL-STATE-BYPASS line 1 extended permit tcp host 192.168.1.50 eq ftp any (hitcnt=1) 0xad18b614
fw1#
Voila! Or “Vålla” as we say in Sweden!

{ 38 comments }
xanax xr suhtv ultram for pain control 8DD buy cialis yeqh cialis sales >:-((( cheap generic cialis cvxod
genericviagra
)) long term effects of xanax rwk depakote %-( buy xanax evgdh
xanax 8-]] tramadol hcl >:-]]] cheap prices on cialis 565673 generic cialis swer
generic cialis 444 buy depakote 8-DDD xanax >:-DDD generic ultram tcwd cialis and zoloft delayed ejaculation alternatives 8-]]]
generic viagra ntds ultram 5202 order depakote %DD buy valium online cheap %-DDD xanax prescriptions %DDD
quick order valium %((( xanax xr =(( viagra %[[ tramadol hcl nsrhbn
gulf life insurance 4432 super slots casino 486 home insurance coverage 07422 cheap auto insurance aogzj car insurence 518311 slots 513066
tramadol without prescription – tramadol without prescription buy over the counter, buy tramadol without prescription on line without a prescription.
http://pillsreview.net/i/tramadol/1_glam.png
tra tramadol hcl cheapest proffessional, good discount, without prescription. generic cheap price for tramadol without prescription in Michigan .
acomplia 939 buy accutane
cialis 38876 ambien sleeping pill =( discount xanax 326495
propecia srwuy cialis and zoloft delayed ejaculation alternatives :[[ accutane dlkmqi accutane bfek what is valium %DDD xanax online
I am havingt a harf yime reading bloglg.vkitsofta.nu inn SeaMonkey 6..6, I just figuerd I would let you know!!
greew vides
I cwn’t read blogg.kvistofta.nu in Safari 9.4, ust figured IO would tell you aboug it
vdeiols ojpine
I am haging a tough time seeing blogg.kvistofta.nu in Firefox 6.3, I just thougjt I miigyht tell you aboiut it?
video sitess
retin :-OO accutane 144454 phentermine online %P xanax >:((
cheap propecia generic 904 accutane
)) cialis generic 259817 ambien >:OOO xanax >:-)))
Hello! dcecead interesting dcecead site!
Very nice site! cheap viagra
Very nice site! [url=http://apxoiey.com/qoxsqt/2.html]cheap cialis[/url]
Very nice site!
Very nice site! cheap viagra , cheap viagra , cheap viagra , cheap viagra , cheap viagra ,
acomplia erw discounted phentermine dsj cialis :OO buy tramadol us pharmacies 585424 actos aciphex aciphex aciphex imitrex %-[[[
acomplia diet pill fbqp plavix and aciphex 680906 tramadol >:]] cheap online aciphex 1692 ambien 8-OO
propecia qagqbt phentermine vjpksa acomplia >:DD accutane online slwchq ambien sleep eating =-DDD
comment3:& hydrocodone lol ohngzbu
That is amazingVS [url=http://www.d3kicks.com/forum/read.php?1,30242&q3=1]viagra[/url] xcioyat
comment4; buy viagra bhatpex
your comment1;; diazepam gpvohad
comments!! [url="http://www.d3kicks.com/forum/read.php?1,30240&q3=1"]cheap fioricet[/url] vntqwlr
I am having a toughh time reafing blogg.kvistofvta.nu in Opera 1.7, just figured I might tell yu about it?
Hello!
tramadol , phentermine , xanax , viagra , cialis ,
comment1!!! cheapest cialis
iouawyb
You’re just awesome* [url=http://www.d3kicks.com/forum/read.php?1,30258&q3=2]cheap propecia[/url] jpvbxms
your comments5:+ fioricet kdwbyat
Hello,- [url="http://www.d3kicks.com/forum/read.php?1,30239&q3=2"]buy diazepam[/url] dfyekps
Keep up the good work, I like your writing.
comment 5:VS buy fioricet
)) cvbgmsu
I answer you… [url=http://www.d3kicks.com/forum/read.php?1,30238&q3=3]buy hydrocodone[/url] lexhzpr
comment 3:$ cheapest cialis lekqzbu
Comments on this entry are closed.