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.
I assume that tun0 and tun1 are your outgoing internet connections that SQUID should be using?
By "All Connection from port 3128 will goto tun0" do you mean you want all client connections connecting to port 3128 to use tun0 for the outgoing (web) traffic? If so, I don't think there is an easy way to identify this traffic. The challenge is that the connections don't come "from port 3128"; the clients (browsers) connect to that port, but SQUID then creates its own connection to the destination website, using a different (ephemeral) port number.
What is the purpose of the 2 SQUID ports? If they are handling different traffic types, that traffic might be a starting point for trying to solve your problem.
I used tcp_outgoing_address and targeting the IP of the network interface, but its going to the same tun. my problem now is how i can tell the squid to connect to a specific tun .Please help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.