Set systemwide proxy for internet access

Status
Not open for further replies.

tps800

Cadet
Joined
Mar 22, 2014
Messages
3
Hi!

I am trying to set a systemwide proxy for internet access.
First try:
vi /etc/csh.cshrc:
setenv ftp_proxy http://proxy:8080
setenv http_proxy $ftp_proxy
setenv https_proxy $ftp_proxy

vi /etc/profile:
ftp_proxy=http://proxy:8080
http_proxy=$ftp_proxy
https_proxy=$ftp_proxy

fine until I rebooted. Afterwards the added lines where gone


vi ~/.cshrc: could not save the new file - ro-filesystem
vi ~/.profile: could not save the new file - ro-filesystem


I found various howtos in the internet. Seems they are all wrong, because they all tell I shall add the variables to /etc/csh.cshrc or /etc/profile or ~/.cshrc, ~/.profile ...

The docs do not give any useful information.

So: where do I have to set the necessary variables to configure a systemwide proxy?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yeah.. because you aren't supposed to edit the file system itself... ;)

This is an appliance.. not a standard OS. The USB stick is setup as read-only so that people don't go crazy and start toying with things they shouldn't. ;)
 

tps800

Cadet
Joined
Mar 22, 2014
Messages
3
Since it wasn't possible to remount the whole thing rw -- again: how to set a systemwide proxy to access the internet?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Since it wasn't possible to remount the whole thing rw -- again: how to set a systemwide proxy to access the internet?

It is possible to set it rw.. mount / -uw.. make your changes. mount / -ur
 

tps800

Cadet
Joined
Mar 22, 2014
Messages
3
This worked, after swaping "mount / -uw" to "mount -uw /". But I could only add variables to "~/.cshrc", "~/.profile". Not the systemwide profiles "/etc/csh.cshrc", "/etc/profile".
Automatic updates and plugin installation seem to find nothing if behind a firewall forced to use a proxy. With direct internet access there are updates and plugins found ...!

So again: how to set a systemwide proxy respected by all subsystems to access the internet?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Oops. Sorry about the mistake.

Not sure that you can. FreeNAS is an appliance design. As such you may not be able to do what you want. Of course, you could probably recompile FreeNAS to do what you want.
 

panz

Guru
Joined
May 24, 2013
Messages
556
What's the difference between
mount -o rw /
and
mount -uw /
?
 
Status
Not open for further replies.
Top