Configured the Plugin with this https://github.com/amussey/FreeNAS-Transmission-OpenVPN over UDP.
my openvpn log :
my var/log/messages:
i found a few threads about this issue and they told to change the sysctl.conf:
https://falkhusemann.de/blog/2012/07/transmission-utp-and-udp-buffer-optimizations/
here are other options to change:
https://forums.freenas.org/index.ph...iled-to-set-receive-buffer-please-help.15203/
Now the Jail stops working every hour and stay online one day when i am lucky.
So now i am asking: What is the correct way to change the value in the sysctl https://doc.freenas.org/9.3/freenas_system.html#tunables with the same values as above or is there a new way to do this?
I really don't want to break anything so i am asking you guys...
THANKS!
my openvpn log :
Code:
Tue Oct 27 17:57:51 2015 us=54220 Data Channel MTU parms [ L:1558 D:1300 EF:58 EB:143 ET:0 EL:3 AF:3/1 ] Tue Oct 27 17:57:51 2015 us=54233 Fragmentation MTU parms [ L:1558 D:1300 EF:57 EB:143 ET:1 EL:3 AF:3/1 ] Tue Oct 27 17:57:51 2015 us=54258 Local Options String: 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,mtu-dynamic,cipher AES-256-CBC,auth MD5,keysize 256,key-method 2,tls-client' Tue Oct 27 17:57:51 2015 us=54267 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,mtu-dynamic,cipher AES-256-CBC,auth MD5,keysize 256,key-method 2,tls-server' Tue Oct 27 17:57:51 2015 us=54286 Local Options hash (VER=V4): '8f40a5db' Tue Oct 27 17:57:51 2015 us=54297 Expected Remote Options hash (VER=V4): '6ce7e20d' Tue Oct 27 17:58:06 2015 us=56183 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 17:58:26 2015 us=59165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 17:58:46 2015 us=62166 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 17:59:06 2015 us=65167 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 17:59:26 2015 us=68166 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 17:59:46 2015 us=71165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:00:06 2015 us=74170 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:00:26 2015 us=77165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:00:46 2015 us=80165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:01:06 2015 us=83178 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:01:26 2015 us=86165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:01:46 2015 us=89166 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:02:06 2015 us=92167 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:02:26 2015 us=95167 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:02:46 2015 us=98166 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:03:06 2015 us=101165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:03:26 2015 us=104165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:03:46 2015 us=107165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:04:06 2015 us=110167 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:04:26 2015 us=113167 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:04:46 2015 us=116166 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:05:06 2015 us=119165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:05:26 2015 us=122169 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:05:46 2015 us=125164 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:06:06 2015 us=128164 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:06:26 2015 us=131163 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:06:46 2015 us=143158 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:07:06 2015 us=146165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:07:26 2015 us=149165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:07:46 2015 us=152165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:08:06 2015 us=155168 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:08:26 2015 us=158165 RESOLVE: Cannot resolve host address: 1-ro.cg-dialup.net: hostname nor servname provided, or not known Tue Oct 27 18:08:31 2015 us=172569 UDPv4 link local: [undef] Tue Oct 27 18:08:31 2015 us=172604 UDPv4 link remote: [AF_INET]5.254.97.83:443 Tue Oct 27 18:08:31 2015 us=218576 TLS: Initial packet from [AF_INET]5.254.97.83:443, sid=0ecf611f 2384bbcc Tue Oct 27 18:08:31 2015 us=218623 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Tue Oct 27 18:08:31 2015 us=470068 VERIFY OK: depth=1, C=DE, O=CyberGhost VPN, OU=CyberGhost, CN=CyberGhost Tue Oct 27 18:08:31 2015 us=470226 Validating certificate key usage Tue Oct 27 18:08:31 2015 us=470239 ++ Certificate has key usage 00a0, expects 00a0 Tue Oct 27 18:08:31 2015 us=470249 VERIFY KU OK Tue Oct 27 18:08:31 2015 us=470259 Validating certificate extended key usage Tue Oct 27 18:08:31 2015 us=470268 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication Tue Oct 27 18:08:31 2015 us=470276 VERIFY EKU OK Tue Oct 27 18:08:31 2015 us=470283 VERIFY OK: depth=0, C=RO, ST=RO, L=Bucharest, O=CyberGhost VPN, OU=CyberGhost, CN=CyberGhost, name=CyberGhost VPN, emailAddress=webmaster@cyberghostvpn.com Tue Oct 27 18:08:32 2015 us=348673 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Tue Oct 27 18:08:32 2015 us=348709 Data Channel Encrypt: Using 128 bit message hash 'MD5' for HMAC authentication Tue Oct 27 18:08:32 2015 us=348721 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key Tue Oct 27 18:08:32 2015 us=348731 Data Channel Decrypt: Using 128 bit message hash 'MD5' for HMAC authentication Tue Oct 27 18:08:32 2015 us=348756 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA Tue Oct 27 18:08:32 2015 us=348797 [CyberGhost] Peer Connection Initiated with [AF_INET]5.254.97.83:443 Tue Oct 27 18:08:34 2015 us=642167 SENT CONTROL [CyberGhost]: 'PUSH_REQUEST' (status=1) Tue Oct 27 18:08:34 2015 us=685788 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1,dhcp-option DNS 95.169.183.219,dhcp-option DNS 89.41.60.38,dhcp-option DNS 37.221.175.198,comp-lzo yes,route 10.129.0.1,topology net30,ping 10,ping-restart 60,ifconfig 10.129.39.246 10.129.39.245' Tue Oct 27 18:08:34 2015 us=685872 OPTIONS IMPORT: timers and/or timeouts modified Tue Oct 27 18:08:34 2015 us=685883 OPTIONS IMPORT: LZO parms modified Tue Oct 27 18:08:34 2015 us=685891 OPTIONS IMPORT: --ifconfig/up options modified Tue Oct 27 18:08:34 2015 us=685899 OPTIONS IMPORT: route options modified Tue Oct 27 18:08:34 2015 us=685906 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified Tue Oct 27 18:08:34 2015 us=685949 ROUTE_GATEWAY 192.168.99.1 Tue Oct 27 18:08:34 2015 us=686046 TUN/TAP device /dev/tun0 opened Tue Oct 27 18:08:34 2015 us=686063 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0 Tue Oct 27 18:08:34 2015 us=686081 /sbin/ifconfig tun0 10.129.39.246 10.129.39.245 mtu 1500 netmask 255.255.255.255 up Tue Oct 27 18:08:34 2015 us=687018 /FreeNAS-Transmission-OpenVPN/scripts/start_transmission.sh tun0 1500 1558 10.129.39.246 10.129.39.245 init
my var/log/messages:
Code:
Oct 27 09:12:55 transmission_1 transmission-daemon[65865]: UDP Failed to set receive buffer: No buffer space available (tr-udp.c:59) Oct 27 09:12:55 transmission_1 transmission-daemon[65865]: UDP Failed to set receive buffer: requested 4194304, got 42080 (tr-udp.c:78) Oct 27 09:13:05 transmission_1 transmission-daemon[70119]: UDP Failed to set receive buffer: No buffer space available (tr-udp.c:59) Oct 27 09:13:05 transmission_1 transmission-daemon[70119]: UDP Failed to set receive buffer: requested 4194304, got 42080 (tr-udp.c:78) Oct 27 09:43:39 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 09:44:50 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 09:45:42 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 09:46:20 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 09:47:09 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 09:47:44 transmission_1 transmission-daemon[70119]: DHT dht.transmissionbt.com:6881: hostname nor servname provided, or not known (tr-dht.c:126) Oct 27 18:08:36 transmission_1 transmission-daemon[45459]: UDP Failed to set receive buffer: No buffer space available (tr-udp.c:59) Oct 27 18:08:36 transmission_1 transmission-daemon[45459]: UDP Failed to set receive buffer: requested 4194304, got 42080 (tr-udp.c:78)
i found a few threads about this issue and they told to change the sysctl.conf:
https://falkhusemann.de/blog/2012/07/transmission-utp-and-udp-buffer-optimizations/
here are other options to change:
https://forums.freenas.org/index.ph...iled-to-set-receive-buffer-please-help.15203/
Now the Jail stops working every hour and stay online one day when i am lucky.
So now i am asking: What is the correct way to change the value in the sysctl https://doc.freenas.org/9.3/freenas_system.html#tunables with the same values as above or is there a new way to do this?
I really don't want to break anything so i am asking you guys...
THANKS!