Project

General

Profile

Actions

Bug #3789

closed
BD CB

rc.update_bogons.sh and login shell ignore http proxy settings

Bug #3789: rc.update_bogons.sh and login shell ignore http proxy settings

Added by Buster de about 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Category:
Operating System
Target version:
Start date:
08/01/2014
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:

Description

Hi,

I need to configure a http proxy for www access.
It seems that /etc/rc.update_bogons.sh ignores proxy settings:

Aug 1 12:38:35 root: rc.update_bogons.sh is sleeping for 56036
Aug 1 12:38:35 root: rc.update_bogons.sh is starting up.
Aug 1 12:38:35 root: Could not extract fullbogons-ipv6.txt
Aug 1 12:38:35 root: Could not download http://files.pfsense.org/lists/fullbogons-ipv6.txt
Aug 1 12:36:17 root: Could not extract fullbogons-ipv4.txt
Aug 1 12:36:17 root: Could not download http://files.pfsense.org/lists/fullbogons-ipv4.txt
Aug 1 12:33:59 root: rc.update_bogons.sh is beginning the update cycle.
Aug 1 12:33:59 root: rc.update_bogons.sh is starting up.

Furthermore local shell login ignores proxy setting too.

[2.1.4-RELEASE][root@firewall]/root(6): env | grep -i proxy

gives empty result and fetch won't work

[2.1.4-RELEASE][root@firewall]/root(9): fetch http://files.pfsense.org/lists/fullbogons-ipv4.txt
fetch: transfer timed out

This one works:

[2.1.4-RELEASE][root@firewall]/root(8): env http_proxy=http://172.28.133.242:3128 /etc/rc.update_bogons.sh now

log from webinterface:

Aug 1 12:55:36 root: rc.update_bogons.sh is ending the update cycle.
Aug 1 12:55:36 root: Bogons V6 file downloaded but not updating IPv6 bogons table because IPv6 Allow is off
Aug 1 12:55:36 root: Bogons V4 file downloaded: 2644 addresses added.
Aug 1 12:55:31 root: rc.update_bogons.sh is beginning the update cycle.
Aug 1 12:55:31 root: rc.update_bogons.sh is starting up.

/etc/rc.firmware_auto might be affected too (I didn't test).

CB Updated by Chris Buechler almost 12 years ago Actions #1

  • Category set to Operating System
  • Target version set to 2.2

this is really annoying in proxy scenarios and should be trivially easy to fix. Just a matter of setting ftp_proxy, http_proxy and https_proxy environment variables.

EL Updated by Ermal Luçi almost 12 years ago Actions #2

  • Status changed from New to Feedback

A patch for proxy support without username/password configured on system->settings will be considered now.

CB Updated by Chris Buechler almost 12 years ago Actions #3

why do it there in update_bogons? Set it as an env variable in general and nothing else needs to be touched.

CB Updated by Chris Buechler almost 12 years ago Actions #4

  • Status changed from Feedback to Confirmed
  • Affected Version changed from 2.1.x to All

this needs to be set in tcshrc so it applies to everything using fetch and similar utilities now and in the future.

CB Updated by Chris Buechler almost 12 years ago Actions #5

  • Assignee set to Renato Botelho

RB Updated by Renato Botelho almost 12 years ago Actions #6

  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Implemented as Chris suggested

CB Updated by Chris Buechler almost 12 years ago Actions #7

  • Assignee changed from Renato Botelho to Chris Buechler

to me for testing

CB Updated by Chris Buechler almost 12 years ago Actions #8

  • Status changed from Feedback to Resolved

fixed

Actions

Also available in: Atom