Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been trying to get router to send specific traffic over to my server to go through an OpenVPN connection.
The OpenVPN connection is working fine; and I can use the server as a gateway with no problems.
I am however wanting to keep my router as my default gateway (Great GUI controls - Asus Merlin), so to do this; I've configured an ip table with a default route...
Quote:
ip route add default via 192.168.1.2 table ovpn
ip rule add from 192.168.1.15 table ovpn
My server also has some routes
Quote:
ip route add default dev tun0 table vpn
ip rule add from 192.168.1.2 table main pref 1
ip rule add from 192.168.1.0/24 table vpn pref 2
Now; I can see that ping and tracert/traceroute are working correctly; however my web browser does not work. I did discover that disabling the windows firewall made this work no problem. It also works on other devices, so guessing it must be just a windows thing
Can anybody suggest why this would be the case? And how I could get around it (ideally without having to configure firewalls across several machines)
Cheers
Last edited by anon059; 02-20-2019 at 11:53 AM.
Reason: Style
Yep, it does. VPNs don't allow back doors - nohow. If you use the vpn, route everything through it.
Not sure what you mean by backdoor?
However VPN traffic can be selectively routed. I have this working on a different network. This time with a openwrt router; but it does selectively route traffic
As I said, it is working apart from windows firewall blocking it.
After lots of messing around, I think you were right with the backdoor/IP Sec stuff; because with the same settings I am I able to have it working with a PPTP tunnel between the router and the VPN Client. Even with no encryption.
I could not get this to work with a OpenVPN tunnel; though this may be to do with the peculiar ASUS implementation
Problem with this is; PPTP server is notoriously unsafe, and would have to configure additional rules etc to block it externally
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.