make large amount of IPv6 IPs for use?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

make large amount of IPv6 IPs for use?

xpro6000
Right now I have a config file that enables Squid to have an incoming connection based on an IPv4 address and based on the connection port a IPv6 address is used. Below is the relevant part of the config file.


## designate acl based on inbound connection name
acl user1 myportname 3100
acl user2 myportname 3101
acl user3 myportname 3102

## define outgoing IPv6 per user
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0000 user1
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0001 user2
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0002 user3



I want to add thousands of IPs like this and it would take too much time and it would be error prone. Is there any better way of achieving this? By giving ranges maybe?

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: make large amount of IPv6 IPs for use?

Aaron Turner
Write a small shell script to generate it for you?  I don't think
squid supports ranges or mapping of this sort.
--
Aaron Turner
https://synfin.net/         Twitter: @synfinatic
My father once told me that respect for the truth comes close to being
the basis for all morality.  "Something cannot emerge from nothing,"
he said.  This is profound thinking if you understand how unstable
"the truth" can be.  -- Frank Herbert, Dune


On Wed, Sep 27, 2017 at 4:19 PM, xpro6000 <[hidden email]> wrote:

> Right now I have a config file that enables Squid to have an incoming
> connection based on an IPv4 address and based on the connection port a IPv6
> address is used. Below is the relevant part of the config file.
>
>
> ## designate acl based on inbound connection name
> acl user1 myportname 3100
> acl user2 myportname 3101
> acl user3 myportname 3102
>
> ## define outgoing IPv6 per user
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0000 user1
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0001 user2
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0002 user3
>
>
>
> I want to add thousands of IPs like this and it would take too much time and
> it would be error prone. Is there any better way of achieving this? By
> giving ranges maybe?
>
> _______________________________________________
> squid-users mailing list
> [hidden email]
> http://lists.squid-cache.org/listinfo/squid-users
>
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: make large amount of IPv6 IPs for use?

Amos Jeffries
Administrator
In reply to this post by xpro6000
On 28/09/17 12:19, xpro6000 wrote:

> Right now I have a config file that enables Squid to have an incoming
> connection based on an IPv4 address and based on the connection port a
> IPv6 address is used. Below is the relevant part of the config file.
>
>
> ## designate acl based on inbound connection name
> acl user1 myportname 3100
> acl user2 myportname 3101
> acl user3 myportname 3102
>
> ## define outgoing IPv6 per user
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0000 user1
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0001 user2
> tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0002 user3
>
>
>
> I want to add thousands of IPs like this and it would take too much time
> and it would be error prone. Is there any better way of achieving this?
> By giving ranges maybe?

No, this was a bad config hack to begin with and all you are doing by
trying to scale it up is making the problems worse. Squid is an HTTP
proxy, not a NAT implementation.

*why* are you trying so hard to break how the HTTP side of the Internet
works?


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: make large amount of IPv6 IPs for use?

Eliezer Croitoru
In reply to this post by xpro6000
Do you really need squid for that?
What is your ultimate goal of using squid?
- Content Caching
- Content Filtering
- Applying traffic ACL's
- NAT
- Other??

If you don't need caching in the picture then you are using the wrong tool..
When we will have an answer to what you want to achieve we might be able to help you towards the right solution.

All The Bests,
Eliezer

----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: [hidden email]


From: squid-users [mailto:[hidden email]] On Behalf Of xpro6000
Sent: Thursday, September 28, 2017 02:19
To: [hidden email]
Subject: [squid-users] make large amount of IPv6 IPs for use?

Right now I have a config file that enables Squid to have an incoming connection based on an IPv4 address and based on the connection port a IPv6 address is used. Below is the relevant part of the config file.


## designate acl based on inbound connection name
acl user1 myportname 3100
acl user2 myportname 3101
acl user3 myportname 3102

## define outgoing IPv6 per user
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0000 user1
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0001 user2
tcp_outgoing_address 2001:19f0:9014:073e:0000:0000:0000:0002 user3



I want to add thousands of IPs like this and it would take too much time and it would be error prone. Is there any better way of achieving this? By giving ranges maybe?

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users