saaiful / socks5

Setup a SOCKS5 proxy server on an Ubuntu system
81 stars 35 forks source link

idk whats wrong #1

Open Exoduf0 opened 1 year ago

Exoduf0 commented 1 year ago

root@4t7s:~# sudo bash socks5.sh Please enter the username for the socks5 proxy: patryk Please enter the password for the socks5 proxy: Hit:1 http://ubuntu-archive.mirror.serveriai.lt jammy InRelease Hit:2 http://ubuntu-archive.mirror.serveriai.lt jammy-updates InRelease Hit:3 http://ubuntu-archive.mirror.serveriai.lt jammy-security InRelease Hit:4 http://ubuntu-archive.mirror.serveriai.lt jammy-backports InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 178 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done dante-server is already the newest version (1.4.2+dfsg-7build4). 0 upgraded, 0 newly installed, 0 to remove and 178 not upgraded. Synchronizing state of danted.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable danted root@4t7s:~# curl -x socks5://####:####@195.181.245.80:1080 https://ipconfig.me curl: (7) Failed to connect to 195.181.245.80 port 1080 after 0 ms: Connection refused

averrois commented 1 year ago

did you check if there is there is an issue with the installation or configuration of the dante-serve ??

saaiful commented 1 year ago

Check If you have firewale enabled (if firewale is active, allow port 1080) , also sometime server providers blocks few common ports.

thanhchunghti commented 1 year ago

Me to, curl: (7) Failed to connect to 45.76.123.93 port 1080 after 0 ms: Connection refused Can you help me, pls?

saaiful commented 1 year ago

Please ensure that your Ubuntu firewall is configured to allow traffic on port 1080. If you're not using UFW (Uncomplicated Firewall), you can use the following iptables command to allow incoming traffic on port 1080:

sudo iptables -A INPUT -p tcp --dport 1080 -j ACCEPT

If you're using UFW, you can achieve the same result with the following command:

sudo ufw allow 1080/tcp

If UFW is not enabled, please contact your server provider and request them to open port 1080 for you.

saaiful commented 1 year ago

Also updated the bash code to check for UFW and IPTABLE.

C0la149 commented 3 months ago

curl: (7) Failed to connect to 109.120.184.192 port 1080 after 0 ms: Couldn't connect to server

C0la149 commented 3 months ago

root@erratic-creator:~# sudo iptables -A INPUT -p tcp --dport 1080 -j ACCEPT root@erratic-creator:~# sudo ufw allow 1080/tcp Skipping adding existing rule Skipping adding existing rule (v6) root@erratic-creator:~# sudo ufw allow 1080/tcp Skipping adding existing rule Skipping adding existing rule (v6) root@erratic-creator:~# curl -x socks5://vpn:vpn228@proxy_server_ip:1080 https://ifconfig.me curl: (6) Could not resolve host: proxy_server_ip root@erratic-creator:~# curl -x socks5://admin:228admin@109.120.184.192:1080 https://ifconfig.me curl: (7) Failed to connect to 109.120.184.192 port 1080 after 0 ms: Couldn't connect to server root@erratic-creator:~#