[squid-users] squid ipv6 outgoing addresses from ipv4 incoming traffic

Ahmed Allzaeem ahmed.zaeem at netstream.ps
Tue Oct 7 19:14:54 UTC 2014


Hi Amos , 
Thanks a lot.
But I still have an errros !!!

Here is my squid.conf 
=======================
# Squid normally listens to port 3128
http_port 64000

# Uncomment and adjust th;e following to add a disk cache directory.
#cache_dir ufs /var/cache/squid 100 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/cache/squid

#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
########################################
acl user1 myportname 212.111.xx:40001
acl user2 myportname 212.111.xx:40002
tcp_outgoing_address [2a01:7e00:e000:eb::aaaa] user1
tcp_outgoing_address [2a01:7e00:e000:eb::bbbb] user2
==========================================

I have an errros below :
2014/10/07 09:14:03| Processing: acl user1 myportname xxx111.41.9:40001
2014/10/07 09:14:03| Processing: acl user2 myportname xxx111.41.9:40002
2014/10/07 09:14:03| Processing: tcp_outgoing_address [2a01:7e00:e000:eb::aaaa] user1
2014/10/07 09:14:03| FATAL: invalid IP address or domain name '[2a01:7e00:e000:eb::aaaa]'
FATAL: Bungled /etc/squid/squid.conf line 77: tcp_outgoing_address [2a01:7e00:e000:eb::aaaa] user1
Squid Cache (Version 3.4.3): Terminated abnormally.
CPU Usage: 0.007 seconds = 0.003 user + 0.003 sys
Maximum Resident Size: 33120 KB
Page faults with physical i/o: 0
[root at localhost ~]#



I have already those two ipv6 addresses on the server !

-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of Amos Jeffries
Sent: Monday, October 6, 2014 7:40 PM
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] squid ipv6 outgoing addresses from ipv4 incoming traffic

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/10/2014 9:53 p.m., Ahmed Allzaeem wrote:
> Hi ,
> 
> I have 1 single ipv4 ip and have many ipv6 ips
> 
> I need to listen on the ipv4 on many ports
> 
> As an example
> 
> 1.1.1.1:40000
> 
> 1.1.1.1:40001
> 
> 1.1.1.1:40002
> 
> 
> 
> In corresponding I need each ipv4:port to be tcp_outgoing to different 
> ipv6 address
> 
> I have about 3 ips.
> 
> 
> 
> Can I know why the config below is wrong ???

The myportname is the string value of the http_port first parameter by default.

> 
> http_port 241.xxx.xxx.101:40001

default name: 241.xxx.xxx.101:40001


> http_port 241.xxx.xxx.101:40002
> 
> http_port 241.xxx.xxx.101:40003
> 
> 


So you need:

acl user1 myportname 241.xxx.xxx.101:40001

acl user2 myportname 241.xxx.xxx.101:40002

acl user3 myportname 241.xxx.xxx.101:40003


Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUM1KXAAoJELJo5wb/XPRjOKYIAMPO5rrXnhkrQXS6yi8hX2eX
3RPxOAPal6cdXq3H0+c1EUXanO5gr6rbGl+fXOtx1hypl52eLKORHf+Ct+UyVK2x
BRtKi9pkDzXwqnK8WbEUVEuCyV1mBg40jjcwsCUFOzukile8R6cRG3ytHMzjXTjI
b+SDgW+4y2BszCUMSdnu39TsaEgxxnWCHSdA46F2S2H6xYDHjJJokuXjqM6Bo4lg
X5ySficDEv2dFSrOjehw7As7uj0pX/e+2G3qI9RciNCH+rJrPJ0xd2m38/FZ/wdV
pHOhm/osmrHApWTpTFHBU9onUwPiKg3HO9yDbprteZ7KyLFu5hh2UDNFveAABn4=
=gWb4
-----END PGP SIGNATURE-----
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list