View Single Post
  #1   (View Single Post)  
Old 3rd August 2010
jcdenton jcdenton is offline
Port Guard
 
Join Date: Aug 2010
Posts: 11
Default pf : how to ignore TCP RST packets ?

Hello, I am new to this forum and also to OpenBSD.

I have installed OpenBSD 4.7. I am currently in China and the Great Firewall insert some RST packets to close connections when a forbidden token is detected. I read in hxxp://www.cl.cam.ac.uk/~rnc1/ignoring.pdf that if both parties ignore RST packets, the Great Firewall of China become pretty useless and that I could actually access to some blocked content (provided the remote server also drop rst packets).

The two lines given in example in "ignoring.pdf" are for ipfw and iptables, but OpenBSD uses pf.

So I would like to know if I translated correctly the ipfw line into the pf syntax. I tried to follow the instructions in the FAQ of pf filters (hxxp://www.openbsd.org/faq/pf/filter.html) :

The original ipfw line :
Code:
ipfw add 1000 drop tcp from any to me tcpflags rst in
My line in /etc/pf.conf :
Code:
block drop proto tcp from any to any flags R/R
Thanks for any help !
(and sorry for the hxxp links, I have less than 5 post in this forum)
Reply With Quote