Page 1 of 1

bridge networks together.

Posted: Sat Nov 19, 2011 7:34 pm
by jjandrob
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

Re: bridge networks together.

Posted: Sat Nov 19, 2011 8:42 pm
by Mimiko
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

Re: bridge networks together.

Posted: Sat Nov 19, 2011 8:59 pm
by jjandrob
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

Re: bridge networks together.

Posted: Sat Nov 19, 2011 11:12 pm
by jjandrob
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?

Re: bridge networks together.

Posted: Sun Nov 20, 2011 9:19 am
by Mimiko
Set on mail server the default GW to OpenVPN client. On the client enable routing. Search this forum or internet for enable routing.