Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Being able to use --tunnel-domains and --direct-domains flags in conjunction with one another when using Sauce Connect

Currently, we have multiple domains that we specify in our tunnel instances with either the --tunnel-domains flag or --direct-domains flag. We would like to the ability to use these two flags in conjunction with one another(Currently this is not possible) so that given two conflicting -d or -t parameters, the more specific domain name should win.

  • Guest
  • Feb 22 2018
  • Future consideration
  • Attach files
  • Zuzana Bodíková commented
    30 Apr 12:16am

    Notes from the phone call WRT KP - tunnel-domains:

    • if URLs match the patterns - they use tunnel

    • there is on firewall on DMZ everything needs to be whitelisted - that is done by network team

    • it woulb great if the --tunnel-domains allowed for exclusion list on the regular expression matching

  • Jean Sandberg commented
    18 Jul, 2019 09:22pm


    Technically, you can use both parameters. If the same domain is in both, then --tunnel-domains overrides. However, we found that it's not working as expected and have an open bug for this. It seems that everything is going through the tunnel.

    Regarding wanting the exact match to beat the wildcard, that is something that we would have to add, but it makes a lot of sense and I've heard this request before. I've created a ticket in our backlog for this, but I do not have an ETA at this time.



  • Guest commented
    23 Feb, 2018 05:11pm

    I can actually relax this to state:

    Given two conflicting --tunnel-domains or --direct-domains, an exact match beats a wildcard match.