Opened 5 years ago

Closed 5 years ago

#12450 closed defect (fixed)

Hurricane Electric's script does not work with transparent proxies

Reported by: phuque99 <phuque99@…> Owned by: developers
Priority: low Milestone: Chaos Calmer 15.05
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: hurricane electric 6in4 ipv6 Cc:


The 6in4 package uses the following script:

In there, the protocol setup updates Hurricane Electric's tunnelbroker system with the public IPv4 using the following URL on line 59:

local url="$username&pass=$password&tid=$tunnelid

If you run that script within an ISP that uses transparent proxy, the "ip=AUTO" option will tell the tunnelbroker php script to use the HTTP source IP, and that will always be the proxy IP address. The script should be modified to use the $ipaddr variable so that the right WAN IP will be sent to the tunnelbroker php script. Example:

local url="$ipaddr&apikey=$username&pass=$password&tid=$tunnelid

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker (trunk)
  • Priority changed from normal to low

Then it would break setups where the OpenWrt device is behind another NAT router.

comment:2 Changed 5 years ago by phuque99

Can this be an enhancement request, that will check if $ipaddr is private, use "ip=AUTO", otherwise use "ip=$ipaddr"?

comment:3 Changed 5 years ago by phuque99 <phuque99@…>

This can be closed. I contacted Hurricane Electric and they took my suggestion to modify their script to use the IP from the X-Forwarded-For header (inserted by proxies) if available.

comment:4 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.