Procedure to Upgrade Java on Ubuntu behind DMZ

Asked by Rajdeep

I would like to upgrade Java from version 6 to 7, My Server is in DMZ and all the ports are blocked, i would like to know what all port need to be open to run the below commands.
 sudo aptitude install python-software-properties
 sudo add-apt-repository ppa:webupd8team/java
 sudo aptitude install oracle-java7-installer

 On the other hand i would also like to know if there is any method by which java can be upgraded without opening any ports in DMZ i.e. may be offline or downloading the package in test server.

 Thanks,
 Rajdeep

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Should be just FTP and HTTP

Revision history for this message
Rajdeep (rajdeep-patne) said :
#2

while executing "sudo add-apt-repository ppa:webupd8team/java" this command I got errors one for port 443 i.e. https and then it prompted me for Key Server Port 11371, I am not sure what else it will block for that is why I wanted to know. Please let me know if you have done it behind DMZ or if you know all the specific ports required.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

As far as I am aware it is simply http which is 80/TCP

If you can log traffic from a particular node then run updates you can see what is used and allow that

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

According to my knowledge:

aptitude, apt-get and update-manager try accessing the repository servers via the links in /etc/apt/sources.list, usually that is with http: but https: or ftp: should be possible as well.

sudo add-apt-repository tries accessing the public key of that ppa for verification of packages; I am not sure what port that needs, it might well be 11371 as you have seen. This should be a one-off action and not be required again for using the ppa after initial installing. There are possibilities to import the key manually without using apt-add-repository, eliminating the need to open that port.

You have to be aware that oracle-7-installer directly downloads software from the oracle server. I do not know what port is used during that exercise.

Can you help with this problem?

Provide an answer of your own, or ask Rajdeep for more information if necessary.

To post a message you must log in.