Modify

Opened 5 years ago

Closed 5 years ago

#12450 closed defect (fixed)

Hurricane Electric's 6in4.sh 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:

Description

The 6in4 package uses the following script:
package/6in4/files/6in4.sh

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

local url="http://ipv4.tunnelbroker.net/ipv4_end.php?ip=AUTO&apikey=$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="http://ipv4.tunnelbroker.net/ipv4_end.php?ip=$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

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


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

 
Note: See TracTickets for help on using tickets.