Jump to content
Not connected, Your IP: 3.133.145.168
Sign in to follow this  
Whisperer

OpenWRT / Split Tunnel

Recommended Posts

I want to configure AirVPN on my OpenWRT router and was hoping someone had some instructions for that, using LuCi or the CLI. I figure it's similar to DD-WRT, but it can completely destroy my network config, so all help is welcome.

 

Also, I don't want gaming traffic and normal browsing to go over the VPN, so I figured I could configure iptables to tunnel traffic from one system through the VPN, while traffic from the other systems and devices goes across the non-VPN part of the line. I figure I could do it by IP or by lan-port. Problem is, I'm primarily a Windows admin. I'm not scared off by a little Linux, but I could use some help here. iptables is tough at the best of times.

Share this post


Link to post

I can't offer a complete solution and I have never configured an OpenWRT router but you could add a new routing table to /etc/iproutes2/rt_tables (for example "11 vpn"). You can then create a rule to direct traffic from your one system to this table using "ip rule from $ip address/ip range table vpn". Finally, define the default route for the vpn table: "ip route add default dev $vpn interface table vpn".

Share this post


Link to post

If I use a static route, that would mean the device would become inaccessible by the other devices on the network, correct? Since ALL its traffic now is forced over the VPN. I need its Internet traffic forced over the VPN, but it should still be able to talk to the other devices on the network. My guess is I'll need the firewall for that, since it will allow me to filter on client IP and/or port number(s).

 

As for the instructions on installing, there's a thread in the 'Similar Topics' that I couldn't find with the search function. That should probably get me onto AirVPN. Then I'll need to split the tunnel...

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...