Single ipv6 from /64 subnet for squid proxy server

ipv6PROXYsquid

Skip This Section if You are Normal Human Being

I read this post where everyone who answered acted like they were from another planet. I see it sometimes, but not often, in tech forums. And this topic was closed without any help to the poor guy.

I hope this goes a bit better because it is exactly the same topic. I will try to predict the thinking that goes into intricate avoidance of answering the actually asked question.

Please, no flaming! Yes, I realize this is free assistance, just as I have given on multiple occassions. That does not give a free pass to be rude and offensive, so please behave… even in subtle ways. Just be kind and straight forward. If you have nothing concrete to add don't say anything. Read the TOS.

PROBLEM DEFINED

I have an ipv6 range assigned on Hertzner hosting. I have a dedicated self-managed server. I have just now installed the latest Squid Proxy as I have in the past on other servers. My previous config file had individual ipv6 addresses assigned to each port number. It was set up with ipv4 addresses pointing to one port each as well. So one port would be matched with an ipv4 AND an ipv6 address (one line in the config for ipv4 and one line for ipv6… same port).

Here is a sample:

tcp_outgoing_address 50.21.183.11 port1
tcp_outgoing_address 2607:f1c0:84d:b200:0:0:74:a9de port1
tcp_outgoing_address 74.208.147.124 port2
tcp_outgoing_address 2607:f1c0:84d:b284:d0eb:efbd:87bc:30a7 port2
tcp_outgoing_address 74.208.148.250 port3
tcp_outgoing_address 2607:f1c0:84d:b2eb:689b:37e1:713:f73f port3

My current Hertzner ipv6 range is 2a01:4f8:212:50d:: / 64 How do I assign individual ipv6 addresses from this to individual ports in the Squid Proxy config? I have a range, but how can I know the individual addresses in that range?


Sorry for the introductory part, but I hate wasting my time and other people's time with the terrible behavior so common online. I know it won't deter it, but who knows, maybe one or two will feel bad and not do it.

Best Answer

You have that complete IPv6 range available on your box, that is about 2^64 addresses.

You can configure any IPv6 address(es) from the range on your box, and then use them in your Squid configuration.