Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have installed squid proxy server at server side so that all PCs connected to the server will access internet through it.I have made changes in squid.conf file also.I have added these two lines:-
acl localnet src 192.168.0.167 192.168.0.0-192.168.0.250/255.255.255.0
http_access allow localnet
But all the PCs connected to LAN are not able to connect to internet.I am using correct gateway IP at all PCs.
I have created a script as per instructions given on internet.That script is as following:-
Now when i am running this script at server side then all the PCs connected to LAN are able to access internet although squid service is stopped.But i only want all the PCs should access internet through SQUID so that i can track their record and manage them.What is the solution of my problem???What changes should i need to do.Is my problem related to firewall or iptables as i have no idea regarding them.Please solve my issue.
You're using an illegal ACL format... that's an IP range AND a subnet crammed into a single line. Is quid not complaining about this? Additionally you've not said what actually happens. What happens on the client?? what happens on the server?? "It don't work" is not a sufficient amount of information to provide.
Also looks like your iptables is completely backwards. Your "local" network is set as your external interface, so any masquerading will not work. None of that should matter in the slightest here though, just disable iptables for testing squid.
I have corrected my acl format and now there is no error in that.Second thing is that i have already told that the internet is working fine at client side when i am using the above mentioned script whether squid is on or off.I am not able to find out which client has accessed which websites and downloaded what things as access logs are not generating.I have no idea about iptables so how can i disable the iptables.
What are you actually trying to acheive? natting or proxying? It sounds a lot like you don't really understand what you're doing to any real extent. "The internet" told to you make that script?? care to expand on that?