0

Is there any way to programmatically close IPv6 connections using similar approach to this one? There is no SetTcpv6Entry API. Sysinternals TCPView has this option disabled too... Hijacking TCP connection with WFP kernel driver and gracefully sending TCP reset (RST) seems too complex.

    MIB_TCPROW sKillConn;

    sKillConn.dwLocalAddr   = (DWORD)ulLocIP;
    sKillConn.dwLocalPort   = (DWORD)usLocalPort;
    sKillConn.dwRemoteAddr  = (DWORD)ulRemIP;
    sKillConn.dwRemotePort  = (DWORD)usRemPort;
    sKillConn.dwState = MIB_TCP_STATE_DELETE_TCB;

    DWORD dwRez = SetTcpEntry(&sKillConn);
    if(dwRez != NO_ERROR)
    {
        dwRez = ::GetLastError();
    '''
Empty Space
  • 743
  • 6
  • 17
dgrandm
  • 375
  • 3
  • 12
  • 1
    [Short answer - no](https://stackoverflow.com/questions/55620627/) – Remy Lebeau May 23 '20 at 05:21
  • bummer. Found a Nirsoft utility called cports, clone of TCPView, doesn't have this option grayed out but simply does not work on IPv6 connections... – dgrandm May 23 '20 at 05:28

0 Answers0