jpillora / chisel

A fast TCP/UDP tunnel over HTTP
MIT License
12.36k stars 1.32k forks source link

Reverse example #519

Open sohrabp72 opened 2 weeks ago

sohrabp72 commented 2 weeks ago

Whether I'm confused or lack of clear docs, this is the scenario: my PC is behind a restricted network and I have 2 VPS publicly exposed to the internet. PC can access VPS A, not B. PC should access services on B. Accessing A to B is restricted through the firewall, so reverse is needed. How to configure the chisel between A and B to start a reverse tunnel from B to A to expose a UDP port on B from A VPS my PC connects to a UDP port on A. B is connected to A in a reverse mode. Received UDP packet on A should be delivered to a UDP port on B. B should send a TCP SYN packet to A. A can't be the initiator of the TCP connection.