Membuat Proxy Socks v4/v5 di ubuntu server



  •  Pertama, silahkan install dante.

apt update && apt install dante-server

  • Kemudian buka file "danted.conf", lokasinya di "/etc/danted.conf".
nano /etc/danted.conf
  • Hapus semuanya isinya, lalu isi dengan konfigurasi berikut :
# /etc/danted.conf

logoutput: none #default --> syslog
internal: eth0 port = 12345
external: eth0
clientmethod: none
socksmethod: none
user.privileged: root
user.notprivileged: nobody

client pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}
client block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}
socks pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: error connect disconnect
}
socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        log: connect error
}


Lihat bagian yang saya tandain warna merah, silahkan ganti port yang ingin kamu gunakan.
  • Setelah itu silahkan save file confignya lalu jalankan code berikut :
systemctl restart danted
  • Untuk melihat apakah sudah berjalan, silahkan jalankan perintah berikut.
systemctl status danted
  • Selesai.

Mengubah isi file dengan satu baris code :

echo -e "# /etc/danted.conf\n\nlogoutput: none\ninternal: eth0 port = 1234\nexternal: eth0\nclientmethod: none\nsocksmethod: none\nuser.privileged: root\nuser.notprivileged: nobody\n\nclient pass {\n\tfrom: 0.0.0.0/0 to: 0.0.0.0/0\n\tlog: error connect disconnect\n}\nclient block {\n\tfrom: 0.0.0.0/0 to: 0.0.0.0/0\n\tlog: connect error\n}\nsocks pass {\n\tfrom: 0.0.0.0/0 to: 0.0.0.0/0\n\tlog: error connect disconnect\n}\nsocks block {\n\tfrom: 0.0.0.0/0 to: 0.0.0.0/0\n\tlog: connect error\n}" > /etc/danted.conf