How to route specific traffic through OpenVPN?
location: linuxexchange.com - date: January 1, 1970
I'm running a server at home with rtorrent and apache2. I would like to route my rtorrent traffic via OpenVPN and since im kinda new to OpenVPN and iptables i would like to have a user friendly guide.
What i've tried: I've been googling for 2 days on the subject but i havent found anything that could help me. I have tested the tunnel with openvpn and it routes my ip correct but heres the problem. Since i run a apache2 server it stops working (of course) when the tunnel is active.
What i want: I want the tunnel to be active but not to be default and that only rtorrent traffic should pass through it and last but not least that rtorrent ONLY should connect over VPN.
Anyone up for the task of teaching me?
Linux Route Specific Traffic Through Ethernet
location: linuxexchange.com - date: April 29, 2015
At work we have 2 networks; a WiFi one for normal Internet access, and an internal LAN one, for the repo etc. I've recently started using Linux and it's a pain having to constantly switch between cable and WiFi. On Windows, we solved it (so that we can be connected to both network simultaneously) by running the commands:
# Add a route for all traffic to any destination starting with 10 (internal traffic):
route add 10.0.0.0 mask 255.0.0.0 10.18.21.129 metric 40 -p
# Move the default route to a higher metric:
route change 0.0.0.0 mask 0.0.0.0 10.18.21.129 metric 40
After running these and connecting to WiFi, everything worked magically. What would the necessary Linux commands be to achieve the same result? I've fiddled around a lot with the route command, but haven't had any luck. Appreciate any help.
Here is the output of the route -n command before entering any other commands:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use If
Route Internet traffic through specific network interface?
location: ubuntuforums.com - date: January 5, 2010
I have a server running Ubuntu with two network interfaces. The first one (eth0) I'd like to use for the internal network, and the other one (eth1) is for the Internet. My problem is that connections to the Internet are routed through eth0, which is for internal network only. I would like for all connections to the Internet to go through eth1 and not even try eth0.
how can I audit traffic through openvpn
location: linuxquestions.com - date: February 14, 2008
I have a setup here with an openvpn server that receives connections from about 30 servers on another organization's network. It has now become a requirement that I can produce audit logs of traffic going through the vpn.
Example: User at computer 192.168.x.x on our network connected to server x.x.x.x through the vpn at SOME_DATE. The connections are using tun (not tap) devices if that makes a difference.
Does anyone know of a good way to accomplish this? I've been looking for a howto on the subject but without any luck so far.
Any help would be greatly appreciated.
Hardware appliance that can route all traffic through ipsec tunnel
location: linuxquestions.com - date: July 20, 2012
dunno if it's a network or a hardware question. I just post it here.
So I'm in need of a hardware firewall with integrated ipsec that is capable of routing all traffic from the branch to the gateway of the main site. Any one has some recommendations?
Route all traffic through GRE tunnel in OpenWrt [SOLVED]
location: linuxquestions.com - date: September 5, 2015
I'm wondering how I can route all traffic over a GRE tunnel on an OpenWrt router. I have the tunnel setup and I can add host entries and send them over the tunnel. For example:
route add -host $global_ipv4 gw $local_tunnel_ipv4 dev gre0
But, I wanted to be able to add essentially a default route were all traffic goes over the tunnel. The problem is that the default gateway (I think) needs to remain the upstream router, which is the ISP router. If I set the default route to be the GRE tunnel, nothing gets to the real world.
My route table is below. 10.0.1.1 is my upstream router. and 10.10.30.1/24 is my tunnel IP and tunnel subnet. 18.104.22.168 is an IP address for www.google.com that I used to test the tunnel. eth0 is also my WAN interface.
OpenVPN route issues, all traffic through VPN tunnel
location: linuxquestions.com - date: February 26, 2007
I have a VPS (FC4 on Xen, in a datacenter), I have installed OpenVPN with tun/tap and it works all fine, I can connect to the server from my Windows XP machine and the server give my client (Win XP) the correct IP, however I cannot route all my internet ie web browsing, P2P etc down the VPN.
So im not sure if its the server config file or the client config file or the servers route table? So I thought I would post all my .conf and see what you think...
Server config file (server-tcp-1194.conf) I have a UDP conf file too, its just the same with UDP instaed of TCP.
DDWRT Route certain traffic to a specific ip through a different interface
location: linuxexchange.com - date: January 1, 1970
I have two Internet connections, one is ok bandwidth and high monthly cap and the other is high bandwidth and low monthly cap. Each connection is currently on their own network but I would like to only have one network in the house.
I would like to have all traffic go through my primary connection except for websites like Netflix, YouTube, TWiT, Revision3, etc.
I'm not quite sure how to accomplish this. Maybe this can be done with iptables?
Forwarding traffic on a specific port through an SSH tunnel using iptables
location: ubuntuforums.com - date: March 2, 2013
Alright, the question of why I would want to do this is probably going to be the first to come up, so I'll answer that first. I am a casual Ubuntu user and a few months back started hosting my own email server for personal and home use by. Comcast, being the wonderful ISP that they are, decided to block all of my incoming and outgoing SMTP traffic over port 25 without any kind of notification whatsoever! I hadn't had an issue with them for the past six months, so I spent about 3 days troubleshooting my configs, routing, port forwards, etc. and came up with nothing. When I finally decided to call them, I was bounced all around the "tech support" department. Of course nobody knew anything and they all told me to use my "@comcast.net" address or to talk to my service provider. At this point, I just said screw it and got myself a VPS to be a mail relay. Now the reason I'm here on the forums is that, while I was able to route mail traffic from the remote ports on the V
Route traffic through VPNtunnel
location: ubuntuforums.com - date: July 23, 2012
I have just bought a VPN connection from a trusted VPN provider. Installed OpenVPN using apt-get:
sudo apt-get install openvpn resolvconf && sudo apt-get install network-manager-openvpn
I tried to connect using the Network Manager successfully, without any problems. Then, I noticed that Firefox said "Connection Timeout", no matter what page i visited. Pinging didn't work either. I thought it was a temporary problem and waited to see if it would work later.
Today, I tried again, but with the same result. I opened Wireshark and saw that NO PACKET AT ALL passed through the VPN-tunnel. I realized a had to route the traffic. I have never done that before and it would be nice if someone could tell me how I do that.
To make it easier for you to help me, I will post what route -n says:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0
Page: 1 2 3 4 5 6 7 8 9 10