How can i configure another server's IP as gateway ?

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
hendry
OpenVpn Newbie
Posts: 4
Joined: Mon Apr 01, 2013 5:56 pm

How can i configure another server's IP as gateway ?

Post by hendry » Mon Apr 01, 2013 6:05 pm

The condition is :

3 openvpn server with tap mode

A -- 10.1.0.1(vpn lan)
B -- 10.2.0.1(vpn lan)
C -- 10.3.0.1(vpn lan)

B,C also running openvpn client to connect the 3 vpn lans.

B openvpn client only connected with A

C openvpn client only connected with B

pc is a windows running openvpn client connected with C directly , IP is 10.3.0.2

I've configured route on the above 3 server also the pc ,

after that the pc(10.3.0.2) is able to access A (10.1.0.1).

Now , the problem is how can i set A(10.1.0.1) as the pc's (10.3.0.2) gateway ?
Since the pc's vpn lan is 10.3.0.0/24 , its impossible to set a gateway with differet network right ?
any solution ?

I dont want to make the pc connect to 10.1.0.1 directly ,
my purpose is to make a path for the outgoing packages from the pc ,

like this :

PC -> C -> B -> A -> distination

PC able to access A now , but how can i set A as PC's gateway ? They are in different vpn LAN , only can access by routing

How to make a path like that ....... :?

thanks in advanced.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: How can i configure another server's IP as gateway ?

Post by maikcat » Tue Apr 02, 2013 6:49 am

Since the pc's vpn lan is 10.3.0.0/24 , its impossible to set a gateway with differet network right ?
any solution ?
you cant use a default gateway when you cant reach it...it doesnt make sense.
solution...?..only to setup routing accordingly....

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply