redsocks + iptables в Kali linux

Discussion in 'Linux, Freebsd, *nix' started by DAUN, 14 Jun 2018.

  1. DAUN

    DAUN Member

    Joined:
    2 Sep 2010
    Messages:
    117
    Likes Received:
    37
    Reputations:
    5
    Dell
     
    #1 DAUN, 14 Jun 2018
    Last edited: 17 Jun 2018
  2. DmitryU

    DmitryU Member

    Joined:
    20 Jan 2012
    Messages:
    68
    Likes Received:
    56
    Reputations:
    1
    Так redsocks сам прописывает нужные ему правила iptables

    если для wlan этого не достаточно, добавить что-то вроде
    Code:
    iptables -t nat -A PREROUTING -i wlan0 -p tcp --syn -j REDIRECT --to-ports 12345
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
     
    DAUN likes this.
Loading...