SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I went on the adventure to install squid. And I didnt even configure anything, I just uninstalled it, feeling as if I should at least know what I'm gona do to configure it. So its uninstalled. Weird thing is that now, I cant even ssh to my computer from work, nor can I access my computer with tightvnc. Everything seems blocked. Can anyone help me fix this? Local access seems ok, I can ssh to it with my other computer, but from an exterior source, nothing.
I've got only one solution for now: reinstall Slackware...
The service isnt running, its still there somehow, wasnt deleted with the uninstall, but its not running.
I also tried reinstalling squid, hoping to get to configure it. Damn this isnt a small task. If I could at least have it installed and know how to enable port 22 and 5901 I wouldnt complain. Any help would be much appreciated.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
I've got only one solution for now: reinstall Slackware...
Hmm - that seems a bit drastic! How did you install squid - did you make or get a Slackware package and installallpkg/removepkg or install directly so other way?
Hmm - that seems a bit drastic! How did you install squid - did you make or get a Slackware package and installallpkg/removepkg or install directly so other way?
I installed it with installpkg and removed it with removepkg. I built the package from slackbuilds.org. Why?
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Quote:
Why?
Because from your description of the problem it sounded like part of the installation was left in place as can happen when installing stringht from source rather than a package.
Are there anyone changes (perhaps made by you) - like iptables rules or something. Have you made sure the /etc/rc.d/rc.squid script is gone and all the package files gone too? It just seems odd that just installing then removing the package has made such a difference.
Because from your description of the problem it sounded like part of the installation was left in place as can happen when installing stringht from source rather than a package.
Are there anyone changes (perhaps made by you) - like iptables rules or something. Have you made sure the /etc/rc.d/rc.squid script is gone and all the package files gone too? It just seems odd that just installing then removing the package has made such a difference.
I did no changes to the ip tables. Unless squid did them for me. I just hit installpkg thesquidpackage, then removepkg thesquidpackage, and I cant connect anymore. It was fine until I did this. And the rc.squid file is still there, but I set the chmod -x on it and also did ./rc.squid stop and after all this rebooted inetd, sshd and vncservers, I restarted the vncservers for each user, like I usually do, I did nothing different than I usually do other than install squid. And I also rebooted my machine.
Help please, pretty pretty please, or else I'm reformatting, no choice. Ah yes and I also checked hosts.allow and hosts.deny,these were untouched.
I'm presently looking into the configuration of squid. I added these lines in the /etc/squid/squid.conf file:
acl Safe_ports port 80 # http
acl Safe_ports port 22 # ssh
acl Safe_ports port 5901 # guest-vnc-1
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Try going to Shields Up and selecting "All Service Ports" to see what's open to the world. You could also try "nmap localhost" to get similar information locally.
So you have not changed any hosts.allow/deny rules, iptables rules or altered any router settings - hmm. This is strange. I ran squid for some time on my gateway machine and, as a test, have just built and installed it here to remind me of it's settings. It hasn't made any changes though although I haven't enabled the startup script yet.
Sorry I can't think of an instant fix for this - it just looks like a step by step fault finding process so far.
First - just make sure sshd is running and try ssh localhost - then check that port 22 is forwarded on your router and check the above Shields Up link. This should show port 22, at least, open.
squid does not block anything it just sits there waiting for input on it's listen port (3128 in the default configuration). It does not do anything at all with iptables. In short installing and removing squid should not cause any problems at all. So is there anything else you have done that you forgot to mention?
I found my error. Its kinds sily. I use no-ip.org to post my ip. For a reason the ip that was there wasnt the right one, the problem was there. I went on the shieldup site and saw my ip and it clicked, it wasnt the same I was using. So I found the problem. And I fixed it. Used the correct ip, and it connected.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.