rofl0r / proxychains-ng

proxychains ng (new generation) - a preloader which hooks calls to sockets in dynamically linked programs and redirects it through one or more socks/http proxies. continuation of the unmaintained proxychains project. the sf.net page is currently not updated, use releases from github release page instead.
http://sourceforge.net/projects/proxychains-ng/files
GNU General Public License v2.0
9.81k stars 1.08k forks source link

Fix or exclude SMTP #358

Open BuileaTM opened 3 years ago

BuileaTM commented 3 years ago

I have a program that talks both HTTPS and SMTP.

The HTTPS phase goes fine in Proxychains but after this it hangs on the SMTP request (forever / no time-out / no error)

[proxychains] Strict chain ... 111.22.33.44:1080 ... 55.66.77.88:587 ... OK

The most important parts of my config (excluding port 587 did not help):

## Exclude connections to ANYwhere with port 587
localnet 0.0.0.0:587/0.0.0.0

[ProxyList]
socks5 11.22.33.44 1080
socks5 99.99.99.99 1080

*IP addresses are of course fictitious

rofl0r commented 3 years ago

i see no reason why smtp shouldn't work (actually it does for me). you can probably debug what happens when you run a socks5 proxy on localhost, connect through that and check the traffic in wireshark (lo interface and/or external interface). my guess would be that the proxy you use has a firewall rule to block smtp traffic so it can't be used for mail spamming.

the localnet exclusion not working as described is a different issue/bug, which i'll investigate now.

rofl0r commented 3 years ago

figured out the issue with localnet not working, see commit message above ^