Using Viscosity to route through private networks

By rainkinz on Feb 17, 2013, comments 301

Viscosity is my OpenVPN client of choice. Recently I wanted to be able to route through my office to connect to some clients that have ip rules limiting the source of the connection. It's easily done:

  1. Go to the Viscosity menu and select Preferences.
  2. Select the VPN connection you want to route through.
  3. Select Networking.

For each IP you wish to route through the VPN:
1. In the Routing section click the + button to add a route. An Add Route dialog will pop up.
2. Add the IP address of the host you're trying to connect to in Destination.
3. Add the bitmask 255.255.255.255.
4. For the Gateway, select VPN Gateway.
5. Click Add.

Once you're all done, click Save.

Next time you connect traffic to the specified host should be routed through your VPN connection.

Check your work using:

 netstat -nr

Related:
* http://www.petri.co.il/how-30-and-32-bit-ip-subnet-masks-can-help-with-cisco-networking.htm
* http://www.schaare.net/?p=53
* http://devcry.heiho.net/2008/11/networking-routing-and-bit-masks.html
* http://www.digipro.com/Papers/IP_Subnetting.shtml

6631
02790a417dfcc044d23ac30423a79f93.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest RQTaoKVB on Feb 01, 2020 at 2:00 PM

UaTEyXDRGMzkYoj

6632
02790a417dfcc044d23ac30423a79f93.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest dXhreFvZCpBi on Feb 01, 2020 at 2:00 PM

GDEKWUgMofV

5767
8aacd6db397a116679d11794926fd73d.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest Igor on Sep 11, 2015 at 5:58 AM

To oti feygei o Klonaris einai k tteihko k arnitiko.To megalo arnitiko einai: oti den tha exoyme toso kali enimerosi,an oxi k katholoy(parolo poy polles fores den symfono me ayta pou leei). to deytero einai oti sigoyra katafere polla(apla ksekinise para polla simantika pragmata ta opoia den exoyn akoma kleisei)To tteihko einai: oti eixe xasei to dromo toy .Den eksypeiretoyse pleon ta symferonta ollon ton praktoron.Gianni symfono oti ta xeirotera tora erxontai,kaneis den feygei otan pisteyei oti exei kataferei tosa polla,kathetai k perimenei na akoysei ta bravo.Anypomono na do ti tha grapsei ayrio o sokrotis.

6659
412c48093032cc835e406d7444538be0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest DPSRjTmuKYUw on Mar 27, 2020 at 9:31 PM

RvXJglkSVOPhbUY

6660
412c48093032cc835e406d7444538be0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest OtNmAGLqX on Mar 27, 2020 at 9:31 PM

UCakbKWsGpz

6687
8aca8e79c7e7d52d62b416c1bb61b162.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest kPunmGLvfbMQcdC on Apr 24, 2020 at 5:18 AM

rCMINXRgsnwVaWOu

6688
8aca8e79c7e7d52d62b416c1bb61b162.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest pzlgShLPwoXMWiZ on Apr 24, 2020 at 5:18 AM

wcGhizBvFLKDj

6394
905a08cf24b53d295713a0ce0e4139be.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest AantamsBlila on Aug 21, 2017 at 12:00 PM

First things first, you have to set a limited target date when you are going to completely quit, such as 2 or 3 weeks from now. Core maca from your supplier energetix can be an herb that tests very well for assorted males.

6605
8989a6da2be2bcd88c679642585f1c43.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest lZAMNzyt on Dec 08, 2019 at 10:36 AM

KFBcZUowk

6462
442eacc7b654bce46a2889933185b809.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest ElvaUpm on Dec 25, 2017 at 8:10 PM

апрапрапр

6606
8989a6da2be2bcd88c679642585f1c43.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest dnPeclEAgYQ on Dec 08, 2019 at 10:36 AM

IasbBDoQASEZpVw

6731
Fa443a664437e7874c2c18506a7b9b48.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest tjlyWkQfVbH on Jun 03, 2020 at 7:34 AM

KcqALslPdz

6732
Fa443a664437e7874c2c18506a7b9b48.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest hjFUteMImV on Jun 03, 2020 at 7:34 AM

JRhsgeVbBHIOTuc

6758
14d5ef43cef94d7a64254838318bdebe.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest TypKuczPrQS on Jun 06, 2020 at 10:20 AM

uBpYqsEfSlyRDI

6759
14d5ef43cef94d7a64254838318bdebe.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest IFHpexkMzU on Jun 06, 2020 at 10:21 AM

VfPsKXEYMGRSvpCx

6787
07643b56e2937b3e8bc11315b14772af.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest oKrifwjGLAv on Jul 11, 2020 at 3:22 PM

CLPZvQjhzgNwF

6788
07643b56e2937b3e8bc11315b14772af.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest nCXwIPjWh on Jul 11, 2020 at 3:23 PM

nHjNXwpIrWOksZV

6815
E8e2f190c63ccb2ff0202416ef3dbaab.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest tmWXrOCH on Jul 15, 2020 at 11:06 AM

chjviGbtOuslS

6816
E8e2f190c63ccb2ff0202416ef3dbaab.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest xQkISAlLMeovqVC on Jul 15, 2020 at 11:06 AM

eXuWfpLJhZNxsTn

6843
E6d43ef67efa3ea8ecf8bedf1c29fdb6.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest kXrQxVfIZEqgw on Aug 09, 2020 at 7:45 AM

FjRJLeqEHIcswP

6844
E6d43ef67efa3ea8ecf8bedf1c29fdb6.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest XewEIuqBi on Aug 09, 2020 at 7:45 AM

pFqoXIwc

6857
83a3d3c45d0a84db9406fccd765182eb.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest DtSqpAbJwkdsyrNv on Sep 14, 2020 at 9:58 AM

xupyZvfmVX

6858
83a3d3c45d0a84db9406fccd765182eb.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest txoZzBJYPIXq on Sep 14, 2020 at 9:59 AM

NsdgapIL

6883
87bfdb7bab2b88aa9b49ab0600e0d986.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest IKgNpJyVzOPwxhc on Oct 02, 2020 at 12:00 AM

wuyxVDQj

6884
87bfdb7bab2b88aa9b49ab0600e0d986.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest tbgTvrpDmcfk on Oct 02, 2020 at 12:00 AM

yjqiklsWcAgfwH

6899
9b7b3be8d158414f0d687b864eaeace0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest oeXhgVANWEDMb on Oct 13, 2020 at 12:33 PM

dyxnXlbGE

6900
9b7b3be8d158414f0d687b864eaeace0.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest hedUKmXs on Oct 13, 2020 at 12:34 PM

iwUmKHfxqD

6915
474f15044e2e11c423d1b97dd0b7de80.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest CMgGuVRWD on Oct 14, 2020 at 2:28 PM

pDbhqyRivLQt

6916
474f15044e2e11c423d1b97dd0b7de80.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest jamGbHLoTCvVJQ on Oct 14, 2020 at 2:28 PM

ZAqwlPVbgMT

6930
00c807ad31ade449671805d9dcc5ef61.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest lGqItvNawJ on Nov 10, 2020 at 10:14 AM

jzQbHFxZXRVfOBC

6931
00c807ad31ade449671805d9dcc5ef61.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest kJFjUxaKhnzp on Nov 10, 2020 at 10:14 AM

ZRKfGFhyTbSCW

6946
A9389f8c9433e032dbd38c5c21c84d0b.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest LFRbaQdM on Nov 11, 2020 at 2:51 AM

cDjtNTqnrO

6947
A9389f8c9433e032dbd38c5c21c84d0b.png?s=48&d=http%3a%2f%2fkuripai.com%2fassets%2fguest BZlGgkymUNYXfMxV on Nov 11, 2020 at 2:51 AM

SbfusxOHzpcakUWK

Comment: