2

I want to stop sending RST to specific IP(192.168.56.101) on Mac OS X.

I enter this command. But it still send RST.

sudo ipfw add drop tcp from 192.168.56.1 to 192.168.56.101 in tcpflags rst

What do I change this command?

4
  • Unfortunately you don't give any background info, but it seems you are trying to solve the wrong problem. If the system sends a RST packet, the socket which was used will be closed, thus allow no further communication. IMHO it would be better to check the application for errors and see why it sends an RST segment.
    – mtak
    Aug 18, 2014 at 9:23
  • 2
    I want not to send rst packet when system receive syn ack packet.
    – uyreee
    Aug 18, 2014 at 9:36
  • So why not prevent the SYN/ACK packet from coming into the system at all? This is basic configuration on all firewalls.
    – mtak
    Aug 18, 2014 at 11:31
  • 1
    I try manual 3way handshake with scapy. System send rst packet before ack packet is sent.
    – uyreee
    Aug 18, 2014 at 15:17

1 Answer 1

2

Thx for your clues.Finally,I got there.

first.add this line to /etc/pf.conf

block drop proto tcp from 172.31.82.98 to 103.214.68.23 flags R/R

then load the pf rules with

sudo pfctl -f /etc/pf.conf

then enable the pf rules with

sudo pfctl -e

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .