Multiple network access

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ginjedi
OpenVpn Newbie
Posts: 2
Joined: Thu Mar 17, 2011 11:04 am

Multiple network access

Post by ginjedi » Thu Mar 17, 2011 11:31 am

Hello, I am really apologising for my English and any mistakes in technical terminology i may made in that topic.

I am working in company with 4 branch offices. Network between this offices are held by our ISP (I presume they just use regular VPN tunnelling between routers) Networks look like 192.168.141.0/24; 192.168.142.0/24; 192.168.143.0/24; 192.168.144.0/24. I don't have access to routers, they are configured and managed by ISP but I can do services requests for anything.
What I have done so far:
I have my OpenVPN server in 192.168.144.0/24 that is working perfectly on my windows 7 machine (I am still in testing phase, later going to move it to Windows Server 2008). So I can access any resources anywhere in network 192.168.144.0/24. But as soon as I trying to access some thing on different networks it stop working. I tried to add different routes to server config but didn't worked.
Is it possible to sort it out some how?

Server config:

Code: Select all

## server.ovpn ##
local 192.168.144.89
port 1194
proto udp
mssfix 1400
push "dhcp-option DNS 192.168.144.10"
push "dhcp-option DNS 192.168.144.12"
dev tun
dev-node OpenVPNMain
ca ca.crt
cert cgp-itsa1.crt
key cgp-itsa1.key
dh dh1024.pem
ifconfig-pool-persist ipp.txt
push "route 192.168.144.0 255.255.255.0"
push "route 192.168.141.0 255.255.255.0"
#push "dhcp-option WINS 192.168.144.10"
push "dhcp-option DOMAIN domainp.com"
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
keepalive 10 120
comp-lzo
max-clients 5
persist-key
persist-tun
status openvpn-status.log
verb 3

client config:

Code: Select all

## client.ovpn ##
client
dev tun
dev-node VPN
proto udp
remote xx.xx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert test.crt
key test.key
ns-cert-type server
comp-lzo
verb 3
As I said before, i want to be able to browse to another networks as well as main one.
Thank you in advance!

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

Re: Multiple network access

Post by maikcat » Thu Mar 17, 2011 12:40 pm

hi there,

did you configured routers (or pcs) in nets 192.168.141.x and 192.168.144.x
to know where to route packets for vpn subnet 10.8.0.0/24?

also i dont thing you need that

>push "redirect-gateway def1"

just add push routes for the other subnets..

cheers,

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"

ginjedi
OpenVpn Newbie
Posts: 2
Joined: Thu Mar 17, 2011 11:04 am

Re: Multiple network access

Post by ginjedi » Thu Mar 17, 2011 1:04 pm

maikcat,
Thanks for fast replay, to be honest I haven't configured routers on remote site! Will send request to my ISP and will update topic.

Thank you again for help.

Post Reply