This is not normal behavior. OpenVPN doesn't "listen" as a server when run in client mode. Something else is going on.
----- Eric F Crist On May 7, 2013, at 08:55:06, Steve Pallen <smpalle...@yahoo.com> wrote: > Here you go. > > Before reset, everything working: > > [root@localhost ~]# netstat -tulpn > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > : > tcp 0 0 0.0.0.0:80 0.0.0.0:* > LISTEN 3404/httpd > tcp 0 0 0.0.0.0:443 0.0.0.0:* > LISTEN 3404/httpd > : > > > Reproducing the problem: > [root@localhost ~]# service httpd restart > Stopping httpd: [ OK ] > Starting httpd: httpd: Could not reliably determine the server's fully > qualified domain name, using localhost.localdomain for ServerName > (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 > no listening sockets available, shutting down > Unable to open logs > [FAILED] > > > After restart showing openvpn with the ports: > > [root@localhost ~]# netstat -tulpn > Active Internet connections (only servers) > Proto Recv-Q Send-Q Local Address Foreign Address > State PID/Program name > : > tcp 0 0 0.0.0.0:80 0.0.0.0:* > LISTEN 3765/openvpn > tcp 0 0 0.0.0.0:443 0.0.0.0:* > LISTEN 3765/openvpn > : > > > Here is the client.conf > > port 1194 > proto tcp-client > dev tun8 > remote hidden.domain.com > tls-client > ca ca.crt > cert CEF7E9B8-CAF6E7F5-3B055E97-98622E26-6BC59748.crt > key CEF7E9B8-CAF6E7F5-3B055E97-98622E26-6BC59748.key > ns-cert-type server > comp-lzo yes > pull > Nobind > > > > Here is tail of /var/log/messages > > [root@localhost ~]# cat messages.log > May 7 09:44:04 localhost openvpn[6152]: OpenVPN 2.2.2 > x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] built on > Apr 5 2012 > May 7 09:44:04 localhost openvpn[6152]: NOTE: the current > --script-security setting may allow this configuration to call > user-defined scripts > May 7 09:44:04 localhost openvpn[6152]: LZO compression initialized > May 7 09:44:04 localhost openvpn[6153]: Attempting to establish TCP > connection with xx.yyy.148.139:1194 [nonblock] > May 7 09:44:05 localhost openvpn[6153]: TCP connection established with > xx.yyy.148.139:1194 > May 7 09:44:05 localhost openvpn[6153]: TCPv4_CLIENT link local: [undef] > May 7 09:44:05 localhost openvpn[6153]: TCPv4_CLIENT link remote: > xx.yyy.148.139:1194 > May 7 09:44:05 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:05 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:05 localhost openvpn[6153]: Updated,Tue May 7 09:44:05 2013 > May 7 09:44:05 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:05 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:05 localhost openvpn[6153]: TCP/UDP read bytes,0 > May 7 09:44:05 localhost openvpn[6153]: TCP/UDP write bytes,16 > May 7 09:44:05 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:05 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:05 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:05 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:05 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:05 localhost openvpn[6153]: END > May 7 09:44:06 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:06 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:06 localhost openvpn[6153]: Updated,Tue May 7 09:44:06 2013 > May 7 09:44:06 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:06 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:06 localhost openvpn[6153]: TCP/UDP read bytes,1064 > May 7 09:44:06 localhost openvpn[6153]: TCP/UDP write bytes,340 > May 7 09:44:06 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:06 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:06 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:06 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:06 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:06 localhost openvpn[6153]: END > May 7 09:44:07 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:07 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:07 localhost openvpn[6153]: Updated,Tue May 7 09:44:07 2013 > May 7 09:44:07 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:07 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:07 localhost openvpn[6153]: TCP/UDP read bytes,2318 > May 7 09:44:07 localhost openvpn[6153]: TCP/UDP write bytes,604 > May 7 09:44:07 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:07 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:07 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:07 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:07 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:07 localhost openvpn[6153]: END > May 7 09:44:08 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:08 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:08 localhost openvpn[6153]: Updated,Tue May 7 09:44:08 2013 > May 7 09:44:08 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:08 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:08 localhost openvpn[6153]: TCP/UDP read bytes,3156 > May 7 09:44:08 localhost openvpn[6153]: TCP/UDP write bytes,1248 > May 7 09:44:08 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:08 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:08 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:08 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:08 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:08 localhost openvpn[6153]: END > May 7 09:44:09 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:09 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:09 localhost openvpn[6153]: Updated,Tue May 7 09:44:09 2013 > May 7 09:44:09 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:09 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:09 localhost openvpn[6153]: TCP/UDP read bytes,3508 > May 7 09:44:09 localhost openvpn[6153]: TCP/UDP write bytes,3104 > May 7 09:44:09 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:09 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:09 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:09 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:09 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:09 localhost openvpn[6153]: END > May 7 09:44:11 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:11 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:11 localhost openvpn[6153]: Updated,Tue May 7 09:44:11 2013 > May 7 09:44:11 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:11 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:11 localhost openvpn[6153]: TCP/UDP read bytes,3769 > May 7 09:44:11 localhost openvpn[6153]: TCP/UDP write bytes,4021 > May 7 09:44:11 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:11 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:11 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:11 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:11 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:11 localhost openvpn[6153]: END > May 7 09:44:11 localhost openvpn[6153]: [server] Peer Connection > Initiated with xx.yyy.148.139:1194 > May 7 09:44:12 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:12 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:12 localhost openvpn[6153]: Updated,Tue May 7 09:44:12 2013 > May 7 09:44:12 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:12 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:12 localhost openvpn[6153]: TCP/UDP read bytes,4171 > May 7 09:44:12 localhost openvpn[6153]: TCP/UDP write bytes,4073 > May 7 09:44:12 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:12 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:12 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:12 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:12 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:12 localhost openvpn[6153]: END > May 7 09:44:13 localhost openvpn[6153]: TUN/TAP device tun8 opened > May 7 09:44:13 localhost openvpn[6153]: /sbin/ip link set dev tun8 up mtu > 1500 > May 7 09:44:13 localhost openvpn[6153]: /sbin/ip addr add dev tun8 local > 10.99.88.182 peer 10.99.88.181 > May 7 09:44:13 localhost openvpn[6153]: ERROR: Linux route add command > failed: external program exited with error status: 2 > May 7 09:44:13 localhost openvpn[6153]: Initialization Sequence Completed > May 7 09:44:13 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:13 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:13 localhost openvpn[6153]: Updated,Tue May 7 09:44:13 2013 > May 7 09:44:13 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:13 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:13 localhost openvpn[6153]: TCP/UDP read bytes,4453 > May 7 09:44:13 localhost openvpn[6153]: TCP/UDP write bytes,4231 > May 7 09:44:13 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:13 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: END > May 7 09:44:13 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:44:13 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:44:13 localhost openvpn[6153]: Updated,Tue May 7 09:44:13 2013 > May 7 09:44:13 localhost openvpn[6153]: TUN/TAP read bytes,0 > May 7 09:44:13 localhost openvpn[6153]: TUN/TAP write bytes,0 > May 7 09:44:13 localhost openvpn[6153]: TCP/UDP read bytes,4453 > May 7 09:44:13 localhost openvpn[6153]: TCP/UDP write bytes,4231 > May 7 09:44:13 localhost openvpn[6153]: Auth read bytes,0 > May 7 09:44:13 localhost openvpn[6153]: pre-compress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: post-compress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:44:13 localhost openvpn[6153]: END > May 7 09:45:48 localhost openvpn[6153]: event_wait : Interrupted system > call (code=4) > May 7 09:45:48 localhost openvpn[6153]: OpenVPN STATISTICS > May 7 09:45:48 localhost openvpn[6153]: Updated,Tue May 7 09:45:48 2013 > May 7 09:45:48 localhost openvpn[6153]: TUN/TAP read bytes,72371 > May 7 09:45:48 localhost openvpn[6153]: TUN/TAP write bytes,12966 > May 7 09:45:48 localhost openvpn[6153]: TCP/UDP read bytes,23739 > May 7 09:45:48 localhost openvpn[6153]: TCP/UDP write bytes,81410 > May 7 09:45:48 localhost openvpn[6153]: Auth read bytes,13142 > May 7 09:45:48 localhost openvpn[6153]: pre-compress bytes,68593 > May 7 09:45:48 localhost openvpn[6153]: post-compress bytes,67533 > May 7 09:45:48 localhost openvpn[6153]: pre-decompress bytes,0 > May 7 09:45:48 localhost openvpn[6153]: post-decompress bytes,0 > May 7 09:45:48 localhost openvpn[6153]: END > > > > > > > > -----Original Message----- > From: Eric Crist <ecr...@secure-computing.net> > Date: Tuesday, 7 May, 2013 9:08 AM > To: Steve Pallen <smpalle...@yahoo.com> > Cc: <openvpn-users@lists.sourceforge.net> > Subject: Re: [Openvpn-users] Openvpn grabs ports on service restart > >> We'd need to see the config and logs to verify this... >> >> ----- >> Eric F Crist >> >> >> >> On May 7, 2013, at 08:05:36, Steve Pallen <smpalle...@yahoo.com> wrote: >> >>> I have openvpn setup as client on a centos Linux system. If I restart a >>> service like apache or other tcp based services, openvpn grabs the ports >>> (80, 443, etc) and the service startup fails due to the port(s) being >>> unavailable. >>> >>> Is this a bug? If not, how do configure out this behavior? >>> >>> Thanks >>> Steve >>> >>> >>> ------------------------------------------------------------------------- >>> ----- >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their applications. This 200-page book is written by three acclaimed >>> leaders in the field. The early access version is available now. >>> Download your free book today! >>> http://p.sf.net/sfu/neotech_d2d_may______________________________________ >>> _________ >>> Openvpn-users mailing list >>> Openvpn-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/openvpn-users >> > > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users