title: DANTED SERVER v1.1.19 - Error configuration sock5 on ubuntu
body: <p>i have follow this tutorial <a href="https://www.binarytides.com/setup-dante-socks5-server-on-ubuntu/" rel="nofollow noreferrer">dante sock5 configuration</a> and i have a strange error.</p>
  
  <p>Below are my danted.conf file :</p>
  
  <pre><code># /etc/danted.conf
  
  logoutput: syslog
  user.privileged: root
  user.notprivileged: nobody
  
  # The listening network interface or address.
  internal: 0.0.0.0 port=1080
  
  # The proxying network interface or address.
  external: eth0
  
  # socks-rules determine what is proxied through the external interface.
  # The default of "none" permits anonymous access.
  socksmethod: username
  
  # client-rules determine who can connect to the internal interface.
  # The default of "none" permits anonymous access.
  clientmethod: none
  
  client pass {
          from: 0.0.0.0/0 to: 0.0.0.0/0
          log: connect disconnect error
  }
  socks pass {
          from: 0.0.0.0/0 to: 0.0.0.0/0
          log: connect disconnect error
  }
  </code></pre>
  
  <p>when i start the dante service i have this error message :</p>
  
  <pre><code>Starting Dante SOCKS daemon: Nov 21 13:38:09 (1542803889) danted[21175]: /etc/danted.conf: error on line 15, near 's': syntax error
  </code></pre>
  
  <p>the error is localised on the line "socksmethod: username".</p>
  
  <p>i dont know how to resolve it ....i dont even know where to start my investigation...</p>
  
  <p>[NOW]</p>
  
  <p><strong>I have resolved configuration error</strong>, below my config file </p>
  
  <pre><code># /etc/danted.conf
  
  logoutput: syslog
  user.privileged: root
  user.notprivileged: nobody
  
  # The listening network interface or address.
  internal: 0.0.0.0 port=1080
  
  # The proxying network interface or address.
  external: eth0
  
  # socks-rules determine what is proxied through the external interface.
  # The default of "none" permits anonymous access.
  method: username
  
  # client-rules determine who can connect to the internal interface.
  # The default of "none" permits anonymous access.
  method: none
  
  socks pass {
          from: 0.0.0.0/0 to: 0.0.0.0/0
          log: connect disconnect error
  }
  </code></pre>
  
  <p>but now my connection is <strong>refused</strong></p>
  
  <pre><code>curl -v -x socks5://login:password@ip_adress:1080 http://www.google.com/
  *   Trying XX.XX.YYY.ZZZ...
  * TCP_NODELAY set
  * connect to XX.XX.YYY.ZZZ port 1080 failed: Connection refused
  * Failed to connect to XX.XX.YYY.ZZZport port 1080: Connection refused
  * Closing connection 0
  curl: (7) Failed to connect to XX.XX.YYY.ZZZport port 1080: Connection refused
  </code></pre>
  
  <p>my firewall is <strong>totally opened</strong> !!</p>
  
  <p>for the moment i did not understand why there are "client pass" and "socks pass"  ....</p>
  
  <p>maybe the error is there !</p>
  
  <p>Please help !! </p>
  
  <p>Thanks all !</p>