bridge networks together.

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
jjandrob
OpenVpn Newbie
Posts: 5
Joined: Sat Nov 19, 2011 7:24 pm

bridge networks together.

Post by jjandrob » Sat Nov 19, 2011 7:34 pm

Hi All.

I think my issue may be a simple one but i'm lost and now seek experts help.

I have a VPS that acts like a email spam / antivirus gateway that sits in the cloud. I have installed openVPN on this VPS and am able to get my windows 7 box to connect and ping.

So my OpenVPN network is as follows.
VPS (open VPN server) has the ip 10.0.1.1 and when windows 7 machine gets a DHCP address of 10.0.1.25. Both the VPS and window server can ping the remote side of the connection.

my mail server's ip is 10.0.1.10. So my question is how can i make my mail server see 10.0.1.1 on the VPS and still sit on the "local network". Installing openVPN on the mail server is not an option.

*server config*

Code: Select all

management localhost 7505
client-config-dir /etc/openvpn
route 10.0.1.0 255.255.255.0
local 97.107.130.227
port 1194
proto tcp
dev tun
ca ca.crt
cert server.crt
key server.key  # This file should be kept secret
dh dh1024.pem
server 10.0.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
duplicate-cn
keepalive 60 120
comp-lzo
max-clients 2
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log         openvpn.log
log-append  openvpn.log
verb 4

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: bridge networks together.

Post by Mimiko » Sat Nov 19, 2011 8:42 pm

You can't use same network mask on two different adapters pointing to different LAN's - you will have routing issues. For VPN use, for example:

Code: Select all

server 10.1.1.0 255.255.255.0

jjandrob
OpenVpn Newbie
Posts: 5
Joined: Sat Nov 19, 2011 7:24 pm

Re: bridge networks together.

Post by jjandrob » Sat Nov 19, 2011 8:59 pm

the email server is on a different computer but connected to the same switch the win7 box is.

How do i get the email server to the see the the vpn?

Or.. are you saying...

br0 dev on VPS ip address = 10.0.1.25
tunnel ip 10.1.1.25 on vps

client tunnel ip 10.1.1.26
win 7 bridge network 10.0.1.26

jjandrob
OpenVpn Newbie
Posts: 5
Joined: Sat Nov 19, 2011 7:24 pm

Re: bridge networks together.

Post by jjandrob » Sat Nov 19, 2011 11:12 pm

i need to bridge the same subnet between the VPS (openvpn) and and the win 7 machine and make the connection available on the lan.

Can this be done?

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: bridge networks together.

Post by Mimiko » Sun Nov 20, 2011 9:19 am

Set on mail server the default GW to OpenVPN client. On the client enable routing. Search this forum or internet for enable routing.

Post Reply