From: Max W. <dav...@fa...> - 2007-03-21 05:12:17
|
OK, I couldn't figure out how to route through an vpn interface on another machine, so I set up the machine as another openvpn host. I've added routes to the config file as such : route www.swimman.com 255.255.255.255 etc and that works fine. However, some host's ip addresses don't resolve to a single address. For example : # host www.wiebetech.com www.wiebetech.com is an alias for premium2.geo.yahoo.akadns.net. premium2.geo.yahoo.akadns.net has address 66.218.79.157 premium2.geo.yahoo.akadns.net has address 66.218.79.158 premium2.geo.yahoo.akadns.net has address 66.218.79.159 premium2.geo.yahoo.akadns.net has address 66.218.79.164 premium2.geo.yahoo.akadns.net has address 66.218.79.165 premium2.geo.yahoo.akadns.net has address 66.218.79.166 I can set up each one as so : # www.wiebetech.com is an alias for premium2.geo.yahoo.akadns.net. route 66.218.79.157 255.255.255.255 route 66.218.79.158 255.255.255.255 route 66.218.79.159 255.255.255.255 route 66.218.79.164 255.255.255.255 route 66.218.79.165 255.255.255.255 route 66.218.79.166 255.255.255.255 and that works most of the time, but it seems that dns responds differently sometimes. I thought that something like this would work : route 66.218.79.0 255.255.255.0 assuming that it cycles through a whole subnet of addresses, but it fails. I can't seem to find a detailed explanation of the format for this line. Can someone enlighten me? Max. Max Waterman wrote: > I live and work in China, and the internet connection to the rest of the > world is, er, 'complicated', such that some internet sites are not > accessible - for example, www.swimman.com. > > We have a VPN connection with our office in California, but each of our > offices has it's own gateway - ie only LAN traffic is routed - and this > works fine. > > Is there some way I can route specific hosts through the VPN to go to > the other gateway? > > To start with, I'd like to try this for a single host on the Chinese LAN > and for a single address, and so I was trying things like : > > # route add -host 205.178.145.65 gw <remote gateway> > > where <remote gateway> is the IP address of the gateway in CA; but it > tells me : > > SIOCADDRT: Network is unreachable > > I can ping <remote gateway> without any trouble. > > What am I doing wrong? > > Since I would eventually like to do this for all hosts on the Chinese > LAN and for a list of 'several' otherwise inaccessible internet > addresses, is there a better approach? > > Max. > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Openvpn-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openvpn-users > |