LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet Under Corporate Firewall? (https://www.linuxquestions.org/questions/linux-newbie-8/internet-under-corporate-firewall-738808/)

your_shadow03 07-09-2009 01:39 AM

Internet Under Corporate Firewall?
 
I have a Intel Hardware machine in my corporate LAN on which I installed Windows Xp and Internet seems to work. I formatted the disk and installed Ubuntu 9.04 as per the requirement and internet seems to work on Firefox Browser. But when I tried installed an application which needs internet to download the package seems not to work.When I try pinging google it worked but the link for Downloading package doesnt seem to work through commandline. When I run:
Code:

sudo apt-get update
it fails to connect to Ubuntu Repository.
I do have a OpenSolaris Machine too which needs online package for creating zones through internet but that too failed.
I attempted editing the IP on /etc/hosts and providing corresponding IP to Hostname but it dint work.
Also, When I tried opening the Browser on Firefox it asked me for DOMAIN Username and Password and it went fine. Can I have a way connect to internet through proxy client on commandline.Pls Suggest.

emra 07-09-2009 02:59 AM

Sounds like you have a MS Proxy and need NTLMAPS

your_shadow03 07-09-2009 03:41 AM

Any Idea how to get it work on Linux

emra 07-09-2009 06:05 AM

Quote:

Originally Posted by your_shadow03 (Post 3601934)
Any Idea how to get it work on Linux

Download at https://sourceforge.net/projects/ntlmaps/files/

Unpack it

Edit: server.cfg with your NT username, password, domain

start it with ./main.py


In ubuntu go to menu System/Preferences/Network Proxy and add Manual proxy configuration 127.0.0.1 Port: 5865

your_shadow03 07-10-2009 12:25 AM

I edited server.cfg with the following modifications:
Code:

[NTLM_AUTH]

# Optional value, if leaved blank then APS will use gethostname() to determine
# host's name.
# NOTE1: If you Linux host name differs from Windows host name then it may be that
#        MS server wont recognize you host at all and wont grant you access
#        to resources requested. Then you have to use this option and APS will use
#        this name in NTLM negotiations.
# NOTE2: There are several reports that you can successfully use "foreign" host name
#        here. Say, if user may access a resource from 'host1' and may not from 'host2'
#        then there is a chance that APS running on 'host2' with NT_HOSTNAME:host1 will
#        be able to be granted access to the restricted resource. However use this on
#        you own risk as such a trick may be considered as a hack or something.
NT_HOSTNAME:<left blanked>

# Windows Domain.
# NOTE: it is not full qualified internet domain, but windows network domain.
#NT_DOMAIN:your_domain
NT_DOMAIN:ULTRAINFRA
# What user's name to use during authorization. It may differ form real current username.
# If you enable NTLM_TO_BASIC, below, you can either leave this blank or simply
# hash it out.
USER:tuxbuddy

# Password. Just leave it blank here and server will request it at the start time,
# or, if you enable NTLM_TO_BASIC, below, you can either leave this blank or simply
# hash it out, and you *won't* be prompted for a password at start time.
PASSWORD:< inputted my password here>

# These two options replace old FULL_NTLM option.
# NTLM authentication consists virtually of two parts: LM and NT. Windows95/98 use
# only LM part, WindowsNT/2000 can use NT and LM or just NT part.
# Almost always using just LM part will be enough. I had several reports
# about LM and NT requirement and no about just NT.

I have no GUI working now. Wher can I input the rest? Where do we mention proxy entries?

On running :
Code:

sudo ./main.py
NTLM authorization Proxy Server v0.9.9.0.1
Copyright (C) 2001-04 by Dmitry Rozmanov and Others
Now Listening at tuxworld on port 5865

It stops at nothing. How Cna i Chekc if it worked or not?

your_shadow03 07-10-2009 03:53 AM

As for Now, I am testing it with two Linux Machine. On one of the Linux Machine I ran ./main.py script adding the above entry.
In The second machine, I tried :
Code:

#export http_proxy="http://<ip>:5865"
And Tried opening:
Code:

#htmlview http://google.com
It dint work..Still displaying "Making a connection.."
Any Idea further?

emra 07-10-2009 06:03 AM

Quote:

Originally Posted by your_shadow03 (Post 3603069)
As for Now, I am testing it with two Linux Machine. On one of the Linux Machine I ran ./main.py script adding the above entry.
In The second machine, I tried :
Code:

#export http_proxy="http://<ip>:5865"
And Tried opening:
Code:

#htmlview http://google.com
It dint work..Still displaying "Making a connection.."
Any Idea further?


You use one linux with htlmaps and try connect through it with another? Try edit

ALLOW_EXTERNAL_CLIENTS:1

in server.cfg

Haven't used htmlview.

Try turn on some debugging

DEBUG:1


All times are GMT -5. The time now is 04:24 AM.