Click to See Complete Forum and Search --> : getting liunx to block sites. use ipchains?
Soybomb
01-29-2001, 10:30 PM
I'm running rathat 6.2 on an old box doing NAT with IPchains. I noticed when I sit at my windows box that anytime I've got a browser window open I have a connection to track.gamespy.com:80. Oddly enough I have no windows open pointed to gamespy. Anyway I'd like to kill that connection, how can I go about doing so? Would I add "track.gamespy.com" to my hosts.deny file?
Thanks
Gaccm
01-29-2001, 11:54 PM
that should work, also you should check what is doing that. (Do you have gamespy iconised?) i think netstat -something should be able to help u.
and if your the SoyBomb i know, how is hcn doing? any better than Katta?
Craig McPherson
01-30-2001, 04:20 AM
Would I add "track.gamespy.com" to my hosts.deny file?
No.
99% of people should never use hosts.allow or hosts.deny for anything, and the vast majority people don't even know what they do.
They're access control files for TCP wrappers. They only affect incoming connections, not outgoing connections, and they ONLY affect services that your Linux box is running, and ONLY through TCP wrappers (tcpd).
You'd be better off using your firewall to REJECT any outbound connections to that host on that port. Or you can just edit Windows's /etc/hosts file (Yes, Windows has an /etc/hosts file... except it's burried under the Windows system directory) and point track.gamespy.com at 127.0.0.1