zhxie / pcap2socks

Redirect traffic to SOCKS proxy with pcap.
MIT License
631 stars 76 forks source link

How to use the application #16

Closed fsheidaiee closed 3 years ago

fsheidaiee commented 3 years ago

Hi I have xray core on socks5 port 10808 how I can use the app? I didnt understand from the usage part of your docs. thanks

zhxie commented 3 years ago

You may launch pcap2socks with

pcap2socks -s 10.10.0.2 -p 10.10.0.1 -d localhost:10808

and configure your proxied device's network settings by following the prompt message displayed in the screen like

┌───────────────────────────┐
│ IP Address      10.10.0.2 │
│ Mask        255.255.255.0 │
│ Gateway         10.10.0.1 │
│───────────────────────────│
│ MTU                <=1500 │
└───────────────────────────┘

In addition, pcap2socks is a proxy used to redirect other devices' traffic in the local area network, such as Nintendo Switch & PlayStation, and does not support proxy local traffic.