Results 1 to 3 of 3

Thread: chroot for different default route?

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Tumba, Sweden
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question chroot for different default route?

    I'm trying to get certain applications to use an OpenVPN route, while others should not.

    If I start a VPN on my computer all outgoing traffic will default to this connection(Route).
    However since VPN traffic is slower, I only want certain applications to take this route.

    So I was thinking, how do chroot handle networking? if I start the OpenVPN client inside the chroot, and then start the application also inside the chroot, would it then take the OpenVPN route, while applications outside the chroot takes the normal route?

    Also do the chroot get the same IP as the "host" for incoming connections, for example a web server?

  2. #2
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: chroot for different default route?

    It may be simpler to define separate routes for the VPN/Non-VPN IP address ranges using the route command.
    That would be independent of any application(s).

  3. #3
    Join Date
    Nov 2005
    Location
    Tumba, Sweden
    Beans
    139
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: chroot for different default route?

    Quote Originally Posted by ian-weisser View Post
    It may be simpler to define separate routes for the VPN/Non-VPN IP address ranges using the route command.
    That would be independent of any application(s).
    Well that would work if I knew what IP ranges I will connect to.

    I previously had all traffic going through the VPN, and had certain connections specifically routed to bypass the VPN, however I want to do a separation on application level as I will not know where the application will connect.

    I'm actually thinking that if it is not possible with chroot, then I'll set up KVM and run a virtual machine instead. Just wanted something with less overhead.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •