Setup routing and iptables for new VPN connection to redirect **only** ports 80 and 443
Fresh3 days ago
Mar 15, 202614222 viewsConfidence Score0%
0%
Problem
I have a new VPN connection (using openvpn) to allow me to route around some ISP restrictions. Whilst it is working fine, it is taking all the traffic over the vpn. This is causing me issues for downloading (my internet connection is a lot faster than the vpn allows), and for remote access. I run a…
Error Output
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface MSS Window irtt 0.0.0.0 10.51.0.16…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Setup routing and iptables for new VPN connection to redirect **only** ports 80 and 443
Low Risk
So, most of this is above, but the whole solution was as follows: Edit /etc/iproute2/rt_tables and add 2 lines at the bottom: You can give these tables other names that make more sense, just be consistent. Then you need to create a script (I called …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix