openvpn-users@... writes:
>Lawrence Bean wrote:
>> -----
>> #OpenVPN Server conf
(actually client)
>
>> tls-client
>> client
>> dev tun
>> proto udp
>> remote [myFirewall] 1194
>> pkcs12 [myCertificate].p12
>> cipher BF-CBC
>> comp-lzo
>> verb 3
>> -----
>From: Charles Duffy <cduffy@...>
>(This is clearly the client configuration, contrary to the comment at
>the top)
Thank you Charles. Yes, it is the client end .conf. Funny, I never
registered that comment ... this is the config file Zerina auto-creates
for clients. I will drop a note to them and suggest the comment should be
changed to "Client conf".
>
>From: Charles Duffy <cduffy@...>
>Is your server pushing appropriate options? You should have something
>like this in your server's configuration:
>push "dhcp-options DOMAIN u47.k12.me.us"
>push "dhcp-options DNS your.dns.ip.address"
Nothing like that is in the default server.conf, again auto-created during
Zerina install. I added the two lines you quoted above immediately after
the first "push" line in the default file, and assumed that
"your.dns.ip.address" is my dns server inside the firewall, which I added
by IPaddress. Here is the new (anonymized) server.conf on the IPCop
firewall:
-----
#OpenVPN Server conf
daemon openvpnserver
writepid /var/run/openvpn.pid
#DAN prepare ZERINA for listening on blue and orange
;local [MyFirewallFQDN]
dev tun
tun-mtu 1500
proto udp
port 1194
tls-server
ca /var/ipcop/ovpn/ca/cacert.pem
cert /var/ipcop/ovpn/certs/servercert.pem
key /var/ipcop/ovpn/certs/serverkey.pem
dh /var/ipcop/ovpn/ca/dh1024.pem
server 10.1.1.0 255.255.255.0
push "route [privateIP] [mask]"
push "dhcp-options DOMAIN u47.k12.me.us"
push "dhcp-options DNS [InternalDNSIP]"
keepalive 10 60
status-version 1
status /var/ipcop/ovpn/server.log 30
cipher BF-CBC
comp-lzo
max-clients 100
tls-verify /var/ipcop/ovpn/verify
crl-verify /var/ipcop/ovpn/crls/cacrl.pem
user nobody
group nobody
persist-key
persist-tun
verb 3
-----
I stopped/started Zerina on IPCop, and the Zerina logs seem to show no
trouble with the new lines.
-----
12:24:58 openvpnserver OpenVPN 2.0.5 i386-pc-linux [SSL] [LZO] built on
Nov 14 2005
12:24:58 openvpnserver Diffie-Hellman initialized with 1024 bit key
12:24:58 openvpnserver WARNING: file '/var/ipcop/ovpn/certs/serverkey.pem'
is group or others accessible
12:24:58 openvpnserver TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0
EL:0 ]
12:24:58 openvpnserver TUN/TAP device tun0 opened
12:24:58 openvpnserver /sbin/ifconfig tun0 [PrivateIP] pointopoint
[PrivateIP] mtu 1500
12:24:58 openvpnserver /sbin/route add -net [PrivateIP] netmask [mask] gw
[PrivateIP]
12:24:58 openvpnserver Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135
ET:0 EL:0 AF:3/1 ]
12:24:58 openvpnserver GID set to nobody
12:24:58 openvpnserver UID set to nobody
12:24:58 openvpnserver UDPv4 link local (bound): [undef]:1194
12:24:58 openvpnserver UDPv4 link remote: [undef]
12:24:58 openvpnserver MULTI: multi_init called, r=256 v=256
12:24:58 openvpnserver IFCONFIG POOL: base=[PrivateIP] size=62
12:24:58 openvpnserver Initialization Sequence Completed
-----
Although I connect fine, still no go on fqdn. I can't seem to figure out
how to copy the Tunnelblick client log or find where it is kept on the
client machine, but in the display I see:
-----
PUSH: Received control message: 'PUSH_REPLY
Options error: Unrecognized option or missing parameter(s) in
[PUSH-OPTIONS]:2 dhcp-options (2.0.5)
Options error: Unrecognized option or missing parameter(s) in
[PUSH-OPTIONS]:3 dhcp-options (2.0.5)
-----
Is it possible/probable that the trouble lies with Zerina?
|