[Solved] Server setup confusion

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Locked
muteor
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 28, 2011 3:21 pm

[Solved] Server setup confusion

Post by muteor » Thu Jul 28, 2011 3:36 pm

Hi,

I am trying to configure a server to pass all client traffic through my office ip address, I have been playing around with various settings for a while and need to check if I have totally the wrong idea or not.

So what I have is:

router gateway on: 192.168.1.254
server on (ubuntu): 192.168.1.101

So I started by following the ubuntu manual creating a bridge for the connection I have this working but when I add the push "redirect-gateway" the client cannot connect to anything.

Also, I am a little confused to how the IP's should be setup, my network is on 192.168.1.x, can I use a totally different range for the vpn or do I need to change the routers dhcp to something like 192.168.100.x? So I dont get ip clashes.

Also to bridge do I need two network cards or something?

Will post config files once I know I am going in the right direction......

Thanks for your help.

Mute

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: Server setup confusion

Post by Bebop » Fri Jul 29, 2011 10:11 am

If your lan is on 192.x.x.x you can put your vpn on 10.x.x.x for clarity. There will be a clash if you try to put them on the same subnet.

Bridging is not always necessary though. Neither is 2 network cards.

Post your server / client confs (minus all comments), and someone will help you get it up and running.
The cure for boredom is curiosity

muteor
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 28, 2011 3:21 pm

Re: Server setup confusion

Post by muteor » Sat Jul 30, 2011 7:05 am

I ended up using a straight tunnel instead of the bridge and everything is working now.

Thx for the advice.

Locked