evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
10.79k stars 503 forks source link

Proxy Forward #738

Closed hamedsbt closed 1 year ago

hamedsbt commented 2 years ago

Many applications on Linux don't support the proxy option, such as Skype. Therefore, an option to forward its request to a specified proxy server is necessary.

Thank you!

gustavo-iniguez-goya commented 2 years ago

Hi @hamedsbt ,

This feature was already requested here #437 . I wrote a PoC some months ago, but it was a wasted of time, because we need to place a mark on every packet that the application sends. For UDP it could work (I only tested TCP connections), because we intercept udp_sendmsg syscall. But for TCP we need to intercept tcp_sendmsg/tcp_recvmsg in order to mark every packet, because right now we only intercept new connections.

On the other hand... I also wrote a PoC to intercept tcp_sendmsg/recvmsg to get statistics about amount of bytes sent by the applications. So I have a general idea on how this could work, and once one or the other feature is finsihed, it'll be easier to add the other one, but I need to glue all the pieces together, test it, and see if it works as expected.

Not directly related, but I also wrote some notes about this here: https://github.com/evilsocket/opensnitch/issues/667#issuecomment-1150931979

gustavo-iniguez-goya commented 1 year ago

closing as duplicated of #437. Let's keep discussing about this feature on #437