client config

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
eric66300
OpenVPN Power User
Posts: 57
Joined: Fri Apr 15, 2011 12:05 pm

client config

Post by eric66300 » Fri Apr 15, 2011 12:37 pm

hi i saw this client config
client
dev tun
remote ????.????.????.????
proto tcp
port 80
resolv-retry infinite
script-security 2
lport 80
bind
persist-key
persist-tun
ca ca.crt
comp-lzo
cipher none
auth SHA1
keysize 256
comp-lzo
verb 3
dhcp-option DNS 156.154.71.1
dhcp-option DNS 216.146.36.36
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4
mute 5
tun-mtu 1500
mssfix 1450
auth-user-pass password.txt
reneg-sec 0
keepalive 10 120
push "route 255.255.255.255 net_gateway"
route-method exe
route-delay 2
reneg-sec 0
script-security 2 system
win-sys env
i tried to use the same config to my server but the problem was when i connected it always drop my vpn and always reconnecting

may server config
ocal ???.???.???.???
port 80
proto tcp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 8.8.4.4"
keepalive 5 30
comp-lzo
persist-key
persist-tun
status server-tcp.log
verb 3
thanks for the help

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

Re: client config

Post by janjust » Fri Apr 15, 2011 1:24 pm

the client and server configs don't match at all (e.g. 'cipher', 'auth' etc). Why not read the manual and HOWTO pages and learn how to set up your own client config file?

eric66300
OpenVPN Power User
Posts: 57
Joined: Fri Apr 15, 2011 12:05 pm

Re: client config

Post by eric66300 » Fri Apr 15, 2011 4:11 pm

thanks

Post Reply