Skip to content

interactsh-server behind nginx reverse proxy #749

Answered by geeknik
MMquant asked this question in Q&A
Discussion options

You must be logged in to vote

Possible solution here:

stream {
    server {
        listen 25;
        proxy_bind $remote_addr transparent;
        proxy_pass 127.0.0.1:35;
    }
}

sysctl net.ipv4.ip_forward=1

iptables -t mangle -A PREROUTING -p tcp --dport 25 -j MARK --set-mark 1

Caveats:

  • IP transparency requires root privileges and system-level network configuration
  • Running interactsh-server directly without a reverse proxy provides the best IP tracking capabilities

Good luck!

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MMquant
Comment options

Comment options

You must be logged in to vote
1 reply
@MMquant
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dwisiswant0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants