May 12, 2022 at 5:00 pm #12243
hello, i have a wireguard VPN set up with algo and i’m trying to do application based split tunneling. i found out about wiresock, which looked like a perfect solution for my problems, but i’m having trouble setting it up.
i have started by adding the “AllowedApps = firefox” to the config file, then launched wiresock. when the service is up, firefox no longer opens pages, showing “server not found”. what went wrong? the same config works properly on the official wireguard client. log: https://pastebin.com/qQmZ9wZH
additionally, some questions:
– can i specify paths to programs in the “AllowedApps” variable, instead of only providing process names?
– does this app expose a proxy i can use as a safety measure to prevent the browser from connecting anywhere in case the VPN connection is down?
thank you 🙂May 12, 2022 at 9:20 pm #12244
Hello, could you please provide the generated PCAP files in addition to the application log? Also, could you check if using
-lacmakes a difference? With the latter option, Wiresock works closer to the stock client. One more question, do you have DNS specified in the config file (‘server not found’ points to DNS problem)?
Currently, only the process name is checked, the path is ignored. It’s easy to change the check to a fully qualified pathname, but in the current implementation with a config file, this can lead to unwanted collisions. I plan to add an advanced configuration that will allow this.
You definitely read in my mind! I really was considering adding a proxy (as a dedicated process) that would be connected and intercepted by Wiresock. I implemented a similar thing for one side project.May 12, 2022 at 10:04 pm #12245
sorry, but if PCAP files are what I think they are (captured network traffic), are they safe to share here? how can i sent them to you privately?
using -lac ends up with this in the logs:
[TUN]: Failed to rename WireSock virtual adapter connection! lasterror: 0
[TUN]: WireSock virtual adapter is not available!
[MGR]: Tunnel has failed to start
[TUN]: cancel_notify_ip_interface_change has failed, lasterror: 6
i do have dns servers specified in the config file, but it’s probably not something dns related, because i cannot load sites using direct IP addresses either (testing on a site that does load via IP otherwise).
PS: this anti-vpn mechanism of this site is so getting in my way right now 🙁May 12, 2022 at 10:22 pm #12246
-lacoptions are caused by insufficient user privileges, please note that Wiresock should be run as administrator.
You can email PCAP files directly to email@example.com. We can continue to review the issue privately, after which I will post the final solution here. Unfortunately, without anti-spam, I would have to delete too many users/spam daily…May 12, 2022 at 10:25 pm #12247
i figured it could be a permission problem, but running wiresock from an elevated command prompt results in the same error.
i’ll send an e-mail in just a minute, thanks 🙂May 13, 2022 at 11:52 am #12248
Please check if you have received my reply email.May 13, 2022 at 5:53 pm #12249
The problem was parsing a configuration that expected the Address parameter to have a specified netmask, e.g.
Address = 10.10.0.4/32, 2001:dc8:a260::4/128while in your configuration the Address parameter looked like
Address = 10.10.0.4 , 2001:dc8:a260::4.
I have fixed the configuration parser in 1.2.8. Please give it a try.May 13, 2022 at 6:58 pm #12250
brilliant, it works now! thank you <3
somewhat of a relief it was actually a bug and not just me misconfiguring something as I usually happen to do – but glad I helped to find and squash a bug 🙂
the proxy thing is now the only feature i’m missing in this “private tunnel” setup, gotta be careful now since i assume if the WG connection fails for any kind of reason, it can leak my “true” IP at any time without warning, which is kind of spooky. once that’s sorted out, i can wave my commercial VPN goodbye 🙂May 13, 2022 at 7:07 pm #12251
sorry for a double post but forgot to ask, maybe a silly question, but does wiresock require the official wireguard client to be installed in order to work properly?May 13, 2022 at 7:19 pm #12252
- You must be logged in to reply to this topic.