Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Rep:
Squid Proxy for DNS, WWW, & FTP
Hey!
I've installed Squid Proxy. I'm working on getting it working for DNS, WWW, & FTP. Ideally it would trasnparently hand caching of all 3 for all machines on my LAN.
I would like to use it's internal DNS Cache for all the machines behind the machine it's installed on (and not have to worry about installing named). Is this possible? If so how? It doesn't appear to be listening on tcp/domain or upd/domain. How to I get it listening to tcp/domain or upd/domain?
Also, I tried 'misserably' lastnight to get the www transparently proxing. I'm using iptables... What's the command to forward all (Internal Net - INTLAN or Internal Interface INTIF) port 80 traffic to another port, like 8080?
Distribution: Mandrake, Xandros, and Debian 3.0 (Woody) as a proxy
Posts: 103
Original Poster
Rep:
Quote:
Originally posted by DavidPhillips iptables -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
Ok. I'll give that a try. Hopefully it works. What I was trying was pretty close to that, but it didn't seem to be working.
Quote:
note that eth0 is not my internet interface
That's ok. eth0 is not my internet itnerface either.
That brings up another one of the issues I keep having. should I be even bother with using eth1 (the NIC that my Cable modem is plugged into) or should I go pretty much always with ppp0? eht1 (the NIC) has not IP information when I run /sbin/ifconfig
Quote:
squid is listening on port 3128 by default
I understand that.
Squid doesn't appear to be handling DNS queries. Is that cause it only handles them for attempts by something to port 3128, or is there something that I'm missing? As when I set machine's (that are behind the Squid/FW machine) DNS to the ip of the Squid/FW machine DNS fails (nslookup returns server not responding). As soon as I set the DNS on those machines back to my ISP's DNS server things work find (they are still going through the Squid/FW machine to get out.
I believe that squid caches dns info for requests on the port it's using. It will use the nameservers in /etc/resolv.conf unless you give it certain ones to use in the config file
eth0 is the interface my clients connect to. eth1 is my cable modem
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.