rendered paste body
root@OpenWrt:~/log# cat /etc/openvpn.conf
daemon
port 443
proto udp
dev tap0
keepalive 10 120
comp-lzo
status /var/log/openvpn-status.log
verb 4
# mute 20
secret /etc/openvpn.key
root@OpenWrt:~/log# brctl show
bridge name bridge id STP enabled interfaces
br-lan 8000.000fb50ba7c0 no eth0.0
ath0
tap0
root@OpenWrt:~/log# ping 192.168.2.141
PING 192.168.2.141 (192.168.2.141): 56 data bytes
--- 192.168.2.141 ping statistics ---
74 packets transmitted, 0 packets received, 100% packet loss
Nov 13 22:52:12 (none) daemon.notice openvpn[936]: Peer Connection Initiated with 192.168.2.101:1272
Nov 13 22:52:12 (none) daemon.notice openvpn[936]: Initialization Sequence Completed
Nov 13 22:52:12 (none) daemon.info dnsmasq[720]: DHCPREQUEST(br-lan) 192.168.2.141 00:ff:35:e3:16:1e
Nov 13 22:52:12 (none) daemon.info dnsmasq[720]: DHCPACK(br-lan) 192.168.2.141 00:ff:35:e3:16:1e jan
Nov 13 22:52:12 (none) daemon.info dnsmasq[720]: DHCPREQUEST(br-lan) 192.168.2.141 00:ff:35:e3:16:1e
Nov 13 22:52:12 (none) daemon.info dnsmasq[720]: DHCPACK(br-lan) 192.168.2.141 00:ff:35:e3:16:1e jan
Nov 13 22:52:44 (none) syslog.info -- MARK --
Nov 13 22:56:42 (none) daemon.notice openvpn[936]: Inactivity timeout (--ping-restart), restarting
Nov 13 22:56:42 (none) daemon.notice openvpn[936]: TCP/UDP: Closing socket
Nov 13 22:56:42 (none) daemon.notice openvpn[936]: Closing TUN/TAP interface
Nov 13 22:56:42 (none) daemon.notice openvpn[936]: SIGUSR1[soft,ping-restart] received, process restarting
Nov 13 22:56:42 (none) daemon.notice openvpn[936]: Restart pause, 2 second(s)
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: LZO compression initialized
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: TUN/TAP device tap0 opened
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: TUN/TAP TX queue length set to 100
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Data Channel MTU parms [ L:1577 D:1450 EF:45 EB:135 ET:32 EL:0 AF:3/1 ]
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Local Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Expected Remote Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Local Options hash (VER=V4): '83c3b015'
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Expected Remote Options hash (VER=V4): '83c3b015'
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: Socket Buffers: R=[108544->131072] S=[108544->131072]
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: UDPv4 link local (bound): [undef]:443
Nov 13 22:56:44 (none) daemon.notice openvpn[936]: UDPv4 link remote: [undef]
Nov 13 22:58:45 (none) daemon.notice openvpn[936]: Inactivity timeout (--ping-restart), restarting
Nov 13 22:58:45 (none) daemon.notice openvpn[936]: TCP/UDP: Closing socket
Nov 13 22:58:45 (none) daemon.notice openvpn[936]: Closing TUN/TAP interface
Nov 13 22:58:45 (none) daemon.notice openvpn[936]: SIGUSR1[soft,ping-restart] received, process restarting
Nov 13 22:58:45 (none) daemon.notice openvpn[936]: Restart pause, 2 second(s)
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: LZO compression initialized
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: TUN/TAP device tap0 opened
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: TUN/TAP TX queue length set to 100
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Data Channel MTU parms [ L:1577 D:1450 EF:45 EB:135 ET:32 EL:0 AF:3/1 ]
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Local Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Expected Remote Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Local Options hash (VER=V4): '83c3b015'
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Expected Remote Options hash (VER=V4): '83c3b015'
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: Socket Buffers: R=[108544->131072] S=[108544->131072]
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: UDPv4 link local (bound): [undef]:443
Nov 13 22:58:47 (none) daemon.notice openvpn[936]: UDPv4 link remote: [undef]
its restarting every 2m although client is connected.
root@OpenWrt:~/log# cat openvpn-status.log
OpenVPN STATISTICS
Updated,Mon Nov 13 22:52:36 2006
TUN/TAP read bytes,46371
TUN/TAP write bytes,1443
TCP/UDP read bytes,1664
TCP/UDP write bytes,2404
Auth read bytes,1584
pre-compress bytes,31102
post-compress bytes,31757
pre-decompress bytes,265
post-decompress bytes,684
END
root@OpenWrt:~/log# ifconfig
ath0 Link encap:Ethernet HWaddr 00:0F:B5:0B:A7:C0
UP BROADCAST RUNNING MULTICAST MTU:2290 Metric:1
RX packets:780 errors:0 dropped:0 overruns:0 frame:0
TX packets:481 errors:0 dropped:275 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:16798 (16.4 KiB) TX bytes:81816 (79.8 KiB)
br-lan Link encap:Ethernet HWaddr 00:0F:B5:0B:A7:C0
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96939 errors:0 dropped:0 overruns:0 frame:0
TX packets:101266 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19714029 (18.7 MiB) TX bytes:91353564 (87.1 MiB)
eth0 Link encap:Ethernet HWaddr 00:0F:B5:0B:B2:10
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:201963 errors:0 dropped:0 overruns:0 frame:0
TX packets:201043 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:114635901 (109.3 MiB) TX bytes:114674170 (109.3 MiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:0F:B5:0B:B2:10
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96122 errors:0 dropped:0 overruns:0 frame:0
TX packets:101225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20086681 (19.1 MiB) TX bytes:91755453 (87.5 MiB)
eth0.1 Link encap:Ethernet HWaddr 00:0F:B5:0B:B2:10
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:105845 errors:0 dropped:0 overruns:0 frame:0
TX packets:99825 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90914725 (86.7 MiB) TX bytes:22070251 (21.0 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:102 errors:0 dropped:0 overruns:0 frame:0
TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7584 (7.4 KiB) TX bytes:7584 (7.4 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:85.xx.xx.16 P-t-P:213.191.76.88 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:105810 errors:0 dropped:0 overruns:0 frame:0
TX packets:99818 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:89642367 (85.4 MiB) TX bytes:19474639 (18.5 MiB)
tap0 Link encap:Ethernet HWaddr 9E:B3:D0:88:EE:8B
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:682 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7694 (7.5 KiB) TX bytes:115947 (113.2 KiB)
wifi0 Link encap:UNSPEC HWaddr 00-0F-B5-0B-A7-C0-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1461 errors:0 dropped:0 overruns:0 frame:327992
TX packets:1018 errors:161 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:61418 (59.9 KiB) TX bytes:185174 (180.8 KiB)
Interrupt:2 Memory:c0100000-c0110000