summaryrefslogtreecommitdiffhomepage
path: root/talpid-openvpn/src/process/openvpn.rs
AgeCommit message (Collapse)AuthorFilesLines
2024-02-19Fix redundant importsDavid Lönnhager1-1/+0
2024-01-05Run `cargo +nightly fmt`Sebastian Holmin1-2/+2
2024-01-03Allow app to use custom socks5 and shadwosocks proxiesJonathan1-12/+12
This PR has a couple of different purposes - Allow users to use socks5 local proxies with the CLI without having to be root nor use split-tunneling. This only works for OpenVPN. - Unify the types used by different proxy parts of the codebase, such as the Access Methods as well as some already existing OpenVPN proxy code. This PR changes the firewall on all desktop platforms as well as changes the routing table slightly on MacOS and Windows. On Linux the firewall code is modified to apply the appropriate firewall marks to all packages that go to a remote endpoint corresponding to the remote part of a local socks5 proxy. The firewall marks will allow the routing to be done without having to modify the routing table. On MacOS and Windows the routing table is modified to allow packages to go to that same endpoint to pass outside the VPN tunnel, it will additionally punch a hole in the firewall. The PR also migrates the settings file from version 7 to version 8 in order to properly and neatly unify Proxy related types. Finally it provides some slight extensions to the gRPC interface in order to allow for control over the custom proxy settings.
2023-10-12Update OpenVPN monitorDavid Lönnhager1-77/+64
2023-10-11Remove dependency on `duct`Markus Pettersson1-29/+54
Remove the dependency on `duct` from `talpid-openvpn`, since we can use `tokio` to spawn processes instead.
2023-10-11Remove dependency `is-terminal` from `talpid-openvpn`Markus Pettersson1-1/+1
`std::io::IsTerminal` has been since Rust `1.70`, which allows us to migrate away from `is_terminal::IsTerminal`.
2023-07-07Improve documentation on OpenVpnProcHandleLinus Färnstrand1-6/+8
2023-06-28Silence OpenVPN 'replay attack' warnings.Markus Pettersson1-0/+1
Make the logs less verbose and easier to read by silencing 'replay attack' warnings. There are lots of false positives showing up in regular UDP connections, and since we don’t act on potential replays or warn our users (it’s pretty hidden in the logs) they don’t really serve much purpose to be there. The warning should not pose any threat to the user.
2023-02-22Use netlink for openvpnDavid Lönnhager1-13/+0
2023-02-01Replace atty with is-terminal in talpid-openvpnLinus Färnstrand1-3/+4
2022-11-07Split up talpid-coreEmīls Piņķis1-0/+485