# Manipulate TCP header

**URL:** <https://community.f5.com/t/manipulate-tcp-header/59240>\
**Category:** Technical Forums\
**Tags:** irules, dev, devops, application-delivery\
**Created:** [January 7, 2007, 12:45pm UTC](https://community.f5.com/t/manipulate-tcp-header/59240 "2007-01-07T12:45:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiangyang\_zhang](https://avatars.discourse-cdn.com/v4/letter/x/65b543/32.png) [@xiangyang\_zhang](https://community.f5.com/u/xiangyang_zhang)\
**Post date:** [January 7, 2007, 12:45pm UTC](https://community.f5.com/t/manipulate-tcp-header/59240/1 "2007-01-07T12:45:07Z")

</div>

Due to the existing bug, the RST from client always causes trouble to server. Then I would like to block RST in BIGIP. However, I cannot find any iRule commands of manipluating TCP header. Any workaround ?

Thanks in advance !

XY zhang

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [January 8, 2007, 10:02am UTC](https://community.f5.com/t/manipulate-tcp-header/59240/2 "2007-01-08T10:02:20Z")

</div>

There aren’t any existing functions to get or change TCP flags. Here are a couple of related posts:

Can I capture TCP Reset in iRules?

[Click here](http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=2470)

Capturing TCP resets (part deux)

[Click here](http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=9609)

Aaron

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [January 8, 2007, 12:12pm UTC](https://community.f5.com/t/manipulate-tcp-header/59240/3 "2007-01-08T12:12:33Z")

</div>

By the way, I suppose in theory you could do this manually by collecting the TCP packet and using binary scan to get/change the data by offsets. Paul posted a good example of using binary scan to drop specific packets ([Click here](http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=11642))

Aaron

---

<div class="post-metadata">

**Author:** ![xiangyang\_zhang](https://avatars.discourse-cdn.com/v4/letter/x/65b543/32.png) [@xiangyang\_zhang](https://community.f5.com/u/xiangyang_zhang)\
**Post date:** [January 8, 2007, 9:20pm UTC](https://community.f5.com/t/manipulate-tcp-header/59240/4 "2007-01-08T21:20:59Z")

</div>

Many thanks for information. It seems Paul post is talking about processing TCP load too.

XY Zhang
