Originally Posted by
darkod
What is the difference between openvpn and openvpnas? There might be differences in the configuration, something you missed...
On the server, can you see the tun0 interface established if you run:
ifconfig
Also, it might be better to see all listening services with:
sudo netstat -plunt
OpenVPN Access Server is basically OpenVPN with a web-interface for admin-related things. I'm using it after seeing my colleague install it on Windows (with VM) that worked seemingly with little modifications.
Anyway, for ifconfig, do you mean while a client is (attempting to) connect to the server? Here's what it looks when there isn't any client connecting to the server:
Code:
$ ifconfig
as0t0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:5.5.0.1 P-t-P:5.5.0.1 Mask:255.255.252.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
as0t1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:5.5.4.1 P-t-P:5.5.4.1 Mask:255.255.252.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
as0t2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:5.5.8.1 P-t-P:5.5.8.1 Mask:255.255.252.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
as0t3 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 -00
inet addr:5.5.12.1 P-t-P:5.5.12.1 Mask:255.255.252.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:200
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:15:58:2d:dd:8d
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd00::215:58ff:fe2d:dd8d/64 Scope:Global
inet6 addr: fe80::215:58ff:fe2d:dd8d/64 Scope:Link
inet6 addr: fd00::b4f9:ee55:f675:8298/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11315 errors:0 dropped:0 overruns:0 frame:0
TX packets:4669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1394147 (1.3 MB) TX bytes:959464 (959.4 KB)
Interrupt:16 Memory:ee000000-ee020000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:616 errors:0 dropped:0 overruns:0 frame:0
TX packets:616 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:493975 (493.9 KB) TX bytes:493975 (493.9 KB)
Likewise, netstat when no client is connecting to the server.
Code:
$ sudo netstat -plunt
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:943 0.0.0.0:* LISTEN 1942/python
tcp 0 0 0.0.0.0:914 0.0.0.0:* LISTEN 1954/openvpn
tcp 0 0 0.0.0.0:915 0.0.0.0:* LISTEN 1961/openvpn
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1058/sshd
tcp 0 0 127.0.0.1:904 0.0.0.0:* LISTEN 1942/python
tcp 0 0 127.0.0.1:905 0.0.0.0:* LISTEN 1942/python
tcp 0 0 127.0.0.1:906 0.0.0.0:* LISTEN 1942/python
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1174/mysqld
tcp 0 0 127.0.0.1:907 0.0.0.0:* LISTEN 1942/python
tcp 0 0 127.0.0.1:908 0.0.0.0:* LISTEN 1942/python
tcp 0 0 127.0.0.1:909 0.0.0.0:* LISTEN 1942/python
tcp6 0 0 :::80 :::* LISTEN 1997/apache2
tcp6 0 0 :::22 :::* LISTEN 1058/sshd
tcp6 0 0 :::445 :::* LISTEN 870/smbd
tcp6 0 0 :::139 :::* LISTEN 870/smbd
udp 0 0 192.168.1.255:137 0.0.0.0:* 1004/nmbd
udp 0 0 192.168.1.100:137 0.0.0.0:* 1004/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 1004/nmbd
udp 0 0 192.168.1.255:138 0.0.0.0:* 1004/nmbd
udp 0 0 192.168.1.100:138 0.0.0.0:* 1004/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 1004/nmbd
udp 0 0 0.0.0.0:916 0.0.0.0:* 1968/openvpn
udp 0 0 0.0.0.0:917 0.0.0.0:* 1974/openvpn
udp 0 0 0.0.0.0:68 0.0.0.0:* 942/dhclient3
Bookmarks