Hello. I'm using chaos calmer 15.05. Installed service without any problem, but it did not worked. Inspecting logs, I found, where was no "ip" command in my system. So I installed it via "opkg install ip". However, upon vpn-bypass reload, my router stopped accepting any traffic on LAN port, and refused any connections to WEB interface and SSH (Internet still worked, though), so I had to enter in SAFE mode and disable vpn-bypass service again. What did went wrong here? Thank you.
UPDATE: I set "Local IP Addresses to Bypass" to 192.168.1.6 (it was 192.168.1.6/24), and started service again, via WEB interface (not SSH console) and now everything seems to work fine. Thank you for this handy service.
Hello. Thanks for your work!
I seem to be struggling with domain based exclusions. It seemed to be working a few days back, but now it's not. I went back to that config from a couple of days ago (I saved that config right after I installed your mod, and had tested it) but to no avail. Same issue now.
IP exclusions work fine, so other than domains, it seems to be working. I've stripped all my domains but one for testing ( /whatismyipaddress.com/vpnbypass ). Still no luck.
Ah, understood. Between my previous post and now, I ended up reloading everything from scratch on the router. Seems to be working well at the moment.
So to confirm, I should be issuing my clients my router's IP (and only the router's IP) for DNS?
I indeed have both:
hardcoded DNS (other than router’s IP) setting in the client
dhcp options pointing clients to DNS (other than router’s IP) server
Appreciate the feedback and time spent. You've gone above and beyond with this much needed mod. I'll donate for your efforts if you have a place to send. No strings attached.
UPDATE:
After repeating my setup, changing configs and installing mods, restarting each time and checking the proper functioning of bypass, I've narrowed it down to Adblock. Once I installed and enabled adblock w/ luci-app, and then restarted the router, I'm back to where I was before.(somewhat). Removing the mods returned functionality to normal.
Dunno what to think.
I personally use the simple-adblock package instead, but any ad-blocking running on the router shouldn't affect VPNBypass (or vice versa). If dnsmasq on your server is used by your clients to resolve addresses, then both vpnbypass and vpn-policy-routing domain-based policies should work just fine.
PS. I'm not sure if there's a way to do it yet, but please donate to the OpenWrt project instead.
Donation to Software in the Public Interest, Inc. (for OpenWRT)
Completed
-$50.00 USD
Alright, while you already contribute to OpenWRT with code, you've now donated 50 bucks too. Thanks Stan.
I was able to narrow down that adblock in itself wasn't the issue, as you thought. It was one of the lists I was subscribed to within adblock that was causing my ip tests to fail. ipset save was reporting ips fine. So I don't really know what caused my initials failures that brought be to this thread (blank ipset save), but now that I've reloaded everything, it's all good and running strong.
I will note, that your custom repo instructions initially 'broke' my R7800. It has something to do with libustream-mbedtls.
That's it. Thanks again for your responses and dev. Best.
The dependency in the libustream libraries are not easily resolved, but I will update my guide to check if there's a libustream library already installed to not install the libustream-mbedtls.
I've set up my router-modem into "Modem only" mode, enabled the VPN and I wanted to exclude Plex (which is in the same room as the router). Found your package, (thank you!!) installed.. but unfortunately my external IP isn't changing.
I've left 3200 as port, added a client as testing (the laptop I'm typing on), enabled the service and tried whatsmyip: the result with or without enabling VPNBypass is ideantical, the IP is always the one on the other end of the VPN.
Can you point me in the right direction? Is there any log I could check to understand what's going on? Do I need to add any rule to my firewall or it should work out of the box?
The GL-inet version of B1300 firmware is pretty heavily customized. Does the vpnbypass start without errors?
Also, post (or PM me) the content of the following files from your router:
/etc/config/dhcp
/etc/config/firewall
/etc/config/upnpd
/etc/config/vpnbypass
The GL.iNet GL-B1300 is supported in master (snapshots) for about two months by now, it would probably be a better idea to install one of those (the usual caveats of snapshots and luci not being preinstalled apply).
@slh -- last time I've built an image for B1300 with the image builder not everything worked. I think there were some issues with some radios and definitely one of the ethernet ports didn't work. It's been about a month ago tho.
The last relevant fixes for the GL.iNet GL-B1300 have been merged on march 17th and it seems to be complete (obviously I can't judge if the settings are correct or if it actually works).
Hi, thanks for answering
I would really love having only openwrt on my router actually, I'll try version 18 once out, but at the moment I'm stuck with current unfortunately (I don't like the GUI GL.iNet added on top of OpenWRT).
@stangri:
This is logread after a vpnbypass restart:
Sun Apr 22 01:11:23 2018 user.notice vpnbypass [4290]: service stopped
Sun Apr 22 01:11:23 2018 daemon.err modprobe: xt_set is already loaded
Sun Apr 22 01:11:23 2018 daemon.err modprobe: ip_set is already loaded
Sun Apr 22 01:11:23 2018 daemon.err modprobe: ip_set_hash_ip is already loaded
Sun Apr 22 01:11:23 2018 user.notice vpnbypass [4290]: service started with TID: 200; FW_MARK: 0x010000
Sun Apr 22 01:11:24 2018 user.notice vpnbypass [4290]: service monitoring interfaces: wan VPN_client ✓
And here, my config files (other 2 on next post since this system isn't allwoing me to post more than 2 links): /etc/config/dhcp /etc/config/firewall
I haven't used mwan3 much, but as far as I understand it also allows you to set policies to route traffic. I'll need to review the full iptatbles-save output, but my immediate reaction would be that probably combination of vpnbypass and mwan3 is producing unexpected results.