config for fast server?

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.
Locked
wrekwired
OpenVpn Newbie
Posts: 4
Joined: Wed Feb 23, 2011 3:58 pm

config for fast server?

Post by wrekwired » Wed Feb 23, 2011 4:42 pm

Hi everyone.

Sorry for being such a noob but I like to setup my own openVPN server which will concentrate more on to speed and server response.

Can anyone give be the best config for my server? But connection will still be secured.

My test configuration is this.

Code: Select all

client
dev tun
proto tcp
remote my.server.com 80
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ca ca.crt
auth-user-pass
comp-lzo
verb 3
And how do I limit user's bandwidth per day like each users will only have a 1GB max traffic/day?

I already tried installing and running openVPN server in a free trial VPS host and succesfull in running my server and connecting a client. But I like to host my server to a better host.

My planned host would be in http://quickweb.co.nz which is cheaper because i'm low of budget.

Code: Select all

CPU Core(s)       1
Memory          256MB
Swap Space      384MB
Disk Space      10GB
Bandwidth       1TB
Port Speed    1000 Mbit
will this hold in about 20-30 clients without affecting server speed and response or you suggest other VPS?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: config for fast server?

Post by janjust » Wed Feb 23, 2011 10:01 pm

the setup you're describing should be perfectly capable of hosting up to 50 clients ; there might be some VPS quirks to take care of, but a "regular" PC with 1 core/CPU and 256 MB of RAM would suffice ; just don't try to install the latest and greatest full version of Linux on it, look for a slimmed down version. 256MB of RAM is not enough for a plain vanilla install of CentOS 5, Fedora 14, Ubuntu 9+ etc.

wrekwired
OpenVpn Newbie
Posts: 4
Joined: Wed Feb 23, 2011 3:58 pm

Re: config for fast server?

Post by wrekwired » Thu Feb 24, 2011 11:30 am

Thanks allot for the help. I was hoping for a CentOS 5. Maybe I'll just avail their service with 512 MB of RAM and 2T of bandwidth.

Now all I need is the best configuration for my server. :D

wrekwired
OpenVpn Newbie
Posts: 4
Joined: Wed Feb 23, 2011 3:58 pm

Re: config for fast server?

Post by wrekwired » Fri Feb 25, 2011 3:37 am

I forgot that I was short in budget and just starting with my VPN service. Means i'm stuck with the 256 MB of RAM.

My choices of os are fedora 13-32bit and fedora 11-32bit since fedora 13 will work fine in text mode with 256 MB of RAM. Just not sure if the kernel version is 2.4 or higher since i read that only linux version with kernel 2.4 or later have TAN/TUN.

Other choices are arch linux 2010.50-32bit, debian 5.0-32bit and centOS 5.0-32bit which I think will give my server a hangup.

What do you think with fedora 13?

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

Re: config for fast server?

Post by maikcat » Fri Feb 25, 2011 8:13 am

hi there,


*DEFINITELY NO*

centos 5.4 and above is better...
simply disable *ANY* unecessary service.

ubuntu server also recommended... (boots up in 10 secs :) )

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"

wrekwired
OpenVpn Newbie
Posts: 4
Joined: Wed Feb 23, 2011 3:58 pm

Re: config for fast server?

Post by wrekwired » Fri Feb 25, 2011 2:41 pm

Oh men. I really have to live with CentOS 5.5 in 256BM. The only problem is I don't know what unecessary services to disable that won't affect my server's performance.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: config for fast server?

Post by janjust » Fri Feb 25, 2011 2:49 pm

this is becoming off-topic for this forum: there are plenty of other fora out there that discuss how to run <FLAVOR OF LINUX> on minimal hardware.

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

Re: config for fast server?

Post by maikcat » Fri Feb 25, 2011 2:53 pm

you guys are right..this is getting off topic

only the initial post from wrekwired was ok.....


maybe i closed it here.

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"

Locked